Annotation of src/usr.bin/sudo/sudoers, Revision 1.27
1.27 ! ajacouto 1: # $OpenBSD: sudoers,v 1.26 2013/09/12 14:02:07 ajacoutot 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.27 ! ajacouto 19: Defaults env_keep +="FTPMODE PKG_CACHE PKG_PATH SM_PATH SSH_AUTH_SOCK"
! 20:
! 21: # Non-exhaustive list of variables needed to build release(8) and ports(7)
! 22: Defaults:%wsrc env_keep +="DESTDIR DISTDIR FETCH_CMD FLAVOR GROUP MAKE MAKECONF"
! 23: Defaults:%wsrc env_keep +="MULTI_PACKAGES NOMAN OKAY_FILES OWNER PKG_DBDIR"
! 24: Defaults:%wsrc env_keep +="PKG_DESTDIR PKG_TMPDIR PORTSDIR RELEASEDIR SHARED_ONLY"
! 25: Defaults:%wsrc env_keep +="SUBPACKAGE WRKOBJDIR"
! 26:
! 27: # Uncomment to preserve the default proxy host variable
! 28: #Defaults env_keep +="ftp_proxy http_proxy"
1.21 thib 29:
30: # Uncomment to disable the lecture the first time you run sudo
31: #Defaults !lecture
1.15 millert 32:
33: # Uncomment to preserve the environment for users in group wheel
34: #Defaults:%wheel !env_reset
1.7 millert 35:
1.5 millert 36: # Runas alias specification
37:
1.1 millert 38: # User privilege specification
1.6 millert 39: root ALL=(ALL) SETENV: ALL
1.2 espie 40:
41: # Uncomment to allow people in group wheel to run all commands
1.6 millert 42: # and set environment variables.
43: # %wheel ALL=(ALL) SETENV: ALL
1.2 espie 44:
45: # Same thing without a password
1.6 millert 46: # %wheel ALL=(ALL) NOPASSWD: SETENV: ALL
1.2 espie 47:
48: # Samples
49: # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
50: # %users localhost=/sbin/shutdown -h now