From owner-freebsd-questions Mon Feb 4 17:20: 7 2002 Delivered-To: freebsd-questions@freebsd.org Received: from gull.prod.itd.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by hub.freebsd.org (Postfix) with ESMTP id 3F70737B41F for ; Mon, 4 Feb 2002 17:19:55 -0800 (PST) Received: from user-2ivfogc.dialup.mindspring.com ([165.247.226.12] helo=gohan.cjclark.org) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16XuH2-0005D5-00; Mon, 04 Feb 2002 17:19:53 -0800 Received: (from cjc@localhost) by gohan.cjclark.org (8.11.6/8.11.6) id g151BqJ04864; Mon, 4 Feb 2002 17:11:52 -0800 (PST) (envelope-from cjc) Date: Mon, 4 Feb 2002 17:11:52 -0800 From: "Crist J. Clark" To: Joe & Fhe Barbish Cc: mpd , FBSD Subject: Re: Locate command Message-ID: <20020204171152.F3722@gohan.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <20020204170456.A97655@rochester.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from barbish@a1poweruser.com on Mon, Feb 04, 2002 at 06:09:30PM -0500 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 04, 2002 at 06:09:30PM -0500, Joe & Fhe Barbish wrote: > I edited the /etc/locate.rc file and uncommented the two > statements you pointed out. > Rebuilt locate DB using sh /etc/periodic/weekly/310.locate > It still did not pick up the non public files such as > /usr/local/frontpage/version5.0/apache-fp/_vti_bin/fpexe, > locate finds fpexe.c but not fpexe. The commands to build the locate database are run as the user 'nobody.' If 'nobody' cannot read a directory, nothing below it will find its way into the database. You can edit /etc/periodic/weekly/310.locate to have it run as a different user, but if you want the world to know the files are there, why not make the directories world readable in the first place? > If the locate does not load all files on the FBSD slice into > the locate database is there some other command which will > tell me where all copies of a file are located? You can always try find(1). -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message