SV-261351r1184412_rule
V-261351
SRG-OS-000480-GPOS-00227
SLEM-05-411025
CAT II
10
Assign home directories to all SLEM 5 local interactive users that currently do not have a home directory assigned.
Assign a home directory to users via the usermod command:
> sudo usermod -d /home/dosuser dosuser
Verify SLEM 5 local interactive users on the system have a home directory assigned with the following command:
> sudo pwck -r
user 'dosuser': directory '/home/dosuser' does not exist
Ask the system administrator (SA) if any users found without home directories are local interactive users. If the SA is unable to provide a response, check for users with a User Identifier (UID) of 1000 or greater with the following command:
> awk -F: '($3>=1000)&&($1!="nobody"){print $1 ":" $3}' /etc/passwd
If any interactive users do not have a home directory assigned, this is a finding.
V-261351
False
SLEM-05-411025
Verify SLEM 5 local interactive users on the system have a home directory assigned with the following command:
> sudo pwck -r
user 'dosuser': directory '/home/dosuser' does not exist
Ask the system administrator (SA) if any users found without home directories are local interactive users. If the SA is unable to provide a response, check for users with a User Identifier (UID) of 1000 or greater with the following command:
> awk -F: '($3>=1000)&&($1!="nobody"){print $1 ":" $3}' /etc/passwd
If any interactive users do not have a home directory assigned, this is a finding.
M
5596