Annotation of src/usr.bin/sudo/sudoers, Revision 1.11
1.11 ! ajacouto 1: # $OpenBSD: sudoers,v 1.10 2007/08/02 15:52:42 millert Exp $
1.9 millert 2: #
1.1 millert 3: # sudoers file.
4: #
5: # This file MUST be edited with the 'visudo' command as root.
6: #
7: # See the sudoers man page for the details on how to write a sudoers file.
8: #
9:
10: # Host alias specification
11:
12: # User alias specification
13:
14: # Cmnd alias specification
15:
1.3 millert 16: # Defaults specification
1.11 ! ajacouto 17: Defaults env_keep +="DESTDIR FETCH_CMD FLAVOR FTPMODE MULTI_PACKAGES OKAY_FILES PKG_DBDIR PKG_DESTDIR PKG_CACHE PKG_PATH PKG_TMPDIR RELEASEDIR SUBPACKAGE"
1.3 millert 18:
1.7 millert 19: # Uncomment to preserve the environment for users in group wheel
20: #Defaults:%wheel !env_reset
21:
1.5 millert 22: # Runas alias specification
23:
1.1 millert 24: # User privilege specification
1.6 millert 25: root ALL=(ALL) SETENV: ALL
1.2 espie 26:
27: # Uncomment to allow people in group wheel to run all commands
1.6 millert 28: # and set environment variables.
29: # %wheel ALL=(ALL) SETENV: ALL
1.2 espie 30:
31: # Same thing without a password
1.6 millert 32: # %wheel ALL=(ALL) NOPASSWD: SETENV: ALL
1.2 espie 33:
34: # Samples
35: # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
36: # %users localhost=/sbin/shutdown -h now