APPL-15-004030 - The macOS system must configure system log files owned by root and group to wheel.

Information

The system log files must be owned by root.

System logs contain sensitive data about the system and users. Setting log files to be readable and writable only by system administrators mitigates the risk.

Satisfies: SRG-OS-000205-GPOS-00083, SRG-OS-000206-GPOS-00084

Solution

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}')

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apple_macOS_15_V1R1_STIG.zip

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-11a., 800-53|SI-11b., CAT|II, CCI|CCI-001312, CCI|CCI-001314, Rule-ID|SV-268552r1034596_rule, STIG-ID|APPL-15-004030, Vuln-ID|V-268552

Plugin: Unix

Control ID: 4766d77ed77ac17c4f0d629dfce2c0d697962537fb4bc80e5cdad34637cb556a