SV-216425r603267_rule
V-216425
SRG-OS-000480
SOL-11.1-070090
CAT II
10
The root role is required.
Correct the owner of any directory that does not match the password file entry for that user.
# chown [user] [home directory]
The root role is required.
Check that home directories are owned by the correct user.
# export IFS=":"; logins -uxo | while read user uid group gid gecos home rest; do result=$(find ${home} -type d -prune \! -user $user -print 2>/dev/null);
if [ ! -z "${result}" ]; then
echo "User: ${user}\tOwner: $(ls -ld $home | awk '{ print $3 }')";
fi;
done
If any output is produced, this is a finding.
V-216425
False
SOL-11.1-070090
The root role is required.
Check that home directories are owned by the correct user.
# export IFS=":"; logins -uxo | while read user uid group gid gecos home rest; do result=$(find ${home} -type d -prune \! -user $user -print 2>/dev/null);
if [ ! -z "${result}" ]; then
echo "User: ${user}\tOwner: $(ls -ld $home | awk '{ print $3 }')";
fi;
done
If any output is produced, this is a finding.
M
4022