Install the cron service
An XCCDF Rule
Description
The Cron service should be installed.Rationale
The cron service allow periodic job execution, needed for almost all administrative tasks and services (software update, log rotating, etc.). Access to cron service should be restricted to administrative accounts only.
- ID
- xccdf_org.ssgproject.content_rule_package_cron_installed
- Severity
- Medium
- References
- Updated
Remediation Templates
OS Build Blueprint
[[packages]]
name = "cronie"
version = "*"
script:bootc
dnf install cronie
Anaconda Pre-Install Instructions
package --add=cronie
A Shell Script
# Remediation is applicable only in certain platforms
if rpm --quiet -q kernel; then
if ! rpm -q --quiet "cronie" ; then
dnf install -y "cronie"
fi
A Puppet Snippet
include install_cronie
class install_cronie {
package { 'cronie':
ensure => 'installed',
}
}
An Ansible Snippet
- name: Gather the package facts
package_facts:
manager: auto
tags:
- CCE-86619-4
- NIST-800-53-CM-6(a)
script:kickstart
package install cronie