SV-275583r1147799_rule
V-275583
SRG-OS-000205-GPOS-00083
RIIM-OS-232026
CAT II
10
Configure Ubuntu OS to set permissions of all log files under the "/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 Vul Discussion for details.
$ sudo find /var/log -perm /137 ! -name '*[bw]tmp' ! -name '*lastlog' -type f -exec chmod 640 '{}' \;
Verify Ubuntu OS has all system log files under the "/var/log" directory with a permission set to "640" or less permissive by using the following command:
Note: The btmp, wtmp, and lastlog files are excluded. Refer to the Vul Discussion for details.
$ sudo find /var/log -perm /137 ! -name '*[bw]tmp' ! -name '*lastlog' -type f -exec stat -c "%n %a" {} \;
If the command displays any output, this is a finding.
V-275583
False
RIIM-OS-232026
Verify Ubuntu OS has all system log files under the "/var/log" directory with a permission set to "640" or less permissive by using the following command:
Note: The btmp, wtmp, and lastlog files are excluded. Refer to the Vul Discussion for details.
$ sudo find /var/log -perm /137 ! -name '*[bw]tmp' ! -name '*lastlog' -type f -exec stat -c "%n %a" {} \;
If the command displays any output, this is a finding.
M
5706