DISA STIGS Viewer

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

Overview

Finding ID Version Rule ID IA Controls Severity
V-271844 OL09-00-003050 SV-271844r1092244_rule   Medium
Description
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.
STIG Date
Oracle Linux 9 Security Technical Implementation Guide 2025-05-08

Details

Check Text (C-75894r1092242_chk)
Verify that OL 9 assigned home directories of all interactive users on the system exist with the following command:

$ sudo pwck -r

The output should not return any interactive users.

If users home directory does not exist, this is a finding.
Fix Text (F-75801r1092243_fix)
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 wadea, who has a home directory of "/home/wadea", a user identifier (UID) of "wadea", and a Group Identifier (GID) of "users assigned" in "/etc/passwd".

$ sudo mkdir /home/wadea
$ sudo chown wadea /home/wadea
$ sudo chgrp users /home/wadea
$ sudo chmod 0750 /home/wadea