Puppet Class: cis_security_hardening::rules::passwd_perms
- Defined in:
- manifests/rules/passwd_perms.pp
Summary
Ensure permissions on /etc/passwd are configuredOverview
The /etc/passwd file contains user account information that is used by many system utilities and therefore must be readable for these utilities to operate.
Rationale: It is critical to ensure that the /etc/passwd file is protected from unauthorized write access. Although it is protected by default, the file permissions could be changed either inadvertently or through malicious actions.
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'manifests/rules/passwd_perms.pp', line 20
class cis_security_hardening::rules::passwd_perms (
Boolean $enforce = false,
) {
if $enforce {
file { '/etc/passwd':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
}
}
}
|