110381
## Sudoers allows particular users to run various commands as
110381
## the root user, without needing the root password.
110381
##
110381
## Examples are provided at the bottom of the file for collections
110381
## of related commands, which can then be delegated out to particular
110381
## users or groups.
110381
## 
110381
## This file must be edited with the 'visudo' command.
110381
110381
## Host Aliases
110381
## Groups of machines. You may prefer to use hostnames (perhaps using 
110381
## wildcards for entire domains) or IP addresses instead.
110381
# Host_Alias     FILESERVERS = fs1, fs2
110381
# Host_Alias     MAILSERVERS = smtp, smtp2
110381
110381
## User Aliases
110381
## These aren't often necessary, as you can use regular groups
110381
## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname 
110381
## rather than USERALIAS
110381
# User_Alias ADMINS = jsmith, mikem
110381
110381
110381
## Command Aliases
110381
## These are groups of related commands...
110381
110381
## Networking
110381
# Cmnd_Alias NETWORKING = /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient, /usr/bin/net, /sbin/iptables, /usr/bin/rfcomm, /usr/bin/wvdial, /sbin/iwconfig, /sbin/mii-tool
110381
110381
## Installation and management of software
110381
# Cmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yum
110381
110381
## Services
110381
# Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig, /usr/bin/systemctl start, /usr/bin/systemctl stop, /usr/bin/systemctl reload, /usr/bin/systemctl restart, /usr/bin/systemctl status, /usr/bin/systemctl enable, /usr/bin/systemctl disable
110381
110381
## Updating the locate database
110381
# Cmnd_Alias LOCATE = /usr/bin/updatedb
110381
110381
## Storage
110381
# Cmnd_Alias STORAGE = /sbin/fdisk, /sbin/sfdisk, /sbin/parted, /sbin/partprobe, /bin/mount, /bin/umount
110381
110381
## Delegating permissions
110381
# Cmnd_Alias DELEGATING = /usr/sbin/visudo, /bin/chown, /bin/chmod, /bin/chgrp 
110381
110381
## Processes
110381
# Cmnd_Alias PROCESSES = /bin/nice, /bin/kill, /usr/bin/kill, /usr/bin/killall
110381
110381
## Drivers
110381
# Cmnd_Alias DRIVERS = /sbin/modprobe
110381
110381
# Defaults specification
110381
110381
#
110381
# Refuse to run if unable to disable echo on the tty.
110381
#
110381
Defaults   !visiblepw
110381
110381
#
110381
# Preserving HOME has security implications since many programs
110381
# use it when searching for configuration files. Note that HOME
110381
# is already set when the the env_reset option is enabled, so
110381
# this option is only effective for configurations where either
110381
# env_reset is disabled or HOME is present in the env_keep list.
110381
#
110381
Defaults    always_set_home
110381
Defaults    match_group_by_gid
110381
683145
# Prior to version 1.8.15, groups listed in sudoers that were not
683145
# found in the system group database were passed to the group
683145
# plugin, if any. Starting with 1.8.15, only groups of the form
683145
# %:group are resolved via the group plugin by default.
683145
# We enable always_query_group_plugin to restore old behavior.
683145
# Disable this option for new behavior.
683145
Defaults    always_query_group_plugin
683145
110381
Defaults    env_reset
110381
Defaults    env_keep =  "COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS"
110381
Defaults    env_keep += "MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE"
110381
Defaults    env_keep += "LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES"
110381
Defaults    env_keep += "LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE"
110381
Defaults    env_keep += "LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY"
110381
110381
#
110381
# Adding HOME to env_keep may enable a user to run unrestricted
110381
# commands via sudo.
110381
#
110381
# Defaults   env_keep += "HOME"
110381
110381
Defaults    secure_path = /sbin:/bin:/usr/sbin:/usr/bin
110381
110381
## Next comes the main part: which users can run what software on 
110381
## which machines (the sudoers file can be shared between multiple
110381
## systems).
110381
## Syntax:
110381
##
110381
## 	user	MACHINE=COMMANDS
110381
##
110381
## The COMMANDS section may have other options added to it.
110381
##
110381
## Allow root to run any commands anywhere 
110381
root	ALL=(ALL) 	ALL
110381
110381
## Allows members of the 'sys' group to run networking, software, 
110381
## service management apps and more.
110381
# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS
110381
110381
## Allows people in group wheel to run all commands
110381
%wheel	ALL=(ALL)	ALL
110381
110381
## Same thing without a password
110381
# %wheel	ALL=(ALL)	NOPASSWD: ALL
110381
110381
## Allows members of the users group to mount and unmount the 
110381
## cdrom as root
110381
# %users  ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom
110381
110381
## Allows members of the users group to shutdown this system
110381
# %users  localhost=/sbin/shutdown -h now
110381
110381
## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
110381
#includedir /etc/sudoers.d