SV-261309r996398_rule
V-261309
SRG-OS-000205-GPOS-00083
SLEM-05-232120
CAT II
10
Configure SLEM 5 to set permissions of all log files under /var/log directory to "640" or more restricted, by using the following command:
Note: The btmp, wtmp, and lastlog files are excluded. Refer to the Vulnerability Discussion for details.
> sudo find /var/log -perm /137 ! -name '*[bw]tmp' ! -name '*lastlog' -type f -exec chmod 640 '{}' \;
Verify SLEM 5 has all system log files under the /var/log directory with a permission set to "640", by using the following command:
Note: The btmp, wtmp, and lastlog files are excluded. Refer to the Vulnerability Discussion for details.
> sudo find /var/log -perm /137 ! -name '*[bw]tmp' ! -name '*lastlog' -type f -exec stat -c "%n %a" {} \;
If command displays any output, this is a finding.
V-261309
False
SLEM-05-232120
Verify SLEM 5 has all system log files under the /var/log directory with a permission set to "640", by using the following command:
Note: The btmp, wtmp, and lastlog files are excluded. Refer to the Vulnerability Discussion for details.
> sudo find /var/log -perm /137 ! -name '*[bw]tmp' ! -name '*lastlog' -type f -exec stat -c "%n %a" {} \;
If command displays any output, this is a finding.
M
5596