Annotation of src/usr.bin/sudo/sudoers, Revision 1.17
1.17 ! steven 1: # $OpenBSD: sudoers,v 1.16 2007/10/06 22:17:17 sthen Exp $
1.15 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.15 millert 17: Defaults env_keep +="DESTDIR FETCH_CMD FLAVOR FTPMODE GROUP MAKE MULTI_PACKAGES"
18: Defaults env_keep +="OKAY_FILES OWNER PKG_DBDIR PKG_DESTDIR PKG_CACHE PKG_PATH"
1.16 sthen 19: Defaults env_keep +="PKG_TMPDIR PORTSDIR RELEASEDIR SUBPACKAGE WRKOBJDIR"
1.17 ! steven 20: Defaults env_keep +="SSH_AUTH_SOCK"
1.15 millert 21:
22: # Uncomment to preserve the environment for users in group wheel
23: #Defaults:%wheel !env_reset
1.7 millert 24:
1.5 millert 25: # Runas alias specification
26:
1.1 millert 27: # User privilege specification
1.6 millert 28: root ALL=(ALL) SETENV: ALL
1.2 espie 29:
30: # Uncomment to allow people in group wheel to run all commands
1.6 millert 31: # and set environment variables.
32: # %wheel ALL=(ALL) SETENV: ALL
1.2 espie 33:
34: # Same thing without a password
1.6 millert 35: # %wheel ALL=(ALL) NOPASSWD: SETENV: ALL
1.2 espie 36:
37: # Samples
38: # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
39: # %users localhost=/sbin/shutdown -h now