SV-275589r1147817_rule
V-275589
SRG-OS-000259-GPOS-00100
RIIM-OS-232050
CAT II
10
Configure Ubuntu OS commands and their respective parent directories to be protected from unauthorized access. Run the following command, replacing "<command_name>" with any system command not owned by "root" or a required system account:
$ sudo chown root <command_name>
Verify the system commands contained in the following directories are owned by "root", or a required system account, by using the following command:
$ sudo find /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 and are not owned by a required system account, this is a finding.
V-275589
False
RIIM-OS-232050
Verify the system commands contained in the following directories are owned by "root", or a required system account, by using the following command:
$ sudo find /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 and are not owned by a required system account, this is a finding.
M
5706