SV-219206r610963_rule
V-219206
SRG-OS-000259-GPOS-00100
UBTU-18-010141
CAT II
10
Configure the system commands - and their respective parent directories - to be protected from unauthorized access. Run the following command:
# sudo find -L /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin ! -user root -type f -exec chown root '{}' \;
Verify the system commands contained in the following 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 -L /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin ! -user root -type f -exec stat -c "%n %U" '{}' \;
If any system commands are returned, this is a finding.
V-219206
False
UBTU-18-010141
Verify the system commands contained in the following 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 -L /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin ! -user root -type f -exec stat -c "%n %U" '{}' \;
If any system commands are returned, this is a finding.
M
4055