6.2.21 Ensure that all files and directories contained in local interactive user home directories are owned by the user

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

See Also

https://workbench.cisecurity.org/files/2688

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b.

Plugin: Unix

Control ID: 0c392cbaaaa786409b86fce051e9ed63103edf85ee02d2fda1a45dafce5055fc