Re: Missing files in locatedb
-----BEGIN PGP SIGNED MESSAGE-----
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
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
-----END PGP SIGNATURE-----