From owner-freebsd-questions Sat Jul 10 17:46:53 1999 Delivered-To: freebsd-questions@freebsd.org Received: from ns.clientlogic.com (ns.clientlogic.com [207.51.66.75]) by hub.freebsd.org (Postfix) with ESMTP id 38ED014D01 for ; Sat, 10 Jul 1999 17:46:37 -0700 (PDT) (envelope-from ChrisMic@clientlogic.com) Received: by site0s1 with Internet Mail Service (5.5.2448.0) id <3DAYWTT8>; Sat, 10 Jul 1999 20:46:33 -0400 Message-ID: <6C37EE640B78D2118D2F00A0C90FCB4401105A94@site2s1> From: Christopher Michaels To: 'Justin Wolf' , freebsd-questions@freebsd.org Subject: RE: weekly locate rebuild Date: Sat, 10 Jul 1999 20:48:33 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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