version 1.3, 2004/09/28 15:10:51 |
version 1.4, 2008/11/14 11:58:08 |
|
|
# |
# |
# See the sudoers man page for the details on how to write a sudoers file. |
# See the sudoers man page for the details on how to write a sudoers file. |
# |
# |
|
# $Sudo: sample.sudoers,v 1.29 2008/10/03 19:55:57 millert Exp $ |
|
|
## |
## |
|
# Override built-in defaults |
|
## |
|
Defaults syslog=auth |
|
Defaults>root !set_logname |
|
Defaults:FULLTIMERS !lecture |
|
Defaults:millert !authenticate |
|
Defaults@SERVERS log_year, logfile=/var/log/sudo.log |
|
Defaults!PAGERS noexec |
|
|
|
## |
# User alias specification |
# User alias specification |
## |
## |
User_Alias FULLTIMERS = millert, mikef, dowdy |
User_Alias FULLTIMERS = millert, mikef, dowdy |
|
|
Cmnd_Alias SU = /usr/bin/su |
Cmnd_Alias SU = /usr/bin/su |
Cmnd_Alias VIPW = /usr/sbin/vipw, /usr/bin/passwd, /usr/bin/chsh, \ |
Cmnd_Alias VIPW = /usr/sbin/vipw, /usr/bin/passwd, /usr/bin/chsh, \ |
/usr/bin/chfn |
/usr/bin/chfn |
|
Cmnd_Alias PAGERS = /usr/bin/more, /usr/bin/pg, /usr/bin/less |
|
|
## |
## |
# Override built-in defaults |
|
## |
|
Defaults syslog=auth |
|
Defaults>root !set_logname |
|
Defaults:FULLTIMERS !lecture |
|
Defaults:millert !authenticate |
|
Defaults@SERVERS log_year, logfile=/var/log/sudo.log |
|
|
|
## |
|
# User specification |
# User specification |
## |
## |
|
|
|
|
joe ALL = /usr/bin/su operator |
joe ALL = /usr/bin/su operator |
|
|
# pete may change passwords for anyone but root on the hp snakes |
# pete may change passwords for anyone but root on the hp snakes |
pete HPPA = /usr/bin/passwd [A-z]*, !/usr/bin/passwd root |
pete HPPA = /usr/bin/passwd [A-Za-z]*, !/usr/bin/passwd root |
|
|
# bob may run anything on the sparc and sgi machines as any user |
# bob may run anything on the sparc and sgi machines as any user |
# listed in the Runas_Alias "OP" (ie: root and operator) |
# listed in the Runas_Alias "OP" (ie: root and operator) |