[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 'locate' does not check permissions



'slocate' is what I needed.

Since this computer is turned off at night, cron will not run slocate updates. so I put a line in root's crontab:

   @reboot sleep 1200; /usr/bin/nice -n 19 /etc/cron.daily/slocate

That makes my slocate database always updated.

   Thanks for everybody.

   Pedro

On Thu, Jun 07, 2001 at 06:57:18PM -0300, Pedro Zorzenon Neto wrote:
> Hi list,
> 
>    I created a directory /home/pzn/private/ and chmod it go-rwx to put my private things.
>    Then nobody can see the contents and files of this directory, right? I've believed it was true, but other user can do:
> 
>    $ ls -l ~pzn/
>      ...
>      drwx--S---   20 pzn      pzn          4096 Mai 16 09:54 private
>      ...
>    $ locate private | grep "/home/pzn/private"
>      the whole contents of my private dir suddenly appears here...
> 
>    Why doesn't locate/updatedb saves the permissions?
> 
> 
>    Thanks in advance,
>       Pedro



Reply to: