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

Re: Missing files in locatedb



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Victor Munoz wrote:
> It worked. All missing files are there now.
> 
> At first, this was a mystery, but now I understand why. updatedb is
> not run as root, but as 'nobody', as set in /etc/updatedb.conf, so
> the sequence
> 
> $ . /etc/updatedb.conf; updatedb
> 
> yields a lot of "Permission denied" messages, unlike "$ updatedb". 
> 
> And I was wrong when I replied to another post in this thread, saying
> that all directories had permissions drwxr-xr-x. ~/textos/fisica had
> drwxr-xr--, and that was it.
> 
> So it's all working now, and much better, I understand :-) Thanks for
> the help.

I use package 'slocate' instead of 'locate':

/-----------
$ aptitude show slocate
Package: slocate
[snip]
Description: Secure replacement of findutil's locate
 This locate can index all files on your system, but only files and
directories which the invoking user has access
 to will be displayed.

 Note: If your computer is not up 24/7 you should consider installing
anacron since the database is only updated
 once a night.
\-----------

Usage is like for locate, ie. I type locate, but it will execute slocate.

HTH,

Johannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG/KQjC1NzPRl9qEURAmNNAJ994vsY6IKqt5BFQtHVjs0Mp4+gUACfTCEk
BWaMziTDCLv4q9cxMNuP4Us=
=9tLN
-----END PGP SIGNATURE-----



Reply to: