View previous topic :: View next topic |
Author |
Message |
feldespato n00b
Joined: 28 Nov 2004 Posts: 57 Location: Port de Sagunt, País Valencià
|
Posted: Wed Dec 28, 2005 10:36 pm Post subject: execute init scripts as a regular user |
|
|
Hi, I want the users in the "users" group to be able to execute the mldonkey init script. How can I do that? I have set the SUID bit to /etc/init.d/mldonkey but it gives me the same error:
Code: | /etc/init.d/mldonkey stop
* /sbin/runscript.sh: must be root to run init scripts
|
|
|
Back to top |
|
|
tukachinchila Apprentice
Joined: 11 Mar 2005 Posts: 274 Location: Oregon
|
Posted: Wed Dec 28, 2005 10:52 pm Post subject: |
|
|
I think it would be better to use `sudo' (http://www.sudo.ws) for this. If you can avoid logging in as root yourself even, it would be more secure to execute: Code: | sudo /etc/init.d/mldonkey stop |
Check the man pages for sudo and sudoers if you already have it installed. |
|
Back to top |
|
|
|