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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b.

Plugin: Unix

Control ID: c86025b8702c0ed29134f060889eab9217967d52eeb03637fe57543a75cfa36c