Check: RHEL-09-411065
RHEL 9 STIG:
RHEL-09-411065
(in versions v1 r3 through v1 r1)
Title
All RHEL 9 local interactive user home directories defined in the /etc/passwd file must exist. (Cat II impact)
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 the assigned home directories of all interactive users on the system exist with the following command: $ sudo pwck -r user 'mailnull': directory 'var/spool/mqueue' does not exist The output should not return any interactive users. If users home directory does not exist, 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 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
Additional Identifiers
Rule ID: SV-258052r926143_rule
Vulnerability ID: V-258052
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 |