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

BUG? /etc/cron.daily/find doesn't run



/etc/cron.daily/find looks like this:

#! /bin/sh
#
# cron script to update the `find.codes' database.
#
# Written by Ian A. Murdock <imurdock@debian.org>.

su nobody -c "cd / && updatedb" 2>/dev/null

but the "nobody" entry in /etc/passwd looks like this:

nobody:*:65534:65534:nobody:/tmp:/dev/null

and it fails with:

su: cannot run /dev/null: Permission denied

I just changed "su nobody" to "su root". I can run it manually now as 
root so I assume cron should run it OK next time around.

Is this a problem with the cron job from the findutils package or the passwd 
file from the base package?

...RickM...


Reply to: