6.2.23 Ensure local interactive users' dot files for are owned by the user or root.

Information

The operating system must be configured so that all local initialization (dot) files for interactive users are owned by the home directory user or root.

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 owner of the local initialization files for interactive users to either the home directory owner or root with the following command:
Note: The example will be for the smithj user, who has a home directory of /home/smithj.

# chown smithj /home/smithj/.*

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-204474r603834_rule, STIG-ID|RHEL-07-020690

Plugin: Unix

Control ID: 1e1ff3e904ecc8c2ec6fdc1e295ed7d924c3978b536014d806c8c766292a3a2e