Re: Cron 101: Cron message "/bin/sh: root: command not found"
Am Sonntag, 11. Mai 2014, 10:37:31 schrieb Ron Leach:
> List good morning,
Hi Ron,
> I do regret asking such a basic question about cron, but I cannot seem
> to get rid of what I think is a mis-configured entry, somewhere.
>
> We have a server running Lenny (still), its role is solely to provide
> a network file system. Every 17 mins past the hour, root is sending
> an email with this title:
>
> Cron <root@server4> root cd / && run-parts --report /etc/cron.hourly
>
> and content:
>
> /bin/sh: root: command not found
This means that a cron job tries to run the command "root" which does not
exist.
> In /etc/cron.d there are only files for anacron and mdadm; neither of
> these have entries for every 17 mins past the hour.
>
> In /etc/cron.hourly there is only an empty .placeholder file.
>
> I've tried commenting out relevant entries in /etc/crontab, but
> without effect. /etc/crontab contains:
>
> # was executing 'root' so commented out; still error messages
> # 17 * * * * cd / && run-parts --report /etc/cron.hourly
>
> and, as a last resort a couple of days ago:
>
> # disabled because of multiple error messages in email but no effect
> # 17 * * * * root cd / && run-parts --report /etc/cron.hourly
Look into
- /etc/cron.d
- crontab -l
It would not make much sense, but maybe someone added a call to
/etc/cron.hourly there.
Ciao,
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
Reply to: