Ensures /etc/sudoers
and /etc/sudoers.d/*
files
don't allow passwordless sudo:
-
Removes
NOPASSWD:
entries (changes them toPASSWD:
) -
Removes
exempt_group
setting (comments it out)
While this module tries its best, it can't guarantee protection against a malicious sysadmin. They can always
chomd u+s
a copy of bash, or replacesudo
binary with their own copy, or configure it to use a different security policy plugin, or to look for config files in a different place.