SV-261299r1184391_rule
V-261299
SRG-OS-000259-GPOS-00100
SLEM-05-232070
CAT II
10
Configure the system commands to be protected from unauthorized access. Run the following command:
> sudo transactional-update shell
> sudo find -L /bin /sbin /usr/bin /usr/sbin /bin /sbin /usr/bin /usr/sbin ! -user root -type f -exec chown root '{}' \;
> exit
> sudo reboot
Verify that the system commands are owned by root with the following command:
> 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-261299
False
SLEM-05-232070
Verify that the system commands are owned by root with the following command:
> 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
5596