SV-260493r991559_rule
V-260493
SRG-OS-000258-GPOS-00099
UBTU-22-232040
CAT II
10
Configure Ubuntu 22.04 LTS commands directories to be protected from unauthorized access. Run the following command:
$ sudo find /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin ! -user root -type d -exec chown root '{}' \;
Verify the system commands directories are owned by "root" by using the following command:
$ sudo find /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin ! -user root -type d -exec stat -c "%n %U" '{}' \;
If any system commands directories are returned, this is a finding.
V-260493
False
UBTU-22-232040
Verify the system commands directories are owned by "root" by using the following command:
$ sudo find /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin ! -user root -type d -exec stat -c "%n %U" '{}' \;
If any system commands directories are returned, this is a finding.
M
5594