SV-274165r1137695_rule
V-274165
SRG-OS-000138-GPOS-00069
AZLX-23-002505
CAT II
10
Configure Amazon Linux 2023 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 following command:
$ sudo find / -xdev -type d -perm -0002 ! -user root ! -uid +999 -exec chown root:root {} +
Verify Amazon Linux 2023 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 ! -user root ! -uid +999 -exec ls -ld {} +
If there is output, this is a finding.
V-274165
False
AZLX-23-002505
Verify Amazon Linux 2023 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 ! -user root ! -uid +999 -exec ls -ld {} +
If there is output, this is a finding.
M
5700