Problem: you want specific non-superusers to start and stop system daemons
Solution: Here we let four our different users to start,stop, and restart web servers. The script for doing so is /etc/init.d/httpd
/etc/sudoers:
User_Alias FOLKS=barbara, l33t, jimmy, miroslav
Cmnd_Alias DAEMONS=/etc/init.d/httpd start, /etc/init.d/httpd stop, /etc/init.d/httpd restart
FOLKS ALL = (ALL) DAEMONS
Solution: Here we let four our different users to start,stop, and restart web servers. The script for doing so is /etc/init.d/httpd
/etc/sudoers:
User_Alias FOLKS=barbara, l33t, jimmy, miroslav
Cmnd_Alias DAEMONS=/etc/init.d/httpd start, /etc/init.d/httpd stop, /etc/init.d/httpd restart
FOLKS ALL = (ALL) DAEMONS
No comments:
Post a Comment