diff options
-rw-r--r-- | sudoers | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -0,0 +1,31 @@ +User_Alias ADM=%adm + +User_Alias WEBUSERS=%webusers + +User_Alias REALUSERS=%realusers + +Cmnd_Alias READLOG=/usr/local/sbin/showlog, \ + /usr/local/sbin/showlog [a-zA-Z0-9]*, \ + /usr/local/sbin/showlog [a-zA-Z0-9 ]* + +Cmnd_Alias ROOTLOG=/usr/local/sbin/showlog system* + +Cmnd_Alias USERMOD=/usr/sbin/adduser [a-zA-Z0-9]*, \ + /usr/sbin/deluser [a-zA-Z0-9]*, \ + /usr/bin/passwd [a-zA-Z0-9]*, \ + /usr/bin/chfn [a-zA-Z0-9]* + +Cmnd_Alias ROOTMOD=/usr/bin/passwd root, \ + /usr/sbin/userdel root, \ + /usr/sbin/userdel -r root,\ + /usr/sbin/adduser root + +Cmnd_Alias RESTART=/etc/init.d/named restart + +ADM ALL=READLOG,!ROOTLOG,USERMOD,!ROOTMOD,RESTART + +WEBUSERS ALL=READLOG,!ROOTLOG + +REALUSERS ALL=READLOG,!ROOTLOG + +root ALL=(ALL) ALL |