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

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

1.21    ! thib        1: # $OpenBSD: sudoers,v 1.20 2008/03/20 12:46:43 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.
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.15      millert    19: Defaults env_keep +="DESTDIR FETCH_CMD FLAVOR FTPMODE GROUP MAKE MULTI_PACKAGES"
                     20: Defaults env_keep +="OKAY_FILES OWNER PKG_DBDIR PKG_DESTDIR PKG_CACHE PKG_PATH"
1.16      sthen      21: Defaults env_keep +="PKG_TMPDIR PORTSDIR RELEASEDIR SUBPACKAGE WRKOBJDIR"
1.20      sthen      22: Defaults env_keep +="SSH_AUTH_SOCK EDITOR VISUAL SHARED_ONLY"
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