2019-05-29 20:50:49 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: ft=yaml
|
|
|
|
---
|
2013-08-20 23:32:58 +02:00
|
|
|
sudoers:
|
2018-08-22 12:14:02 +02:00
|
|
|
# By default the main sudoers file is managed by this formula (False to skip)
|
2019-08-06 21:56:57 +02:00
|
|
|
manage_main_config: true
|
2020-08-24 17:58:35 +02:00
|
|
|
# By default the included directory is not purged from unwanted files
|
|
|
|
purge_includedir: false
|
2013-08-20 23:32:58 +02:00
|
|
|
users:
|
2014-10-02 09:22:49 +02:00
|
|
|
johndoe:
|
2014-08-19 16:26:47 +02:00
|
|
|
- 'ALL=(ALL) ALL'
|
|
|
|
- 'ALL=(root) NOPASSWD: /etc/init.d/httpd'
|
2013-08-20 23:32:58 +02:00
|
|
|
groups:
|
2014-10-02 09:22:49 +02:00
|
|
|
sudo:
|
2014-08-19 16:26:47 +02:00
|
|
|
- 'ALL=(ALL) ALL'
|
|
|
|
- 'ALL=(nodejs) NOPASSWD: ALL'
|
2018-08-13 21:33:05 +02:00
|
|
|
netgroups:
|
|
|
|
sysadmins:
|
|
|
|
- 'ALL=(ALL) ALL'
|
2013-08-20 23:32:58 +02:00
|
|
|
defaults:
|
2014-07-09 19:21:58 +02:00
|
|
|
generic:
|
2014-10-04 21:29:39 +02:00
|
|
|
- env_reset
|
2014-07-09 19:21:58 +02: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 23:32:58 +02:00
|
|
|
aliases:
|
|
|
|
hosts:
|
2013-08-20 23:51:13 +02:00
|
|
|
WEBSERVERS:
|
2013-08-20 23:32:58 +02:00
|
|
|
- www1
|
|
|
|
- www2
|
|
|
|
- www3
|
|
|
|
users:
|
2013-08-20 23:51:13 +02:00
|
|
|
ADMINS:
|
2013-08-20 23:32:58 +02:00
|
|
|
- millert
|
|
|
|
- dowdy
|
|
|
|
- mikef
|
|
|
|
commands:
|
2013-08-20 23:51:13 +02:00
|
|
|
PROCESSES:
|
2013-08-20 23:32:58 +02:00
|
|
|
- /usr/bin/nice
|
|
|
|
- /bin/kill
|
|
|
|
- /usr/bin/renice
|
|
|
|
- /usr/bin/pkill
|
|
|
|
- /usr/bin/top
|
2013-08-20 23:35:57 +02:00
|
|
|
includedir: /etc/sudoers.d
|
2014-02-09 18:32:22 +01:00
|
|
|
included_files:
|
|
|
|
/etc/sudoers.d/extra-file:
|
|
|
|
users:
|
2014-10-02 09:22:49 +02:00
|
|
|
foo:
|
2014-08-19 16:26:47 +02:00
|
|
|
- 'ALL=(ALL) ALL'
|
2018-02-04 20:04:11 +01:00
|
|
|
extra-file-2:
|
2014-02-09 18:32:22 +01:00
|
|
|
groups:
|
2014-10-02 09:22:49 +02:00
|
|
|
bargroup:
|
2014-08-19 16:26:47 +02:00
|
|
|
- 'ALL=(ALL) NOPASSWD: ALL'
|
2018-08-13 21:33:05 +02:00
|
|
|
extra-file-3:
|
|
|
|
netgroups:
|
|
|
|
other_netgroup:
|
|
|
|
- 'ALL=(ALL) ALL'
|
2021-08-19 01:05:27 +02:00
|
|
|
# ordering is important. The sudoers manpage says when multiple
|
|
|
|
# entries match, the last match is used. However, if we do not
|
|
|
|
# manage the main config, our included files may not match last.
|
|
|
|
# To guarantee included files match last, set 'true' below to append
|
|
|
|
# each '#include <includefile>' to sudoers file.
|
|
|
|
append_included_files_to_endof_main_config: true
|