I'm trying to setup a crontab to execute at set intervals. The crontab job is setup as part of my PHP-Slim application running on Apache. For some reason, it just doesn't add the job to the crontab, so when I run the command:
crontab -u daemon -l
Managed to find the answer just after posting.
I looked in the log file for cron:
(daemon) AUTH (crontab command not allowed) error messages. Some further googling lead me to look at
/etc/cron/allow which doesn't exist, but
/etc/cron.deny does, and the daemon account was listed there. Problem solved.