Closed ttres closed 6 years ago
EL 7 systems /etc/sudoers comes with some systemctl commands, by default, in SERVICES alias, that should not be erased:
/etc/sudoers
systemctl
SERVICES
# Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig, /usr/bin/systemctl start, /usr/bin/systemctl stop, /usr/bin/systemctl reload, /usr/bin/systemctl restart, /usr/bin/systemctl status, /usr/bin/systemctl enable, /usr/bin/systemctl disable
Expected result: alias is not changed Actual result: alias is rewritten and systemctl commands are removed
+1
EL 7 systems
/etc/sudoers
comes with somesystemctl
commands, by default, inSERVICES
alias, that should not be erased:Expected result: alias is not changed Actual result: alias is rewritten and
systemctl
commands are removed