On Tue, 13 Nov 2001, Peter Jay Salzman wrote:

> this one has had my curiosity for awhile.
> 
> locate seems to know about directories that have permissions of 700.
> directories that normal users really have no business knowing about.
> 
> or even systems where /home directories are considered private.
> 
> is there a way to enforce "locate privacy" on system directories that only
> root should have access to?

man locate
man updatedb
less ls /etc/cron.daily/find

If per-user visibility is an issue, you could set LOCATE_PATH to look for
a global database, per-group database, and user-only database, and modify
the find script to maintain separate databases.

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<[EMAIL PROTECTED]>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k
---------------------------------------------------------------------------

Reply via email to