SV-239089r675075_rule
V-239089
SRG-OS-000059-GPOS-00029
PHTN-67-000017
CAT II
10
At the command line, execute the following command:
# chown root:root <audit log file>
Replace <audit log file> with the log files not group owned by root.
At the command line, execute the following command:
# (audit_log_file=$(grep "^log_file" /etc/audit/auditd.conf|sed s/^[^\/]*//) && if [ -f "${audit_log_file}" ] ; then printf "Log(s) found in "${audit_log_file%/*}":\n"; stat -c "%n is group owned by %G" ${audit_log_file%}*; else printf "audit log file(s) not found\n"; fi)
If any audit log file is not group-owned by root, this is a finding.
V-239089
False
PHTN-67-000017
At the command line, execute the following command:
# (audit_log_file=$(grep "^log_file" /etc/audit/auditd.conf|sed s/^[^\/]*//) && if [ -f "${audit_log_file}" ] ; then printf "Log(s) found in "${audit_log_file%/*}":\n"; stat -c "%n is group owned by %G" ${audit_log_file%}*; else printf "audit log file(s) not found\n"; fi)
If any audit log file is not group-owned by root, this is a finding.
M
5323