saz / puppet-sudo

Manage sudo with Puppet on Debian-, RedHat- and SUSE-based linux distributions and some BSDs
Other
107 stars 215 forks source link

Do not remove systemctl alias for EL 7 #224

Closed ttres closed 6 years ago

ttres commented 6 years ago

EL 7 systems /etc/sudoers comes with some systemctl commands, by default, in SERVICES alias, that should not be erased:

# 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

mathse commented 6 years ago

+1