STIGhubSTIGhub
STIGsRMF ControlsCompare
STIGhub— A free STIG search and compliance tool·STIGs updated 3 days ago
Powered by Pylon·Privacy·Terms·© 2026 Beacon Cloud Solutions, Inc.
← Back to Oracle Linux 8 Security Technical Implementation Guide

V-248643

CAT II (Medium)

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

Rule ID

SV-248643r991589_rule

STIG

Oracle Linux 8 Security Technical Implementation Guide

Version

V2R8

CCIs

CCI-000366

Discussion

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.

Check Content

Verify that the assigned home directory of all local interactive users on OL 8 exists with the following command: 
 
$ sudo ls -ld $(awk -F: '($3>=1000)&&($1!="nobody"){print $6}' /etc/passwd) 
 
drwxr-xr-x 2 smithj admin 4096 Jun 5 12:41 smithj 
 
Note: This may miss interactive users that have been assigned a privileged User ID (UID). Evidence of interactive use may be obtained from a number of log files containing system logon information. 
 
Check that all referenced home directories exist with the following command: 
 
$ sudo pwck -r 
 
user 'smithj': directory '/home/smithj' does not exist 
 
If any home directories referenced in "/etc/passwd" are returned as not defined, this is a finding.

Fix Text

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 smithj, who has a home directory of "/home/smithj", a UID of "smithj", and a Group Identifier (GID) of "users assigned" in "/etc/passwd". 
 
$ sudo mkdir /home/smithj 
$ sudo chown smithj /home/smithj 
$ sudo chgrp users /home/smithj 
$ sudo chmod 0750 /home/smithj