2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 09:57:41 +00:00
sudo/sample.sudoers

83 lines
2.5 KiB
Plaintext
Raw Normal View History

1993-11-28 00:25:23 +00:00
#
1995-09-01 04:17:42 +00:00
# Sample /etc/sudoers file. (Assumes SunOS 4.x paths)
1993-11-27 23:59:52 +00:00
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for the details on how to write a sudoers file.
#
1995-04-10 23:51:35 +00:00
##
# User alias specification
##
User_Alias FULLTIMERS=millert,mikef,dowdy
User_Alias PARTTIMERS=bostley,jwfox,mccreary
##
1993-11-27 23:59:52 +00:00
# Cmnd alias specification
1995-04-10 23:51:35 +00:00
##
1993-11-28 00:25:23 +00:00
Cmnd_Alias DUMPS=/usr/etc/dump,/usr/etc/rdump,/usr/etc/restore,\
/usr/etc/rrestore,/usr/bin/mt
Cmnd_Alias KILL=/usr/bin/kill
1995-09-01 04:17:42 +00:00
Cmnd_Alias PRINTING=/usr/etc/lpc,/usr/ucb/lprm
1993-11-28 00:25:23 +00:00
Cmnd_Alias SHUTDOWN=/usr/etc/shutdown
Cmnd_Alias HALT=/usr/etc/halt,/usr/etc/fasthalt
Cmnd_Alias REBOOT=/usr/etc/reboot,/usr/etc/fastboot
Cmnd_Alias SHELLS=/usr/bin/sh,/usr/bin/csh,/usr/bin/ksh,\
/usr/local/bin/tcsh,/usr/ucb/rsh,\
/usr/local/bin/zsh
Cmnd_Alias SU=/usr/bin/su
Cmnd_Alias VIPW=/usr/etc/vipw,/etc/vipw,/bin/passwd
1995-04-10 23:51:35 +00:00
##
1993-11-28 00:25:23 +00:00
# Host alias specification
1995-04-10 23:51:35 +00:00
##
1993-11-28 00:25:23 +00:00
Host_Alias SUN4=bruno,eclipse,moet,anchor
Host_Alias SUN3=brazil,columbine
1994-08-15 00:47:48 +00:00
Host_Alias DECSTATION=wilkinson,soma,dendrite,thang
Host_Alias DECALPHA=widget,thalamus,foobar
1993-11-28 00:25:23 +00:00
Host_Alias HPSNAKE=boa,nag,python
1994-08-15 00:47:48 +00:00
Host_Alias CSNETS=128.138.243.0,128.138.204.0,128.138.242.0
1996-06-17 04:07:40 +00:00
Host_Alias CUNETS=128.138.0.0/255.255.0.0
1993-11-27 23:59:52 +00:00
1995-04-10 23:51:35 +00:00
##
1993-11-27 23:59:52 +00:00
# User specification
1995-04-10 23:51:35 +00:00
##
1996-01-14 20:39:26 +00:00
1996-06-15 22:11:08 +00:00
# root and users in group wheel can run anything on any machine as any user
root ALL=ALL (ALL)
%wheel ALL=ALL (ALL)
1993-11-28 00:25:23 +00:00
1996-06-15 22:11:08 +00:00
# full time sysadmins can run anything on any machine without a password
FULLTIMERS ALL=NOPASSWD:ALL
1996-01-14 20:39:26 +00:00
# part time sysadmins may run anything except root shells or su
1995-04-10 23:51:35 +00:00
PARTTIMERS ALL=ALL,!SU,!SHELLS
1996-01-14 20:39:26 +00:00
# rodney may run anything except root shells or su on machines in CSNETS
1994-08-15 00:47:48 +00:00
rodney CSNETS=ALL,!SU,!SHELLS
1996-01-14 20:39:26 +00:00
1996-06-17 04:07:40 +00:00
# smartguy may run any command on any host in CUNETS (call B address)
smartguy CUNETS=ALL
1996-01-14 20:39:26 +00:00
# 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
1996-02-05 23:39:35 +00:00
# pete may change passwords for anyone but root
pete /bin/passwd [A-z]*,!/bin/passwd root
1996-01-14 20:39:26 +00:00
# bob may run anything except root shells or su on the sun3 and sun4 machines
1993-11-28 00:25:23 +00:00
bob SUN4=ALL,!SU,!SHELLS:\
SUN3=ALL,!SU,!SHELLS
1996-01-14 20:39:26 +00:00
# jim may run anything on machines in the biglab netgroup
1995-09-01 04:17:42 +00:00
jim +biglab=ALL
1996-01-14 20:39:26 +00:00
# users in the secretaries netgroup need to help manage the printers
1995-09-01 04:17:42 +00:00
+secretaries ALL=PRINTING
1996-06-15 22:11:08 +00:00
# fred can run /bin/ls as oracle by specifying -u oracle on command line;
# he can also run /bin/date as uid -2 without entering a password
fred ALL=(oracle) /bin/ls,(#-2) NOPASSWD:/bin/date