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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b.

Plugin: Unix

Control ID: 9049eafd9ec90d877cb63e7620928bc7ab18d97b3b3f9e8bfad3a04e5d451990