5.1.8 Ensure cron is restricted to authorized users
Audit#
Run the following command and verify that /etc/cron.deny does not exist:
Run the following command and verify Uid and Gid are both 0/root and Access, does not grant write or execute to group, and does not grant permissions to other for/etc/cron.allow:
Remediation#
Run the following commands to remove /etc/cron.deny:
Run the following command to create /etc/cron.allow
Run the following commands to set permissions and ownership for /etc/cron.allow: