Date: Sat, 5 Jun 1999 10:59:33 +0200 (CEST) From: Paul Dekkers <psd@cgu.nl> To: cjclark@home.com Cc: ChrisMic@clientlogic.com, questions@FreeBSD.ORG Subject: Re: Problems with locate database... Message-ID: <Pine.BSF.3.96.990605105732.9303A-100000@chippie.cgu> In-Reply-To: <Pine.BSF.3.96.990602091434.22493A-100000@chippie.cgu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2 Jun 1999, Paul Dekkers wrote: | On Tue, 1 Jun 1999, Crist J. Clark wrote: | | | > | Check the /etc/crontab entry. Is the weekly periodic script being run as | | > | root? | | > | | > It is. However in /etc/periodic/weekly/310.locate the locate-db command is | | > run as nobody. It doesn't work when run in crontab, but works when run | | > from commandline as root. Strange, isn't it? Same enviroment I assume. | | | | Not at all strange. If you once built the database as root, I bet | | /var/db/locate.database is owned by root, no? nobody does not have | | -r--r--r-- 1 nobody wheel 256 May 29 03:30 /var/db/locate.database | (It's an empty file now btw... and on a box where this all works (never | ran /usr/libexec/locate.updatedb directly) the file has the same | permissions...) In my weekly cron-output I now see the following: Rebuilding locate database: find: .: Permission denied How is that possible when running as root? Can't the user nobody chdir to the current directory when the script runs? (Which one is that? Root's homedir?) Paul -- Paul Dekkers E-Mail: <P.Dekkers@cgu.nl> To err is human, to moo bovine 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?Pine.BSF.3.96.990605105732.9303A-100000>