On Wed, Nov 25, 2015 at 10:29:52PM -0500, waltd...@waltdnes.org wrote: > I'm getting a bunch of messages like... > > > Subject: cron for user root root [ ! -x /etc/cron.hourly/0anacron ] > > && { test -x /usr/sbin/run-crons && /usr/sbin/run-crons ; } > > > > /bin/sh: root: command not found > > /bin/sh does exist... > > [d531][waltdnes][~] ll /bin/sh > lrwxrwxrwx 1 root root 4 Nov 24 12:10 /bin/sh -> bash > > /etc/ cron.hourly cron.weekly cron.monthly are empty except for a > dummy file .keep_sys-process_cronbase-0 >
What /bin/sh actually means is "root: command not found". This is caused by the difference between the system-wide crontab and the per-user crontab. The system-wide crontab /etc/crontab needs to know as which user to execute the command so it has a column for the username right before the command. The per-user crontabs which are at /var/spool/cron/crontabs (but which should be edited with crontab -e) know as which user to run the commands so they treat everything after the time as the command. You got the two mixed up. Run crontab -e as the root user and remove the word 'root' part right before the command. Should fix things right away.