Re: cron path problem
Hello
Hans du Plooy (<hansdp@newingtoncs.co.za>) wrote:
> I have setup a cron job (on woody) to run apt-get update and apt-get
> install once a week to do security updates.
>
> I get the following:
>
> dpkg: `ldconfig' not found on PATH.
> dpkg: `start-stop-daemon' not found on PATH.
> dpkg: `install-info' not found on PATH.
> dpkg: `update-rc.d' not found on PATH.
> dpkg: 4 expected program(s) not found on PATH.
>
> I thought that cron would run as user cron, but there's no such user.
> Who does it run as?
Normally jobs are run under the user id in the crontab file, or, if the
job is run from a user crontab, under that user's id.
> Or how can I set the path that cron has access to?
By setting the PATH in your cronjob script.
best regards
Andreas Janssen
--
Andreas Janssen <andreas.janssen@bigfoot.com>
PGP-Key-ID: 0xDC801674
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps.html
Reply to: