Information
The operating system must be configured so that all files and directories contained in local interactive user home directories are group-owned by a group of which the home directory owner is a member.
Rationale:
If a local interactive user's files are group-owned by a group of which the user is not a member, unintended users may be able to access them.
Solution
Change the group of a local interactive user's files and directories to a group that the interactive user is a member of. To change the group 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 and is a member of the users group.
# 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-72025
Rule ID: SV-86649r2_rule
STIG ID: RHEL-07-020670
Severity: CAT II