SV-238345r654210_rule
V-238345
SRG-OS-000258-GPOS-00099
UBTU-20-010424
CAT II
10
Configure the system 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:
/bin
/sbin
/usr/bin
/usr/sbin
/usr/local/bin
/usr/local/sbin
Use the following command for the check:
$ 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-238345
False
UBTU-20-010424
Verify the system commands directories are owned by root:
/bin
/sbin
/usr/bin
/usr/sbin
/usr/local/bin
/usr/local/sbin
Use the following command for the check:
$ 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
5318