SV-99259r1_rule
V-88609
SRG-OS-000206-GPOS-00084
VROM-SL-000815
CAT II
10
Change the owner of the file "/var/log/messages" to "root" by running the following command:
# chown root /var/log/messages
Verify that the "/var/log/messages" file is owned by "root" by running the following command:
# ls -la /var/log/messages | cut -d' ' -f3
The output must look like the following example:
ls -la /var/log/messages | cut -d' ' -f3
root
If "root" is not returned as a result, this is a finding.
V-88609
False
VROM-SL-000815
Verify that the "/var/log/messages" file is owned by "root" by running the following command:
# ls -la /var/log/messages | cut -d' ' -f3
The output must look like the following example:
ls -la /var/log/messages | cut -d' ' -f3
root
If "root" is not returned as a result, this is a finding.
M
3461