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

On Wednesday 03 July 2002 12:14 am, Chen Shi-Ping wrote:
> Hi,
>
> I am running RH7.2. I used to have no problems to invoke "locate"
> command. Recently, I get the following message when I invoke "locate"
> as an ordinary user (not root):
>
>     locate: this is not a valid slocate database:
> /var/lib/slocate/slocate.db
>
> However, root user has no problems to invoke "locate". The following is
> slocate information:
>
>     $cd /usr/bin
>     $ll
>     -rwxr-xr-x   1   root   root   23560   Jun25   2001   slocate

Permissions here are:
ll /usr/bin/slocate
- -rwxr-sr-x    1 root     slocate     25020 Jun 25  2001 /usr/bin/slocate

'rpm --setperms slocate' followed by 'rpm --setugids slocate' should fix 
up the permissions and ownership to the default. (Using both rpm options 
together in a single command failed here.)

- -- 
- -Michael

pgp key:  http://www.tuxfan.homeip.net:8080/gpgkey.txt
Red Hat Linux 7.2 in 8M of RAM: http://www.rule-project.org/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj0ig1kACgkQn/07WoAb/SuinQCcDcUvpYnkv+g1lIZAeRuIsYs7
bL4Ani7QQTpvsAAeOHDIekV9muN/A+Uu
=Tiw9
-----END PGP SIGNATURE-----



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to