Skip to content

AlmaLinux OS 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-269307r1050189_rule
Version
ALMA-09-025760
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:

$ systemctl restart rsyslog.service