Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 06-11-2004, 01:54 PM   #1
LQ Newbie
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
Menu entry as root


I am newbie in Linux. I have installed Mandrake 9.1 and then a program
(in fact, is Tomcat, but this is not important). I have located the program in /usr/local (I think it is the right place, isn'n it?). But this program (to be more specific, the shell script which starts the server) can only be runned as root (I don't know if the cause is the same program or the /usr/local directory). So far, so good.

The problem is I want to define a menu entry in order to run this program (this shell script) without opening a terminal. In Windows (oh! I said the wicked word) this is automatically done by the installer. In Mandrake a menu entry can be done by MenuDrake, but when I do so, the entry doesn't work because I have no root privileges.

I have tried everything and it didn't work. And I don't know how to login as a root in Mandrake (the root user doesn't appear in login screen). Besides, I don't want to log as a root every time I want to start the program.

So my question is "how can I define a menu entry that, when executed, has root privileges?" What I want to achieve is similar to the execution of Mandrake Configuration Center (when runned, a window appears that ask for the root password -KDE su).

Thank you,

Cento Vallero
Old 06-30-2004, 02:08 PM   #2
Registered: May 2004
Location: St. Petersburg, FL USA
Distribution: Arch Linux, Fedora Core 3
Posts: 51

Rep: Reputation: 15
From what I gather, sudo is the simplest way to run something as root. I would assume you have sudo, at the terminal type
'man sudo'
and you'll get the manual pages for it. Or search online for how to use it. I've never done it (no need so far), but it seems simple.
Old 07-01-2004, 04:05 AM   #3
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
if the above sudo advice didn't work, try the following...........

in the menu editor, for the execute command put kdesu in front of the app executable name. i'm not sure what that would be for Tomcat, but as an example, it would look something like this..........

kdesu tomcat

save the menu changes.



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
Gnome menu entry disappered.. hkl8324 Debian 1 10-04-2005 03:36 PM
KDE menu entry cannot be deleted! gkiagia Linux - Software 2 10-04-2005 09:57 AM
K-menu lacks System submenu entry Marc L. Linux - Newbie 3 07-15-2005 08:52 AM
adding menu entry in gnome brainlesspinkey Linux - Software 2 11-20-2004 08:38 PM
Gnome Network Servers Menu Entry Xylon Linux - Networking 2 03-15-2004 11:20 AM > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 06:34 AM.

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
Open Source Consulting | Domain Registration