1.343 OL09-00-002514

Information

OL 9 local interactive user home directories must be group-owned by the home directory owner's primary group.

GROUP ID: V-271783
RULE ID: SV-271783r1184216

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, and users that share the same group may not be able to access files that they legitimately should.

Solution

Change the group owner of a local interactive user's home directory to the group found in "/etc/passwd" using 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

See Also

https://workbench.cisecurity.org/benchmarks/27024