SV-268552r1034596_rule
V-268552
SRG-OS-000205-GPOS-00083
APPL-15-004030
CAT II
10
Configure the macOS system with system log files owned by root and group to wheel with the following command:
/usr/sbin/chown root:wheel $(/usr/bin/stat -f '%Su:%Sg:%N' $(/usr/bin/grep -v '^#' /etc/newsyslog.conf | /usr/bin/awk '{ print $1 }') 2> /dev/null | /usr/bin/awk -F":" '!/^root:wheel:/{print $3}')
Verify the macOS system is configured with system log files owned by root and group to wheel with the following command:
/usr/bin/stat -f '%Su:%Sg:%N' $(/usr/bin/grep -v '^#' /etc/newsyslog.conf | /usr/bin/awk '{ print $1 }') 2> /dev/null | /usr/bin/awk '!/^root:wheel:/{print $1}' | /usr/bin/wc -l | /usr/bin/tr -d ' '
If the result is not "0", this is a finding.
V-268552
False
APPL-15-004030
Verify the macOS system is configured with system log files owned by root and group to wheel with the following command:
/usr/bin/stat -f '%Su:%Sg:%N' $(/usr/bin/grep -v '^#' /etc/newsyslog.conf | /usr/bin/awk '{ print $1 }') 2> /dev/null | /usr/bin/awk '!/^root:wheel:/{print $1}' | /usr/bin/wc -l | /usr/bin/tr -d ' '
If the result is not "0", this is a finding.
M
5661