Date: Sat, 10 Jul 1999 20:48:33 -0400 From: Christopher Michaels <ChrisMic@clientlogic.com> To: 'Justin Wolf' <jjwolf@bleeding.com>, freebsd-questions@freebsd.org Subject: RE: weekly locate rebuild Message-ID: <6C37EE640B78D2118D2F00A0C90FCB4401105A94@site2s1>
next in thread | raw e-mail | index | archive | help
As far as I can tell this has been fixed in -STABLE as I used to have the exact same problem, and I no longer have it anymore. -Chris > -----Original Message----- > From: Justin Wolf [SMTP:jjwolf@bleeding.com] > Sent: Saturday, July 03, 1999 11:40 AM > To: freebsd-questions@freebsd.org > Subject: weekly locate rebuild > > This is a lame question, but... when my machine tries to automagically > rebuild the locate db, it fails. I modified the 310.locate script in > /etc/periodic/weekly as such: > > if [ -x /usr/libexec/locate.updatedb -a -f $locdb ] ; then > echo "" > echo "Rebuilding locate database:" > echo "touching... " > touch ${locdb}; > echo "chowning... " > chown nobody ${locdb}; > echo "chmoding... " > chmod 644 ${locdb} > echo "running... " > echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody > echo "last chmod... " > chmod 444 ${locdb} > echo "done" > fi > > And I get this output: > > Rebuilding locate database: > touching... > chowning... > chmoding... > running... > find: .: Permission denied > 0 > last chmod... > done > > When I run it manually via 'periodic weekly' it works fine with no errors > (as root). Does the root crontab not run as root? Any suggestions? > > -Justin > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6C37EE640B78D2118D2F00A0C90FCB4401105A94>