Skip to content

RHEL 9 must use cron logging.

An XCCDF Rule

Description

Cron logging can be used to trace the successful or unsuccessful execution of cron jobs. It can also be used to spot intrusions into the use of the cron facility by unauthorized and malicious users.

ID
SV-258150r1045296_rule
Version
RHEL-09-652060
Severity
Medium
References
Updated

Remediation Templates

A Manual Procedure

Configure "rsyslog" to log all cron messages by adding or updating the following line to "/etc/rsyslog.conf" or a configuration file in the /etc/rsyslog.d/ directory:

cron.* /var/log/cron

The rsyslog daemon must be restarted for the changes to take effect:

$ sudo systemctl restart rsyslog.service