SV-261352r1184415_rule
V-261352
SRG-OS-000480-GPOS-00227
SLEM-05-411030
CAT II
10
Create home directories to all SLEM 5 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 dosuser, who has a home directory of "/home/dosuser", a UID of "dosuser", and a Group Identifier (GID) of "users assigned" in "/etc/passwd".
> sudo mkdir /home/dosuser
> sudo chown dosuser /home/dosuser
> sudo chgrp users /home/dosuser
> sudo chmod 0750 /home/dosuser
Verify the assigned home directory of all SLEM 5 local interactive users on the system exists.
Check the home directory assignment for all local interactive nonprivileged users on the system with the following command:
> awk -F: '($3>=1000)&&($7 !~ /nologin/){print $1, $6}' /etc/passwd
dosuser /home/dosuser
Note: This may miss interactive users that have been assigned a privileged User Identifier (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 'dosuser': directory '/home/dosuser' does not exist
If any home directories referenced in "/etc/passwd" are returned as not defined, this is a finding.
V-261352
False
SLEM-05-411030
Verify the assigned home directory of all SLEM 5 local interactive users on the system exists.
Check the home directory assignment for all local interactive nonprivileged users on the system with the following command:
> awk -F: '($3>=1000)&&($7 !~ /nologin/){print $1, $6}' /etc/passwd
dosuser /home/dosuser
Note: This may miss interactive users that have been assigned a privileged User Identifier (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 'dosuser': directory '/home/dosuser' does not exist
If any home directories referenced in "/etc/passwd" are returned as not defined, this is a finding.
M
5596