SV-270702r1066595_rule
V-270702
SRG-OS-000259-GPOS-00100
UBTU-24-300012
CAT II
10
Configure the system commands and their respective parent directories to be protected from unauthorized access. Run the following command, replacing "[FILE]" with any system command file not owned by "root" or a required system account:
$ sudo chown root [FILE]
Verify the system commands contained in the following directories are owned by root, or a required system account, with 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 not owned by a required system account, this is a finding.
V-270702
False
UBTU-24-300012
Verify the system commands contained in the following directories are owned by root, or a required system account, with 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 not owned by a required system account, this is a finding.
M
5673