SV-281177r1184748_rule
V-281177
SRG-OS-000420-GPOS-00186
RHEL-10-600180
CAT II
10
Configure RHEL 10 interactive users to have a home directory assigned in the "/etc/passwd" file.
Create and assign home directories to all local interactive users on RHEL 10 that do not have a home directory assigned.
Verify RHEL 10 interactive users have a home directory assigned with the following command:
$ sudo awk -F: '($3>=1000)&&($7 !~ /nologin/){print $1, $3, $6}' /etc/passwd
nsauser:x:1000:1000:nsauser:/home/nsauser:/bin/bash
disauser:x:1001:1001:disauser:/home/disauser:/bin/bash
doduser:x:1002:1002:doduser:/home/doduser:/bin/bash
Inspect the output and verify that all interactive users (normally users with a user identifier [UID] greater than 1000) have a home directory defined.
If a user's home directory is not defined, this is a finding.
V-281177
False
RHEL-10-600180
Verify RHEL 10 interactive users have a home directory assigned with the following command:
$ sudo awk -F: '($3>=1000)&&($7 !~ /nologin/){print $1, $3, $6}' /etc/passwd
nsauser:x:1000:1000:nsauser:/home/nsauser:/bin/bash
disauser:x:1001:1001:disauser:/home/disauser:/bin/bash
doduser:x:1002:1002:doduser:/home/doduser:/bin/bash
Inspect the output and verify that all interactive users (normally users with a user identifier [UID] greater than 1000) have a home directory defined.
If a user's home directory is not defined, this is a finding.
M
5733