Check: RHEL-09-411060
RHEL 9 STIG:
RHEL-09-411060
(in versions v1 r3 through v1 r1)
Title
All RHEL 9 local interactive users must have a home directory assigned in the /etc/passwd file. (Cat II impact)
Discussion
If local interactive users are not assigned a valid home directory, there is no place for the storage and control of files they should own.
Check Content
Verify that interactive users on the system have a home directory assigned with the following command: $ sudo awk -F: '($3>=1000)&&($7 !~ /nologin/){print $1, $3, $6}' /etc/passwd smithk:x:1000:1000:smithk:/home/smithk:/bin/bash scsaustin:x:1001:1001:scsaustin:/home/scsaustin:/bin/bash djohnson:x:1002:1002:djohnson:/home/djohnson:/bin/bash Inspect the output and verify that all interactive users (normally users with a user identifier (UID) greater that 1000) have a home directory defined. If users home directory is not defined, this is a finding.
Fix Text
Create and assign home directories to all local interactive users on RHEL 9 that currently do not have a home directory assigned.
Additional Identifiers
Rule ID: SV-258051r926140_rule
Vulnerability ID: V-258051
Group Title: SRG-OS-000480-GPOS-00227
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000366 |
The organization implements the security configuration settings. |
Controls
Number | Title |
---|---|
CM-6 |
Configuration Settings |