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

$ systemctl restart rsyslog.service

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-269307r1050189_rule, STIG-ID|ALMA-09-025760, Vuln-ID|V-269307

Plugin: Unix

Control ID: 8cb9dba4265ec6d475aa276615ab0f35bd888b8dd893a9536cd59eb843efdd66