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 07-13-2006, 04:52 PM   #1
LQ Newbie
Registered: Feb 2006
Posts: 8

Rep: Reputation: 0
Giving user kill and start rights to a program


I have a game server running on a Linux9 Shrike machine, and am attemtping to give a user access rights to start and stop the game server on my machine.. Presently I have the game server starting via my rc.local file... How can I give this user rights to start and stop the game server only, without having to provide root permissions, and still have the game Launch on startup/reboot?

Thanks in advance............
Old 07-13-2006, 05:03 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
The answer my friend, is sudo. Just be sure to only give them access to the commands you want (i.e. don't use the ALL in the command field).
Old 07-13-2006, 05:05 PM   #3
Registered: Dec 2004
Distribution: gentoo
Posts: 190

Rep: Reputation: 30
Hmm. The only way I can think of would be to make the game executable "setuid". This means that no matter what user starts the application, it will run with the permissions of a specified user. In other words, linux will "set the user id" of the application to a specified user when it launches. Make the executable setuid to the user you want to give control, and then the user will own the process at all times no matter who started it.

This may be a slight security risk, but it's the only way I can think of to accomplish what you want.
Old 07-13-2006, 06:55 PM   #4
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
This may be a slight security risk, but it's the only way I can think of to accomplish what you want.
Not quite. What pljvaldez said is correct. Sudo is the preferred method for this scenario.



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
Give user rights to execute program max2004 Linux - Newbie 7 11-30-2005 07:17 PM
Giving Kppp rights to other users n groups xxx_anuj_xxx Linux - Security 5 12-22-2004 06:12 PM
Giving users more rights (Admin) FatSteve Linux - Security 7 11-19-2003 06:37 AM
Giving a user rights Help!!! Sabeer Linux - Newbie 1 08-25-2003 12:02 AM
Giving a user CHMOD rights to the /var/www/html directory? scubes13 Linux - Networking 3 08-18-2002 03:38 PM > Forums > Linux Forums > Linux - Newbie

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