Information
The operating system must be configured so that all files and directories contained in local interactive user home directories are owned by the user of the home directory.
Rationale:
If local interactive users do not own the files in their directories, unauthorized users may be able to access them. Additionally, if files are not owned by the user, this could be an indication of system compromise.
Solution
Change the owner of a local interactive user's files and directories to that owner. To change the owner of a local interactive user's files and directories, use the following command:
Note: The example will be for the user smithj, who has a home directory of /home/smithj.
# chown smithj /home/smithj/<file or directory>
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-72023
Rule ID: SV-86647r2_rule
STIG ID: RHEL-07-020660
Severity: CAT II