SV-238350r654225_rule
V-238350
SRG-OS-000259-GPOS-00100
UBTU-20-010429
CAT II
10
Configure the library files and their respective parent directories to be protected from unauthorized access. Run the following command:
$ sudo find /lib /usr/lib /lib64 ! -user root -type d -exec chown root '{}' \;
Verify the system-wide shared library directories "/lib", "/lib64", and "/usr/lib" are owned by root with the following command:
$ sudo find /lib /usr/lib /lib64 ! -user root -type d -exec stat -c "%n %U" '{}' \;
If any system-wide library directory is returned, this is a finding.
V-238350
False
UBTU-20-010429
Verify the system-wide shared library directories "/lib", "/lib64", and "/usr/lib" are owned by root with the following command:
$ sudo find /lib /usr/lib /lib64 ! -user root -type d -exec stat -c "%n %U" '{}' \;
If any system-wide library directory is returned, this is a finding.
M
5318