Blame SOURCES/sudoers

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