SV-260497r991560_rule
V-260497
SRG-OS-000259-GPOS-00100
UBTU-22-232060
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 systemwide shared library directories "/lib", "/lib64", and "/usr/lib" are owned by "root" by using the following command:
$ sudo find /lib /usr/lib /lib64 ! -user root -type d -exec stat -c "%n %U" '{}' \;
If any systemwide library directory is returned, this is a finding.
V-260497
False
UBTU-22-232060
Verify the systemwide shared library directories "/lib", "/lib64", and "/usr/lib" are owned by "root" by using the following command:
$ sudo find /lib /usr/lib /lib64 ! -user root -type d -exec stat -c "%n %U" '{}' \;
If any systemwide library directory is returned, this is a finding.
M
5594