Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-21-2005, 04:25 PM   #1
Registered: Nov 2004
Location: ~
Distribution: Debian
Posts: 145

Rep: Reputation: 15
Gnome desktop launcher for apps with root premissions

I need to create a Gnome desktop launcher for "Orphaner" which runs under root permissions, and is a terminal GUI.
So when dbl-Clicking the launcher, the terminal should open and ask for root's password, and than launch orphaner...
What command should I write in the "command" field when creating the launcher?

Old 04-21-2005, 10:08 PM   #2
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
I suggest you look into sudo. It will allow a regular user to run a command as root (without having to know the root passwd even).
then in launcher you need only use a launcher command kinda like 'sudo /blah/cmd -blah '

~ # man sudo


sudo - execute a command as another user

sudo -V | -h | -l | -L | -v | -k | -K | -s | [ -H ] [-P ] [-S ] [ -b ]
| [ -p prompt ] [ -c class|- ] [ -a auth_type ] [ -u username|#uid ]

sudo allows a permitted user to execute a command as the superuser or
another user, as specified in the sudoers file. The real and effective
uid and gid are set to match those of the target user as specified in
the passwd file (the group vector is also initialized when the target
user is not root). By default, sudo requires that users authenticate
themselves with a password (NOTE: by default this is the user's pass-
word, not the root password). Once a user has been authenticated, a
timestamp is updated and the user may then use sudo without a password
for a short period of time (5 minutes unless overridden in sudoers).
Old 04-22-2005, 03:09 AM   #3
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
You could also use gnomesu, which is similar to kdesu.
Old 04-22-2005, 05:28 AM   #4
Registered: Nov 2004
Location: ~
Distribution: Debian
Posts: 145

Original Poster
Rep: Reputation: 15
OK thanks.

Solved it with the command 'su -c "orphaner"'

Should have thought about it before...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Creating root Application Launcher in GNOME rwillard Linux - Newbie 3 04-06-2005 09:59 AM
New Launcher in Gnome doesn't appear on the desktop baltho Linux - Software 2 03-28-2005 09:46 PM
Simple Gnome questions about .desktop launcher files. dagalicous Linux - General 9 03-14-2005 07:58 PM
Gnome desktop and apps color configuration rhimbo Linux - Software 0 01-10-2005 07:26 PM
XFCE and kde/gnome apps (launcher menu question) JimDog Linux - Newbie 2 10-11-2003 07:43 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:37 PM.

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