-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2014-10-26 18:59, Linda Walsh wrote:
Martin Pluskal wrote:
locate group is not necessary with recent mlocate, mlocate is currently executed as nobody. ---- The requirement for group locate came from the database being owned by group locate, so anyone accessing it had to be in that group.
Notice that mlocate is different from locate: Telcontar:~ # l /var/lib/mlocate/mlocate.db - -rw-r--r-- 1 root root 54014689 Oct 25 22:20 /var/lib/mlocate/mlocate.db Telcontar:~ # It is owned by root. And it works: Telcontar:~ # su - nobody nobody@Telcontar:~> locate mlocate.db /usr/share/man/man5/mlocate.db.5.gz /var/lib/mlocate/mlocate.db /var/lib/mlocate/mlocate.db.VXAzte nobody@Telcontar:~> logout Telcontar:~ # You do not need to belong to that group, the instructions are plain wrong: Telcontar:~ # rpm -qi mlocate ... User must be member of locate group in order to use this package. Distribution: openSUSE 13.1 Telcontar:~ # What you comment applies to locate, not to mlocate. However, the permission control of mlocate might be broken: nobody@Telcontar:~> locate 20071006.0109 /home/cer/pine-crash.20071006.0109 /home_aux/cer/pine-crash.20071006.0109 nobody@Telcontar:~> l /home/cer/pine-crash.20071006.0109 ls: cannot access /home/cer/pine-crash.20071006.0109: Permission denied nobody@Telcontar:~> l /home/cer ls: cannot open directory /home/cer: Permission denied nobody@Telcontar:~> mlocate should not be able to locate a file to which the user running it has no access permission. This is not what was reported on the release notes when the distribution switched from locate to mlocate. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlRNQ64ACgkQtTMYHG2NR9XSsQCfTbwBM5oC+QaqfsIxts23rVcP nM4AoI3EsJ/eQFBVyol0LVGkQrbw7MHA =boYz -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org