Puppet Class: cis_security_hardening::rules::shells_perms
- Defined in:
- manifests/rules/shells_perms.pp
Summary
Ensure permissions on /etc/shells are configuredOverview
/etc/shells is a text file which contains the full pathnames of valid login shells. This file is consulted by chsh and available to be queried by other programs.
Rationale: It is critical to ensure that the /etc/shells file is protected from unauthorized access. Although it is protected by default, the file permissions could be changed either inadvertently or through malicious actions.
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'manifests/rules/shells_perms.pp', line 21
class cis_security_hardening::rules::shells_perms (
Boolean $enforce = false,
) {
if $enforce {
file { '/etc/shells':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
}
}
}
|