System log files must be owned by root:wheel.

From Apple OS X 10.8 (Mountain Lion) Workstation STIG

Part of SRG-OS-000206

Associated with: CCI-001314

SV-65591r1_rule System log files must be owned by root:wheel.

Vulnerability discussion

If the operating system provides too much information in error logs and administrative messages to the screen it could lead to compromise. The structure and content of error messages need to be carefully considered by the organization.

Check content

This command checks for log files that exist on the system and prints out the log with corresponding ownership.. stat -f "%Su:%Sg:%N" `grep -v "^#" /etc/newsyslog.conf | awk '{ print $1 }'` 2> /dev/null If there are any log files that are not owned by root and group-owned by wheel or admin, this is a finding.

Fix text

For any log file that returns an incorrect permission value, run the following command: chown root:wheel [log file] where [log file] is the full path to the log file in question.

Pro Tips

Lavender hyperlinks in small type off to the right (of CSS class id, if you view the page source) point to globally unique URIs for each document and item. Copy the link location and paste anywhere you need to talk unambiguously about these things.

You can obtain data about documents and items in other formats. Simply provide an HTTP header Accept: text/turtle or Accept: application/rdf+xml.

Powered by sagemincer