SV-271785r1155290_rule
V-271785
SRG-OS-000138-GPOS-00069
OL09-00-002516
CAT II
10
Configure all OL 9 public directories to be owned by root or a system account to prevent unauthorized and unintended information transferred via shared system resources.
Use the following command template to set ownership of public directories to root or a system account:
$ sudo chown [root or system account] [Public Directory]
Verify OL 9 world writable directories are owned by root, a system account, or an application account with the following command:
$ sudo find / -xdev -type d -perm -0002 -uid +999 -exec stat -c "%U, %u, %A, %n" {} \; 2>/dev/null
If there is output that indicates world-writable directories are owned by any account other than root or an approved system account, this is a finding.
V-271785
False
OL09-00-002516
Verify OL 9 world writable directories are owned by root, a system account, or an application account with the following command:
$ sudo find / -xdev -type d -perm -0002 -uid +999 -exec stat -c "%U, %u, %A, %n" {} \; 2>/dev/null
If there is output that indicates world-writable directories are owned by any account other than root or an approved system account, this is a finding.
M
5680