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>

Notes:

This Benchmark recommendation maps to:

Red Hat Enterprise Linux 7 Security Technical Implementation Guide:

Version 2, Release: 3 Benchmark Date: 26 Apr 2019



Vul ID: V-72033

Rule ID: SV-86657r2_rule

STIG ID: RHEL-07-020710

Severity: CAT II

See Also

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

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-3, CSCv7|14.6

Plugin: Unix

Control ID: 6fe01b29b4c7532990bff1a5a809068679879ee35c631cb2e1500d3e36f9c7ed