Skip site navigation (1)Skip section navigation (2)
Date:      04 Feb 2002 19:01:52 -0500
From:      Lowell Gilbert <lowell@world.std.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Locate command
Message-ID:  <444rkwx0cv.fsf@lowellg.ne.mediaone.net>
In-Reply-To: <a3n6il$i1c$1@FreeBSD.csie.NCTU.edu.tw>
References:  <a3n6il$i1c$1@FreeBSD.csie.NCTU.edu.tw>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?444rkwx0cv.fsf>