Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
execute init scripts as a regular user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
feldespato
n00b
n00b


Joined: 28 Nov 2004
Posts: 57
Location: Port de Sagunt, País Valencià

PostPosted: Wed Dec 28, 2005 10:36 pm    Post subject: execute init scripts as a regular user Reply with quote

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
View user's profile Send private message
tukachinchila
Apprentice
Apprentice


Joined: 11 Mar 2005
Posts: 274
Location: Oregon

PostPosted: Wed Dec 28, 2005 10:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum