Ensure Log Files Are Owned By Appropriate User
An XCCDF Rule
Description
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
and 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 LOGFILEIf the owner is not
root
,
run the following command to
correct this:
$ sudo chown root LOGFILE
Rationale
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.
- ID
- xccdf_org.ssgproject.content_rule_rsyslog_files_ownership
- Severity
- Medium
- References
- Updated