Annotation of src/usr.bin/sudo/sudoers, Revision 1.26
1.26 ! ajacouto 1: # $OpenBSD: sudoers,v 1.25 2009/10/26 19:28:26 millert Exp $
1.15 millert 2: #
1.1 millert 3: # sudoers file.
4: #
5: # This file MUST be edited with the 'visudo' command as root.
1.19 millert 6: # Failure to use 'visudo' may result in syntax or file permission errors
7: # that prevent sudo from running.
1.1 millert 8: #
9: # See the sudoers man page for the details on how to write a sudoers file.
10: #
11:
12: # Host alias specification
13:
14: # User alias specification
15:
16: # Cmnd alias specification
17:
1.3 millert 18: # Defaults specification
1.24 krw 19: Defaults env_keep +="DESTDIR DISTDIR EDITOR FETCH_CMD FLAVOR FTPMODE GROUP MAKE"
1.25 millert 20: Defaults env_keep +="MAKECONF MULTI_PACKAGES NOMAN OKAY_FILES OWNER PKG_CACHE"
21: Defaults env_keep +="PKG_DBDIR PKG_DESTDIR PKG_PATH PKG_TMPDIR PORTSDIR"
1.26 ! ajacouto 22: Defaults env_keep +="RELEASEDIR SHARED_ONLY SM_PATH SSH_AUTH_SOCK SUBPACKAGE"
! 23: Defaults env_keep +="VISUAL WRKOBJDIR"
1.21 thib 24:
25: # Uncomment to disable the lecture the first time you run sudo
26: #Defaults !lecture
1.15 millert 27:
28: # Uncomment to preserve the environment for users in group wheel
29: #Defaults:%wheel !env_reset
1.7 millert 30:
1.5 millert 31: # Runas alias specification
32:
1.1 millert 33: # User privilege specification
1.6 millert 34: root ALL=(ALL) SETENV: ALL
1.2 espie 35:
36: # Uncomment to allow people in group wheel to run all commands
1.6 millert 37: # and set environment variables.
38: # %wheel ALL=(ALL) SETENV: ALL
1.2 espie 39:
40: # Same thing without a password
1.6 millert 41: # %wheel ALL=(ALL) NOPASSWD: SETENV: ALL
1.2 espie 42:
43: # Samples
44: # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
45: # %users localhost=/sbin/shutdown -h now