LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-01-2003, 01:53 PM   #1
macewan
Senior Member
 
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Blog Entries: 1

Rep: Reputation: 45
running programs as root - easy howto


tired of having to start firestarter from commandline?
tired of having to start programs from commandline just because they run as root?

if the answer is yes then read on

http://xsu.freax.eu.org/ is what you're looking to use. Have you switched to debian from redhat but miss the ease of just clicking on a program and having it ask for the 'root' password to run. Now you have to open a xterm window and become root just to run etherape or firestarter or (good forbid) nmapfe??

xsu is for you.

I'm going to use Debian as an example. This is a woody box. Debian 3/Woody. The window manager I use is OpenBox.

1. open an xterm window

2. su (become root. hopefully you're not running black/open/fluxbox as root!!)

3. cd /usr/lib/menu (remember this is debian as an example)

ok. now we are going to edit the etherape file. once this is done it will enable us to right click on the desktop - go to etherape in the menu and click - enter the root password and then run etherape. that's it.

we're still root.
we're in the /usr/lib/menu directory

4. vi etherape

on the line that has the *command="blalblahbetherape* list delete that lines worth text. in it's place put this:


command="xsu --title \"running etherape\" -c etherape -u root -d -e -m \"In order to run \"etherape\" as root.^Additional information is required.^Enter root password.\" "\

it will look somewhat like this screenshot:
http://www.deadmule.com/images/tmp/etherape.menu.png




5. hit the "Esc" key in the upper right corner of keyboard and the type this:

:wq

now hit the "enter" key.

6. we have just made an edit the etherape file. we need to update the menus system now. (remember we are still root) now type this:

update-menus

and hit the enter key

you're done.

now you can right click on the desktop go over to where etherape is located in the menu system:
http://www.deadmule.com/images/tmp/rightclick.png

enter the root's password:
http://www.deadmule.com/images/tmp/enterpassword.png

now you've got etherape running:
http://www.deadmule.com/images/tmp/etherape.png


cool. huh?


hey macewan, i'm running debian and would like to install xsu. how's it done?

glad you asked. with debian it's real easy. first open a term window. become root. then type this:

apt-get install xsu

hit the enter key and watch it install.
 
  


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
Running programs as root via launcher? Fenster Fedora 3 10-06-2004 03:06 PM
running programs from root oscarp Linux - Software 2 09-17-2004 08:08 AM
running programs as root marsques Linux - Newbie 5 08-15-2004 01:18 PM
Running programs as root from launcher Myrkul23 Linux - General 3 07-19-2004 09:26 PM
running programs as root mehesque Linux - General 16 06-09-2004 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:37 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