Skip to content

Commit 3642a5d

Browse files
committed
Disable send user NOT in sudoers mail notify
1 parent 1bc8f5e commit 3642a5d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

salt/sudoers.sls

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/etc/sudoers.d/custom:
2+
file.managed:
3+
- mode: 440
4+
- content: Defaults !mail_no_user
5+
- check_cmd: /usr/sbin/visudo -cf
6+
- require:
7+
- pkg: sudo

salt/top.sls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ base:
88
- tmux
99
- auditd
1010
- rsyslog
11+
- sudoers
1112
- sysctl
1213
- users.log_acl
1314
- update_motd_d

0 commit comments

Comments
 (0)