UCF STIG Viewer Logo

Users must have a valid home directory assignment.


Overview

Finding ID Version Rule ID IA Controls Severity
V-216186 SOL-11.1-070070 SV-216186r603268_rule Low
Description
All users must be assigned a home directory in the passwd file. Failure to have a home directory may result in the user being put in the root directory.
STIG Date
Solaris 11 X86 Security Technical Implementation Guide 2021-11-23

Details

Check Text ( C-17424r372940_chk )
The root role is required.

Determine if each user has a valid home directory.

# logins -xo | while read line; do
user=`echo ${line} | awk -F: '{ print $1 }'`
home=`echo ${line} | awk -F: '{ print $6 }'`
if [ -z "${home}" ]; then
echo ${user}
fi
done

If output is produced, this is a finding.
Fix Text (F-17422r372941_fix)
The root role is required.

Correct or justify any items discovered in the check step. Determine if there exists any users who are in passwd but do not have a home directory, and work with those users to determine the best course of action in accordance with site policy. This generally means deleting the user or creating a valid home directory.