UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

All rsyslog-generated log files must be owned by root.


Overview

Finding ID Version Rule ID IA Controls Severity
RHEL-06-000133 RHEL-06-000133 RHEL-06-000133_rule Medium
Description
The log files generated by rsyslog contain valuable information regarding system configuration, user authentication, and other such information. Log files should be protected from unauthorized access.
STIG Date
Red Hat Enterprise Linux 6 Security Technical Implementation Guide 2013-02-05

Details

Check Text ( C-RHEL-06-000133_chk )
To see the owner of a given log file, run the following command:

$ ls -l [LOGFILE]


If the owner is not root, this is a finding.
Fix Text (F-RHEL-06-000133_fix)
The owner of all log files written by "rsyslog" should be root. These log files are determined by the second part of each Rule line in "/etc/rsyslog.conf" typically all appear in "/var/log". For each log file [LOGFILE] referenced in "/etc/rsyslog.conf", run the following command to inspect the file's owner:

$ ls -l [LOGFILE]

If the owner is not "root", run the following command to correct this:

# chown root [LOGFILE]