Information
The operating system must be configured so that all files and directories contained in local interactive user home directories have a mode of 0750 or less permissive.
Rationale:
If a local interactive user files have excessive permissions, unintended users may be able to access or modify them.
Solution
Set the mode on files and directories in the local interactive user home directory with the following command:
Note: The example will be for the user smithj, who has a home directory of /home/smithj and is a member of the users group.
# chmod 0750 /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-72027
Rule ID: SV-86651r2_rule
STIG ID: RHEL-07-020680
Severity: CAT II