2013-08-20 17:32:58 -04:00
|
|
|
sudoers:
|
2018-08-22 06:14:02 -04:00
|
|
|
# By default the main sudoers file is managed by this formula (False to skip)
|
|
|
|
manage_main_config: True
|
2013-08-20 17:32:58 -04:00
|
|
|
users:
|
2014-10-02 03:22:49 -04:00
|
|
|
johndoe:
|
2014-08-19 10:26:47 -04:00
|
|
|
- 'ALL=(ALL) ALL'
|
|
|
|
- 'ALL=(root) NOPASSWD: /etc/init.d/httpd'
|
2013-08-20 17:32:58 -04:00
|
|
|
groups:
|
2014-10-02 03:22:49 -04:00
|
|
|
sudo:
|
2014-08-19 10:26:47 -04:00
|
|
|
- 'ALL=(ALL) ALL'
|
|
|
|
- 'ALL=(nodejs) NOPASSWD: ALL'
|
2018-08-13 15:33:05 -04:00
|
|
|
netgroups:
|
|
|
|
sysadmins:
|
|
|
|
- 'ALL=(ALL) ALL'
|
2013-08-20 17:32:58 -04:00
|
|
|
defaults:
|
2014-07-09 13:21:58 -04:00
|
|
|
generic:
|
2014-10-04 15:29:39 -04:00
|
|
|
- env_reset
|
2014-07-09 13:21:58 -04:00
|
|
|
- mail_badpass
|
|
|
|
- secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
|
|
user_list:
|
|
|
|
johndoe: '!requiretty'
|
|
|
|
ADMINS: '!lecture'
|
|
|
|
host_list:
|
|
|
|
www1: 'log_year, logfile=/var/log/sudo.log'
|
|
|
|
command_list:
|
|
|
|
PROCESSES: 'noexec'
|
|
|
|
runas_list:
|
|
|
|
root: '!set_logname'
|
2013-08-20 17:32:58 -04:00
|
|
|
aliases:
|
|
|
|
hosts:
|
2013-08-20 17:51:13 -04:00
|
|
|
WEBSERVERS:
|
2013-08-20 17:32:58 -04:00
|
|
|
- www1
|
|
|
|
- www2
|
|
|
|
- www3
|
|
|
|
users:
|
2013-08-20 17:51:13 -04:00
|
|
|
ADMINS:
|
2013-08-20 17:32:58 -04:00
|
|
|
- millert
|
|
|
|
- dowdy
|
|
|
|
- mikef
|
|
|
|
commands:
|
2013-08-20 17:51:13 -04:00
|
|
|
PROCESSES:
|
2013-08-20 17:32:58 -04:00
|
|
|
- /usr/bin/nice
|
|
|
|
- /bin/kill
|
|
|
|
- /usr/bin/renice
|
|
|
|
- /usr/bin/pkill
|
|
|
|
- /usr/bin/top
|
2013-08-20 17:35:57 -04:00
|
|
|
includedir: /etc/sudoers.d
|
2014-02-09 12:32:22 -05:00
|
|
|
included_files:
|
|
|
|
/etc/sudoers.d/extra-file:
|
|
|
|
users:
|
2014-10-02 03:22:49 -04:00
|
|
|
foo:
|
2014-08-19 10:26:47 -04:00
|
|
|
- 'ALL=(ALL) ALL'
|
2018-02-04 14:04:11 -05:00
|
|
|
extra-file-2:
|
2014-02-09 12:32:22 -05:00
|
|
|
groups:
|
2014-10-02 03:22:49 -04:00
|
|
|
bargroup:
|
2014-08-19 10:26:47 -04:00
|
|
|
- 'ALL=(ALL) NOPASSWD: ALL'
|
2018-08-13 15:33:05 -04:00
|
|
|
extra-file-3:
|
|
|
|
netgroups:
|
|
|
|
other_netgroup:
|
|
|
|
- 'ALL=(ALL) ALL'
|