From owner-freebsd-questions Tue Jun 1 15: 4:59 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id BBE12155BD for ; Tue, 1 Jun 1999 15:04:46 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id SAA10911; Tue, 1 Jun 1999 18:04:57 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199906012204.SAA10911@cc942873-a.ewndsr1.nj.home.com> Subject: Re: Problems with locate database... In-Reply-To: from Paul Dekkers at "Jun 1, 99 11:17:03 pm" To: psd@cgu.nl Date: Tue, 1 Jun 1999 18:04:57 -0400 (EDT) Cc: ChrisMic@clientlogic.com, questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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