Information
Users can be defined in /etc/passwd without a home directory or with a home directory that does not actually exist.
Rationale:
If the user's home directory does not exist or is unassigned, the user will be placed in '/' and will not be able to write any files or have local environment variables set.
Solution
If any users' home directories do not exist, create them and make sure the respective user owns the directory. Users without an assigned home directory should be removed or assigned a home directory as appropriate.
Notes:
The audit script checks all users with interactive shells except halt, sync, shutdown, and nfsnobody.
This Benchmark recommendation maps to:
Red Hat Enterprise Linux 7 Security Technical Implementation Guide:
Version 2, Release: 3 Benchmark Date: 26 Apr 2019
Vul ID: V-72011
Rule ID: SV-86635r2_rule
STIG ID: RHEL-07-020600
Severity: CAT II
Vul ID: V-72015
Rule ID: SV-86639r2_rule
STIG ID: RHEL-07-020620
Severity: CAT II
Vul ID: V-72019
Rule ID: SV-86643r5_rule
STIG ID: RHEL-07-020640
Severity: CAT II
Vul ID: V-72059
Rule ID: SV-86683r2_rule
STIG ID: RHEL-07-021310
Severity: CAT III