SV-100379r1_rule
V-89729
SRG-OS-000206-GPOS-00084
VRAU-SL-000840
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-89729
False
VRAU-SL-000840
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
3459