LinuxQuestions.org
Visit Jeremy's Blog.
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 04-21-2005, 04:25 PM   #1
yotamk
Member
 
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?

Thanks.
 
Old 04-21-2005, 10:08 PM   #2
nilleso
Member
 
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 '
cheers

~ # man sudo

SUDO(8) MAINTENANCE COMMANDS SUDO(8)



NAME
sudo - execute a command as another user

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

DESCRIPTION
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
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You could also use gnomesu, which is similar to kdesu.
 
Old 04-22-2005, 05:28 AM   #4
yotamk
Member
 
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...
 
  


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
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
[SOLVED] 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

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

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