UCF STIG Viewer Logo

System log files must be owned by root:wheel.


Overview

Finding ID Version Rule ID IA Controls Severity
V-51381 OSX8-00-00815 SV-65591r1_rule Medium
Description
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.
STIG Date
Apple OS X 10.8 (Mountain Lion) Workstation STIG 2015-02-10

Details

Check Text ( C-53717r1_chk )
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 (F-56177r1_fix)
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.