6.2.25 Ensure users' dot files have 0740 or less set.

Information

The operating system must be configured so that all local initialization (dot) files have mode 0740 or less permissive.

Rationale:

Local initialization (dot) files are used to configure the user's shell environment upon logon. Malicious modification of these files could compromise accounts upon logon.

Solution

Set the mode of the local initialization files to 0740 with the following command:
Note: The example will be for the smithj user, who has a home directory of /home/smithj.

# chmod 0740 /home/smithj/.<INIT_FILE>

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CCI|CCI-000366, CSCv6|3.1, CSCv7|14.6, Rule-ID|SV-204476r603261_rule, STIG-ID|RHEL-07-020710

Plugin: Unix

Control ID: 3a6f5b1d48d219091098e36c6a99e1a0bfb926839cbcc7ff62d3e1b38835b140