2020-08-25 00:03:17 -04:00
|
|
|
# yamllint disable rule:indentation rule:line-length
|
|
|
|
# Ubuntu-20.04
|
|
|
|
---
|
2020-12-22 17:18:14 -05:00
|
|
|
values:
|
|
|
|
sudoers:
|
|
|
|
aliases:
|
|
|
|
commands:
|
|
|
|
PROCESSES:
|
|
|
|
- /usr/bin/nice
|
|
|
|
- /bin/kill
|
|
|
|
- /usr/bin/renice
|
|
|
|
- /usr/bin/pkill
|
|
|
|
- /usr/bin/top
|
|
|
|
hosts:
|
|
|
|
WEBSERVERS:
|
|
|
|
- www1
|
|
|
|
- www2
|
|
|
|
- www3
|
|
|
|
users:
|
|
|
|
ADMINS:
|
|
|
|
- millert
|
|
|
|
- dowdy
|
|
|
|
- mikef
|
|
|
|
arch: amd64
|
|
|
|
configpath: /etc
|
|
|
|
defaults:
|
|
|
|
command_list:
|
|
|
|
PROCESSES: noexec
|
|
|
|
generic:
|
|
|
|
- env_reset
|
|
|
|
- mail_badpass
|
|
|
|
- secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
|
|
host_list:
|
|
|
|
www1: log_year, logfile=/var/log/sudo.log
|
|
|
|
runas_list:
|
|
|
|
root: '!set_logname'
|
|
|
|
user_list:
|
|
|
|
ADMINS: '!lecture'
|
|
|
|
johndoe: '!requiretty'
|
|
|
|
execprefix: /usr/sbin
|
|
|
|
group: root
|
2020-12-21 17:00:30 -05:00
|
|
|
groups:
|
2020-12-22 17:18:14 -05:00
|
|
|
sudo:
|
|
|
|
- ALL=(ALL) ALL
|
|
|
|
- 'ALL=(nodejs) NOPASSWD: ALL'
|
|
|
|
included_files:
|
|
|
|
/etc/sudoers.d/extra-file:
|
|
|
|
users:
|
|
|
|
foo:
|
|
|
|
- ALL=(ALL) ALL
|
|
|
|
extra-file-2:
|
|
|
|
groups:
|
|
|
|
bargroup:
|
|
|
|
- 'ALL=(ALL) NOPASSWD: ALL'
|
|
|
|
extra-file-3:
|
|
|
|
netgroups:
|
|
|
|
other_netgroup:
|
|
|
|
- ALL=(ALL) ALL
|
|
|
|
includedir: /etc/sudoers.d
|
|
|
|
manage_main_config: true
|
2020-12-21 17:00:30 -05:00
|
|
|
netgroups:
|
2020-12-22 17:18:14 -05:00
|
|
|
sysadmins:
|
|
|
|
- ALL=(ALL) ALL
|
|
|
|
pkg: sudo
|
|
|
|
purge_includedir: false
|
|
|
|
users:
|
|
|
|
johndoe:
|
2020-12-21 17:00:30 -05:00
|
|
|
- ALL=(ALL) ALL
|
2020-12-22 17:18:14 -05:00
|
|
|
- 'ALL=(root) NOPASSWD: /etc/init.d/httpd'
|
|
|
|
kitchen:
|
|
|
|
- 'ALL=(root) NOPASSWD: ALL'
|