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/.*
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-72029
Rule ID: SV-86653r2_rule
STIG ID: RHEL-07-020690
Severity: CAT II