Information
RHEL 10 must ensure that all local interactive user home directories are group-owned by the home directory owner's primary group.
GROUP ID: V-281049RULE ID: SV-281049r1197223
If the group identifier (GID) of a local interactive user's home directory is not the same as the primary GID of the user, this would allow unauthorized access to the user's files. Users who share the same group may not be able to access files that they legitimately should be able to access.
Satisfies: SRG-OS-000080-GPOS-00048, SRG-OS-000420-GPOS-00186
Solution
Configure RHEL 10 interactive users' home directories to be group-owned by the user's primary GID.
Change the group owner of a local interactive user's home directory to the group found in "/etc/passwd". 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 "disauser", who has a home directory of "/home/disauser" and has a primary group of users.
$ sudo chgrp users /home/disauser