Topic: Cron broken in new update
I was having a problem with getting a cron job to work on the Chumby after the update. I have two issues I have spotted on this. The first maybe specific to me, is that root's crontab "/psp/crontabs/root" suddenly owned by chumby:chumby
chumby:/psp/crontabs# ls -al /psp/crontabs/root -rw-r--r-- 1 chumby chumby 152 Nov 13 10:04 /psp/crontabs/root chumby:/psp/crontabs#
Crond rightfully doesn't like this, as a security measure, so doesn't run any of root's cron jobs. As I say this maybe specific to me. Chown'ing to root:root fixed for me.
The second issue is that the crontab program seems to have been compiled to look at the wrong place for cronjobs
chumby:/psp/crontabs# crontab -l crontab: can't open 'root': No such file or directory strace crontab -l munmap(0x4001f000, 4096) = 0 chdir("/var/spool/cron/crontabs") = 0 open("root", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or diretory)
It's looking in /var/spool/cron not where they are /etc/cron/crontabs which is symlinked to /psp/crontabs
The way round this is obviously to play at being crontab manually edit the file then touch /psp/crontabs/cron.update.
Anyone else see these two issues?