Rule ID
SV-240551r671394_rule
Version
V2R2
CCIs
Setting the most restrictive default permissions ensures that when new accounts are created they do not have unnecessary access.
Check for the configured "umask" value in "login.defs" with the following command: # grep UMASK /etc/login.defs If the default "umask" is not "077", this a finding. Note: If the default umask is "000" or allows for the creation of world-writable files this becomes a Severity Code I finding.
To configure the correct UMASK setting run the following command: # sed -i "/^[^#]*UMASK/ c\UMASK 077" /etc/login.defs