SV-234832r958564_rule
V-234832
SRG-OS-000205-GPOS-00083
SLES-15-010340
CAT II
10
Configure the SUSE operating system 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 Discussion for details.
> sudo find /var/log -perm /137 ! -name '*[bw]tmp' ! -name '*lastlog' -type f -exec chmod 640 '{}' \;
Verify the SUSE operating system 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 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-234832
False
SLES-15-010340
Verify the SUSE operating system 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 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
5274