SV-275587r1147811_rule
V-275587
SRG-OS-000258-GPOS-00099
RIIM-OS-232040
CAT II
10
Configure Ubuntu OS commands directories to be protected from unauthorized access. Run the following command:
$ sudo find /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin ! -user root -type d -exec chown root '{}' \;
Verify the system commands directories are owned by "root" by using the following command:
$ sudo find /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin ! -user root -type d -exec stat -c "%n %U" '{}' \;
If any system commands directories are returned, this is a finding.
V-275587
False
RIIM-OS-232040
Verify the system commands directories are owned by "root" by using the following command:
$ sudo find /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin ! -user root -type d -exec stat -c "%n %U" '{}' \;
If any system commands directories are returned, this is a finding.
M
5706