Rule ID
SV-45596r1_rule
Version
V1R12
CCIs
To protect the integrity of scheduled system jobs and prevent malicious modification to these jobs, crontab files must be secured.
Check the group ownership of the crontab files.
Procedure:
# ls -lL /var/spool/cron /var/spool/cron/tabs
# ls -lL /etc/crontab /etc/cron.{d,daily,hourly,monthly,weekly}
or
# ls -lL /etc/cron*|grep -v deny
If the group owner is not root or the crontab owner's primary group, this is a finding.Change the group owner of the crontab file to root, cron, or the crontab's primary group. Procedure: # chgrp root [crontab file]