-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2013-06-18 at 16:17 -0700, Linda Walsh wrote:
Carlos E. R. wrote:
Telcontar:~ # locate testing_manpage.log /home/cer2/Documents/testing_manpage.log Telcontar:~ #
cer@Telcontar:~> locate testing_manpage.log cer@Telcontar:~>
My user can not locate a file that belongs to another user, but root can.
Are you using mlocate?
Yes, of course. mlocate-0.26-14.1.x86_64
So is it that you cannot read testing_manpage.log, or is it that you can't read the directory where it is at?
I can not browse the directory. cer@Telcontar:~> l /home/cer2/Documents/testing_manpage.log ls: cannot access /home/cer2/Documents/testing_manpage.log: Permission denied cer@Telcontar:~> Telcontar:/home/cer # l /home/cer2/Documents/testing_manpage.log - -rw-r--r-- 1 cer2 users 14410 Feb 9 2008 /home/cer2/Documents/testing_manpage.log Telcontar:/home/cer #
I.e. could you do an 'ls' or a 'find' and find that file? (but not be able to read it), or is it not findable?
Nope, I can not use a find. mlocate is behaving like find would behave.
How's the speed compared to locate (not that locate is fast, mind you, but slower would be bad). I'd thought about multithreading locate to bring up the speed a bit.
Locate is instant. I can not compare both mlocate and locate because both have the same binary name, can not install both simultanously. cer@Telcontar:~> time locate testing_manpage.log real 0m0.792s user 0m0.776s sys 0m0.006s cer@Telcontar:~> Multithreading is useless if you have to seek a 30MB data file for a name. And the seek is not cached: cer@Telcontar:~> time locate testing_manpage.log real 0m0.769s user 0m0.762s sys 0m0.006s cer@Telcontar:~> time locate testing_manpage.log real 0m0.769s user 0m0.759s sys 0m0.009s cer@Telcontar:~> - -- Cheers, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlHA8EsACgkQtTMYHG2NR9UoVQCeIeqS+ZbBjCdvjUFookZDf6yu BkIAnisXpGlduxeNszVNdAT9rWDlIAib =uCmE -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org