[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cron 101: Cron message "/bin/sh: root: command not found"



On Du, 11 mai 14, 10:37:31, Ron Leach wrote:
> 
> I checked /etc/anacrontab in case it could be involved, it seems not to
> contain any cron.hourly entries, nor entries at the relevant time:
> 
> SHELL=/bin/sh
> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> 
> # These replace cron's entries
> 1       5       cron.daily       nice run-parts --report /etc/cron.daily
> 7       10      cron.weekly      nice run-parts --report /etc/cron.weekly
> @monthly        15      cron.monthly nice run-parts --report
> /etc/cron.monthly

To make things simpler I would purge anacron, especially if this is a 
server that is (mostly) on.

> I'm missing some aspect of cron configuration, or perhaps some other 
> cron
> file somewhere.  root doesn't have a /home directory, so there isn't a
> crontab in it, and the only user existing on the system doesn't have a
> crontab in its home directory, either.

crontabs are *not* stored in home, but in /var/spool/cron/crontabs/

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt

Attachment: signature.asc
Description: Digital signature


Reply to: