From owner-freebsd-questions@FreeBSD.ORG Wed Jun 25 08:16:05 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 716F137B401 for ; Wed, 25 Jun 2003 08:16:05 -0700 (PDT) Received: from rwcrmhc11.attbi.com (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE0DA43FEC for ; Wed, 25 Jun 2003 08:16:04 -0700 (PDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (be-well.no-ip.com[24.147.188.198]) by attbi.com (rwcrmhc11) with ESMTP id <20030625151604013006cvl8e>; Wed, 25 Jun 2003 15:16:04 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.9/8.12.7) with ESMTP id h5PFG31V040553 for ; Wed, 25 Jun 2003 11:16:03 -0400 (EDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.9/8.12.6/Submit) id h5PFG2RT040550; Wed, 25 Jun 2003 11:16:02 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f Sender: lowell@be-well.no-ip.com To: freebsd-questions@freebsd.org References: <20030624183026.M56829@wpi.edu> From: Lowell Gilbert Date: 25 Jun 2003 11:16:02 -0400 In-Reply-To: <20030624183026.M56829@wpi.edu> Message-ID: <44llvqdw7h.fsf@be-well.ilk.org> Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: locate database X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jun 2003 15:16:05 -0000 "Ben Polidore" writes: > My locate database is not being updated. > > If I run the script in /etc/periodic/weekly this is the output: > > [root@boxH50:/etc/periodic/weekly]# ./310.locate > > Rebuilding locate database: > [root@boxH50:/etc/periodic/weekly]# > > That takes about 1 second. > > This is an ls on the db file. > > [root@boxH50:/etc/periodic/weekly]# ls -l /var/db/locate.database > -r--r--r-- 1 nobody wheel 5911 Jun 24 14:31 /var/db/locate.database > [root@boxH50:/etc/periodic/weekly]# > > If I just run locate.updatedb as root, it works, but as soon as the periodic > script runs, the database is reduced to the above. > > Any thoughts? The weekly script runs locate.updatedb as "nobody", and won't get into any directories that "nobody" can't see. If you've tightened up your directory permissions, it seems quite appropriate that the locate database would be affected...