From owner-freebsd-questions Mon Feb 4 16: 2: 7 2002 Delivered-To: freebsd-questions@freebsd.org Received: from chmls18.ne.ipsvc.net (chmls18.ne.ipsvc.net [24.147.1.153]) by hub.freebsd.org (Postfix) with ESMTP id EECE837B423 for ; Mon, 4 Feb 2002 16:01:54 -0800 (PST) Received: from be-well.ilk.org (lowellg.ne.mediaone.net [24.147.188.158]) by chmls18.ne.ipsvc.net (8.11.6/8.11.6) with ESMTP id g1501pG07162 for ; Mon, 4 Feb 2002 19:01:51 -0500 (EST) Received: (from lowell@localhost) by be-well.ilk.org (8.11.6/8.11.4) id g1501rm01991; Mon, 4 Feb 2002 19:01:53 -0500 (EST) (envelope-from lowell@world.std.com) X-Authentication-Warning: be-well.ilk.org: lowell set sender to lowell@world.std.com using -f To: freebsd-questions@freebsd.org Subject: Re: Locate command References: From: Lowell Gilbert Date: 04 Feb 2002 19:01:52 -0500 In-Reply-To: Message-ID: <444rkwx0cv.fsf@lowellg.ne.mediaone.net> Lines: 22 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 > 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? There's always find(1), of course. And you can always build your *own* database for locate, including any files you want. > In /etc/locate.rc: > SEARCHPATHS="/" > PRUNEPATHS="" > > Note this will make private files in home directories > seeable in locate output by any user. No, it won't. The database is still built as user "nobody", which won't have permissions to those files. Try running locate.updatedb as yourself (or root) instead of as nobody. Just make sure the database doesn't get put anywhere visible to people you might not want to see it... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message