5.5.8 Ensure Default user umask is 077

Information

The operating system must define default permissions for all authenticated users in such a way that the user can only read and modify their own files.

Rationale:

Setting the most restrictive default permissions ensures that when new accounts are created, they do not have unnecessary access.

Solution

Configure the operating system to define default permissions for all authenticated users in such a way that the user can only read and modify their own files.
Add or edit the line for the UMASK parameter in /etc/login.defs file to 077:
Example: vim /etc/login.defs
Add, uncomment or update the following line:

UMASK 077

See Also

https://workbench.cisecurity.org/files/3636

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CCI|CCI-000366, CSCv7|14.6, Rule-ID|SV-204457r603261_rule, STIG-ID|RHEL-07-020240

Plugin: Unix

Control ID: 1d8f79d4df8d49398c850b0607f22966e28f4083bc86d779a83c1956f14409bd