From: Todd C. Miller Date: Sun, 14 Jan 1996 20:39:26 +0000 (+0000) Subject: added comments X-Git-Tag: SUDO_1_4_0~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57be0e7ff6c867a5db8292a48998c37659a11382;p=sudo added comments --- diff --git a/sample.sudoers b/sample.sudoers index 752dde380..74458f526 100644 --- a/sample.sudoers +++ b/sample.sudoers @@ -41,15 +41,31 @@ Host_Alias CSNETS=128.138.243.0,128.138.204.0,128.138.242.0 ## # User specification ## + +# root and users in group wheel can run anything on any machine root ALL=ALL %wheel ALL=ALL +# full time sysadmins can run anything on any machine FULLTIMERS ALL=ALL +# part time sysadmins may run anything except root shells or su PARTTIMERS ALL=ALL,!SU,!SHELLS + +# rodney may run anything except root shells or su on machines in CSNETS rodney CSNETS=ALL,!SU,!SHELLS -operator ALL=DUMPS,KILL,PRINTING,SHUTDOWN,HALT,REBOOT,/usr/bin/su \ - operator,/usr/oper/bin/ + +# operator may run maintenance commands and anything in /usr/oper/bin/ +operator ALL=DUMPS,KILL,PRINTING,SHUTDOWN,HALT,REBOOT,/usr/oper/bin/ + +# joe may su only to operator +joe /usr/bin/su operator + +# bob may run anything except root shells or su on the sun3 and sun4 machines bob SUN4=ALL,!SU,!SHELLS:\ SUN3=ALL,!SU,!SHELLS + +# jim may run anything on machines in the biglab netgroup jim +biglab=ALL + +# users in the secretaries netgroup need to help manage the printers +secretaries ALL=PRINTING