1.135 APPL-14-004030

Information

The macOS system must configure system log files to be owned by root and group to wheel.

GROUP ID: V-259556RULE ID: SV-259556r958564

The system log files must be owned by root.

System logs contain sensitive data about the system and users. If log files are set to only be readable and writable by system administrators, the risk is mitigated.

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://workbench.cisecurity.org/benchmarks/24070

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-259556r958564_rule, STIG-ID|APPL-14-004030, Vuln-ID|V-259556

Plugin: Unix

Control ID: 3af23ca60be08503f449fe242736b777c5dcee87ea0d863525922a1c29ef89c4