Information
The operating system must be configured so that all local initialization (dot) files for local interactive users are group-owned by the users primary group or root.
Rationale:
Local initialization (dot) files for interactive users are used to configure the user's shell environment upon logon. Malicious modification of these files could compromise accounts upon logon.
Solution
Change the group owner of a local interactive user's files to the group found in /etc/passwd for the user. To change the group owner of a local interactive user's home directory, use the following command:
Note: The example will be for the user smithj, who has a home directory of /home/smithj, and has a primary group of users.
# chgrp users /home/smithj/<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-72031
Rule ID: SV-86655r3_rule
STIG ID: RHEL-07-020700
Severity: CAT II