SV-252970r991592_rule
V-252970
SRG-OS-000480-GPOS-00230
TOSS-04-020310
CAT II
10
Change the owner of interactive user's home directories to root.
To change the owner of a local interactive user's home directory, use the following command:
Note: The example will be for the user "smithj."
$ sudo chown root /home/smithj
Check that all user home directories are owned by the root user with the following command:
$ find $(awk -F: '($3>=1000)&&($7 !~ /nologin/){print $6}' /etc/passwd) -maxdepth 0 -not -user root -ls
If there is any output, this is a finding.
V-252970
False
TOSS-04-020310
Check that all user home directories are owned by the root user with the following command:
$ find $(awk -F: '($3>=1000)&&($7 !~ /nologin/){print $6}' /etc/passwd) -maxdepth 0 -not -user root -ls
If there is any output, this is a finding.
M
5469