Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jun 1999 18:04:57 -0400 (EDT)
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        psd@cgu.nl
Cc:        ChrisMic@clientlogic.com, questions@FreeBSD.ORG
Subject:   Re: Problems with locate database...
Message-ID:  <199906012204.SAA10911@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <Pine.BSF.3.96.990601231554.21297A-100000@chippie.cgu> from Paul Dekkers at "Jun 1, 99 11:17:03 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Paul Dekkers wrote,
> On Tue, 1 Jun 1999, Christopher Michaels 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
permission to overwrite the root-owned file when the update tries to
update it. Logon as root and 'chown nobody /var/db/locate.database' to
fix.
-- 
Crist J. Clark                           cjclark@home.com


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?199906012204.SAA10911>