SV-261288r1184380_rule
V-261288
SRG-OS-000259-GPOS-00100
SLEM-05-232015
CAT II
10
Configure the system commands to be protected from unauthorized access.
If the command requiring a permissions change resides in /usr/local/bin or /usr/local/sbin run the following command:
> sudo find -L /usr/local/bin /usr/local/sbin -perm /022 -type f -exec chmod 755 '{}' \;
If the command requiring a permissions change resides in /bin, /sbin, /usr/bin, /or usr/sbin run the following commands:
> sudo transactional-update shell
> sudo find -L /bin /sbin /usr/bin /usr/sbin -perm /022 -type f -exec chmod 755 '{}' \;
> exit
> sudo reboot
Verify that the system commands have mode "755" or less permissive with the following command:
> find -L /usr/local/bin /usr/local/sbin -perm /022 -type f -exec stat -c "%n %a" '{}' \;
If any files are found to be group-writable or world-writable, this is a finding.
V-261288
False
SLEM-05-232015
Verify that the system commands have mode "755" or less permissive with the following command:
> find -L /usr/local/bin /usr/local/sbin -perm /022 -type f -exec stat -c "%n %a" '{}' \;
If any files are found to be group-writable or world-writable, this is a finding.
M
5596