SV-253086r991560_rule
V-253086
SRG-OS-000259-GPOS-00100
TOSS-04-040340
CAT II
10
Configure the system commands to be protected from unauthorized access.
Run the following command, replacing "[FILE]" with any system command file not owned by "root."
$ sudo chown root [FILE]
Configure the system-wide shared library files (/lib, /lib64, /usr/lib and /usr/lib64) to be protected from unauthorized access.
Run the following command, replacing "[FILE]" with any library file not owned by "root."
$ sudo chown root [FILE]
Verify the system commands contained in the following directories are owned by "root" or an appropriate system account with the following command:
$ sudo find -L /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin ! -user root -exec ls -l {} \;
If any system commands are returned which are not owned by an appropriate system account, this is a finding.
Verify the system-wide shared library files are owned by "root" or an appropriate system account with the following command:
$ sudo find -L /lib /lib64 /usr/lib /usr/lib64 ! -user root -exec ls -l {} \;
If any system wide shared library file is returned which is not owned by an appropriate system account, this is a finding.
V-253086
False
TOSS-04-040340
Verify the system commands contained in the following directories are owned by "root" or an appropriate system account with the following command:
$ sudo find -L /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin ! -user root -exec ls -l {} \;
If any system commands are returned which are not owned by an appropriate system account, this is a finding.
Verify the system-wide shared library files are owned by "root" or an appropriate system account with the following command:
$ sudo find -L /lib /lib64 /usr/lib /usr/lib64 ! -user root -exec ls -l {} \;
If any system wide shared library file is returned which is not owned by an appropriate system account, this is a finding.
M
5469