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/17331

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b.

Plugin: Unix

Control ID: 24a01fa44549719e12cdff7eab0f2d66ba8fba58cee12e29eb28fc26950ba694