RHEL-09-652060 - RHEL 9 must use cron logging.

Information

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.

Solution

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

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_9_V2R2_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-258150r991589_rule, STIG-ID|RHEL-09-652060, Vuln-ID|V-258150

Plugin: Unix

Control ID: 5922226314fa79c68f3a567551543d22151e2b42d1b85f65ecece378cef08b2c