1.106 ALMA-09-014650

Information

All AlmaLinux OS 9 local interactive user home directories defined in the /etc/passwd file must exist.

GROUP ID: V-269209
RULE ID: SV-269209r1050091

If a local interactive user has a home directory defined that does not exist, the user may be given access to the / directory as the current working directory upon logon.

This could create a denial of service because the user would not be able to access their logon configuration files, and it may give them visibility to system files they normally would not be able to access.

Solution

Create home directories to all local interactive users that currently do not have a home directory assigned. Use the following commands to create the user home directory assigned in "/etc/ passwd":

Note: The example will be for the user testdupe, who has a home directory of "/home/testdupe", a UID of "testdupe", and a GID of "testdupe" in "/etc/passwd":

$ mkdir /home/testdupe

$ chown testdupe /home/testdupe

$ chgrp testdupe /home/testdupe

$ chmod 0700 /home/testdupe

See Also

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