How can I run a program (selected from menu) as root?

Experts:

I am normally NOT logged in (I use Ubuntu 6.something) as root.  If I want to run a command line program as root, I can use su or sudo.  But if I choose to run a program from the gnome menu, it seems to always run as the user I am logged in as.  My question:  How can I select a program to run from a menu and tell the computer that I want to run it as root?

Thanks,
Tnic
tayloenicAsked:
Who is Participating?
 
rindiConnect With a Mentor Commented:
If you have gksu installed, you can use that, if not you could install it.

Another method would be to install Krusader, a file manager similar to midnight commander, but it runs under the GUI, and you can start it as root, then just point it at the file you want to start and hit enter to start it.
0
 
chingmdConnect With a Mentor Commented:
And if you don't mind the security risks involved, you can setUID the binary.  

0
 
4dimachConnect With a Mentor Commented:
There is no simple way of doing this for every application. But this what you can do:

Right click on the panel> add to panel > click custom app luncher, put the name and the command( gksu your_application). Don't forget to select a icon, you can click were it says icon or drop a icon on the word icon.

Hope it helps.
0
 
tayloenicAuthor Commented:
Experts:

I will try these suggestions.  Thanks to all of you for responding

Tnic
0
 
rindiCommented:
your welcome
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.