[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RH 4.2 cron.daily question
If I remember correctly you should add "cd /tmp" in the begining of
/etc/cron.daily/updatedb.cron. Something to do with sueing to "nobody"
in a directory where "nobody" has no permission for.
Gilad.
Alexander Indenbaum wrote:
>
> I have a couple of plain vanilla RH 4.2 systems
> Once a day I get following message:
>
> Subject: Cron <root@wizard> /usr/bin/run-parts /etc/cron.daily
>
> shell-init: could not get current directory: getwd: cannot access parent directories
> job-working-directory: could not get current directory: getwd: cannot access parent directories
>
> I checked all what can cause it:
> I upgraded bash.
> I played with SHELL variable in /etc/crontab
> and many more.
>
> I do not get such emails regarding no other cron.*
>
> What can cause it?
>
> Alexander Indenbaum
> baum@actcom.co.il
--
Gilad Ben-Yossef <gilad@benyossef.com> "New machines, network links,
and
URL: http://benyossef.com resources should be
automatically
Phone: +972-53-524810 assimilated. " Microsoft
Research