SV-100381r1_rule
V-89731
SRG-OS-000206-GPOS-00084
VRAU-SL-000845
CAT II
10
Change the permissions of the file /var/log/messages to "0640" by running the following command:
# chmod 0640 /var/log/messages
Verify that the /var/log/messages file has mode 0640 or less by running the following command:
# ls -lad /var/log/messages | cut -d' ' -f1
The output must look like the following example:
ls -lad /var/log/messages | cut -d' ' -f1
-rw-r-----
If "-rw-r-----" is not returned as a result, this is a finding.
V-89731
False
VRAU-SL-000845
Verify that the /var/log/messages file has mode 0640 or less by running the following command:
# ls -lad /var/log/messages | cut -d' ' -f1
The output must look like the following example:
ls -lad /var/log/messages | cut -d' ' -f1
-rw-r-----
If "-rw-r-----" is not returned as a result, this is a finding.
M
3459