LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 06-10-2007, 01:51 PM   #1
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
Fluxbox: root-permission apps from menu


I'm looking for a way to run programs from the menu that need root permission.
I've tried adding sudo to the executable in the menu:
Code:
[exec] (Adept) {sudo adept_manager}
but clicking the entry gives no result.

"sudo adept_manager" in terminal prompts for password and runs the program without problems. Adept is just an example, there are a few programs I'd like to run like this.

I'm guessing the problem is that the password prompt dialog box belongs to KDE (I'm running Fluxbox on Kubuntu) and won't pop up in Fluxbox.

I realize that all these programs can be run from terminal, but I want to set them up on the menu too, so, any ideas?
 
Old 06-10-2007, 02:21 PM   #2
tomcdyer
Member
 
Registered: Jun 2007
Location: Surrey, UK
Distribution: Slackware 11 (mainly), Vista, XP
Posts: 108

Rep: Reputation: 15
All i can say is...

the problem is going to be the password.

You could try writing a short script to type in 'su' then enter pasword, then load the program.

Then from the menu, you could just call this script
 
Old 06-11-2007, 04:41 AM   #3
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Original Poster
Rep: Reputation: 38
It usually turns out that the answer you spend hours looking for is right under your nose. I just had to use "kdesu" instead of "sudo"[HTML][exec] (Adept) {kdesu adept_manager}[/HTML]

It brings up the kde dialog which is good enough for me

Thanks anyway tomcdyer, I would have made a script if I hadn't found this solution

Last edited by mdg; 06-11-2007 at 04:43 AM.
 
Old 06-11-2007, 02:55 PM   #4
tomcdyer
Member
 
Registered: Jun 2007
Location: Surrey, UK
Distribution: Slackware 11 (mainly), Vista, XP
Posts: 108

Rep: Reputation: 15
Glad you solved your problem.
 
Old 06-11-2007, 04:41 PM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Actually you can use sudo for what you want. You just have to set up your sudoers file so that it doesn't require a password to run the specific command.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fluxbox user menu open terminal with root programs? darkleaf Linux - Software 2 10-14-2004 05:44 AM
add cxoffice apps to fluxbox menu? mipia Linux - Software 3 07-28-2004 04:31 AM
Help with apps in Fluxbox (aterm) S_Warlock Linux - Software 3 02-24-2004 02:58 PM
Menu troubles: apps do not launch; unable to add apps hfinger Mandriva 1 08-22-2003 04:49 AM
Fluxbox +executing apps Bouddha Linux - Software 0 08-05-2002 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 04:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration