Thanks for Michael's response. I think your point is correct.
However, I did 'rpm --setperms slocate' and got the following message:
sh: package: command not found
I tried to reinstall the slocate package yesterday, but accidentally
removed the old package. The following was what I did:
#rpm -e slocate-2.6-1.i386.rpm
#rpm -ivh slocate-2.6-1.i386.rpm
Preparing... ###########################################[100%]
1:slocate error: unpacking of archie failed on file /usr/bin/slocate:
cpio: rename failed - Operation not permitted
I also appreciate Kevin's response.
Shi-Ping Chen
On Wed, 3 Jul 2002, Michael Fratoni wrote:
> -----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
>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list