2.4.1.1 Ensure cron daemon is enabled and active

Information

The cron daemon is used to execute batch jobs on the system.

While there may not be user jobs that need to be run on the system, the system does have maintenance jobs that may include security monitoring that have to run, and cron is used to execute them.

Solution

- IF - cron is installed on the system:

Run the following commands to unmask, enable, and start cron :

# systemctl unmask "$(systemctl list-unit-files | awk '$1~/^crond?.service/{print $1}')"
# systemctl --now enable "$(systemctl list-unit-files | awk '$1~/^crond?.service/{print $1}')"

See Also

https://workbench.cisecurity.org/benchmarks/17074

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b.

Plugin: Unix

Control ID: 9e0937ea20f314c5ad22c626b05cc1be0ce4bb41484b90de902ea65de0e96115