[BACK]Return to sudoers CVS log [TXT][DIR] Up to [local] / src / usr.bin / sudo

Annotation of src/usr.bin/sudo/sudoers, Revision 1.23

1.23    ! millert     1: # $OpenBSD: sudoers,v 1.22 2009/05/08 13:42:49 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.22      ajacouto   19: Defaults env_keep +="DESTDIR EDITOR FETCH_CMD FLAVOR FTPMODE GROUP MAKE"
1.23    ! millert    20: Defaults env_keep +="MULTI_PACKAGES NOMAN OKAY_FILES OWNER PKG_CACHE PKG_DBDIR"
1.22      ajacouto   21: Defaults env_keep +="PKG_DESTDIR PKG_PATH PKG_TMPDIR PORTSDIR RELEASEDIR"
                     22: Defaults env_keep +="SHARED_ONLY SSH_AUTH_SOCK SUBPACKAGE VISUAL WRKOBJDIR"
1.21      thib       23:
                     24: # Uncomment to disable the lecture the first time you run sudo
                     25: #Defaults !lecture
1.15      millert    26:
                     27: # Uncomment to preserve the environment for users in group wheel
                     28: #Defaults:%wheel !env_reset
1.7       millert    29:
1.5       millert    30: # Runas alias specification
                     31:
1.1       millert    32: # User privilege specification
1.6       millert    33: root   ALL=(ALL) SETENV: ALL
1.2       espie      34:
                     35: # Uncomment to allow people in group wheel to run all commands
1.6       millert    36: # and set environment variables.
                     37: # %wheel       ALL=(ALL) SETENV: ALL
1.2       espie      38:
                     39: # Same thing without a password
1.6       millert    40: # %wheel       ALL=(ALL) NOPASSWD: SETENV: ALL
1.2       espie      41:
                     42: # Samples
                     43: # %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
                     44: # %users  localhost=/sbin/shutdown -h now