SV-282669r1200987_rule
V-282669
SRG-OS-000480-GPOS-00227
TOSS-05-000185
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]
Verify world writable directories are owned by root, a system account, or an application account. The following command will discover and print world-writable directories that are not owned by root. Run it once for each local partition [PART]:
$ sudo find PART -xdev -type d -perm -0002 -uid +0 -print
If there is output, this is a finding.
V-282669
False
TOSS-05-000185
Verify world writable directories are owned by root, a system account, or an application account. The following command will discover and print world-writable directories that are not owned by root. Run it once for each local partition [PART]:
$ sudo find PART -xdev -type d -perm -0002 -uid +0 -print
If there is output, this is a finding.
M
5738