hi,
login as root
# visudo
(write something like this)
User_Alias MYUSERS = <user1>, <user2>, <user3>
(the users to whom you are giving special permissions)
Runas_Alias OP = root
(giving root users privilages, normally it will be there, optional, you can also put ALL)
Host_Alias SERVERS = master, mail
(allowed on these hosts only. optional, otherwise you can put ALL)
Cmnd_Alias MYSERVICES = /etc/init.d/<service script name>, <another script or binary>, <another one>
(note: the path to service scripts varies, redhat (/etc/rc.d/init.d) suse(/etc/init.d))
(add one more line)
MYUSERS SERVERS = (OP) NOPASSWD: MYSERVICES
(NOPASSWD: is optional, if you put, no passwd will be asked)
(write changes)
(more info: man sudoers)
______________________________________
mmn
|