[image]: prevent password related command into syslog (#1450)
* [image]: prevent password related command into syslog
This commit is contained in:
parent
c689253b3f
commit
a9d2e13627
@ -31,12 +31,17 @@ Cmnd_Alias READ_ONLY_CMDS = /usr/bin/decode-syseeprom, \
|
||||
/bin/cat /var/log/syslog, \
|
||||
/usr/bin/tail -f /var/log/syslog
|
||||
|
||||
Cmnd_Alias PASSWD_CMDS = /usr/bin/config tacacs passkey *, \
|
||||
/usr/sbin/chpasswd *
|
||||
|
||||
# User privilege specification
|
||||
root ALL=(ALL:ALL) ALL
|
||||
|
||||
# Allow members of group sudo to execute any command
|
||||
%sudo ALL=(ALL:ALL) NOPASSWD: ALL
|
||||
|
||||
# Prevent password related command into syslog
|
||||
Defaults!PASSWD_CMDS !syslog
|
||||
|
||||
# See sudoers(5) for more information on "#include" directives:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user