SV-230242r627750_rule
V-230242
SRG-OS-000138-GPOS-00069
RHEL-08-010180
CAT II
10
Configure all public directories to be owned by root or a system account to prevent unauthorized and unintended information transferred via shared system resources.
Set the owner of all public directories as root or a system account using the command, replace "[Public Directory]" with any directory path not owned by root or a system account:
$ sudo chown root [Public Directory]
Check to see that all public directories are owned by root or a system account with the following command:
$ sudo find / -type d -perm -0002 -exec ls -lLd {} \;
drwxrwxrwxt 7 root root 4096 Jul 26 11:19 /tmp
If any of the returned directories are not owned by root or a system account, this is a finding.
V-230242
False
RHEL-08-010180
Check to see that all public directories are owned by root or a system account with the following command:
$ sudo find / -type d -perm -0002 -exec ls -lLd {} \;
drwxrwxrwxt 7 root root 4096 Jul 26 11:19 /tmp
If any of the returned directories are not owned by root or a system account, this is a finding.
M
2921