From owner-freebsd-questions Thu Oct 5 7:39:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from be-well.ilk.org (lowellg.ne.mediaone.net [24.147.184.128]) by hub.freebsd.org (Postfix) with ESMTP id 4A20E37B503 for ; Thu, 5 Oct 2000 07:39:04 -0700 (PDT) Received: (from lowell@localhost) by be-well.ilk.org (8.11.0/8.11.0) id e95Ed2d10243; Thu, 5 Oct 2000 10:39:02 -0400 (EDT) (envelope-from lowell) To: freebsd-questions@freebsd.org Subject: Re: linux-like locate? References: From: Lowell Gilbert Date: 05 Oct 2000 10:39:02 -0400 In-Reply-To: danm@prime.gushi.org's message of "5 Oct 2000 14:26:15 +0200" Message-ID: <441yxvxshl.fsf@lowellg.ne.mediaone.net> Lines: 15 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG danm@prime.gushi.org (Dan Mahoney, System Admin) writes: > Hey all, I had an experience with locate on a linux system once, and I > noted that for regular users, it displayed world-readable directories, > whereas if you ran locate as root, it automatically had a separate > database which seemed to index the whole hard drive (including /var/log, > etc). Is there any way to get this functionality under FreeBSD? Sure. The '-d' option to locate(1) will let you search an alternate database, and you can run locate.updatedb(8) as root if you want, to generate an alternate database that includes all the files. If you want it to be invisible, you'll need to do the database updates from a cron job, and alias (or wrap) the locate(1) executable for the root account. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message