[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-newbie
Subject:    Re: No Locate for User
From:       chuck <chuck () gelm ! net>
Date:       2005-04-26 11:53:04
Message-ID: 426E2BA0.80307 () gelm ! net
[Download RAW message or body]

Peter wrote:

>Sorry for not expressing myself clearly!
>
>ray@comarre.com said:
>  
>
>> From what you just wrote  this time ("I tried various permission for
>>slocate"), I *still* cannot  tell if you tried what I actually suggested --
>>using chmod to set the  database file (slocate.db) to mode 644.
>>    
>>
>
>Yes I did chmod 644 /var/lib/slocate/slocate.db and it changed nothing.
>
>ray@comarre.com said:
>  
>
>>Since you say you tried things with  "slocate" rather than "slocate.db", I am
>>uncertain as to which of the  two you were modifying.
>>    
>>
>
>I did all the changes on slocate.db. I even made myself the owner. Even then I 
>get Permission denied.
>
>Updatedb changes permissions of slocate.db back to -rw-r-----  1 root slocate.
>
>ray@comarre.com said:
>  
>
>>If it does, then round up the usual suspects:
>>	ls -l /var/lib/slocate/slocate.db
>>	ls -l /usr/bin/locate  (or wherever Slackware puts it)
>>	ldd /usr/bin/locate
>>    
>>
>
>ls -l /var/lib/slocate/slocate.db
>-rw-r--r--  1 root slocate 6640136 2005-04-25 18:08 /var/lib/slocate/slocate.db
>
>ls -l /usr/bin/locate
>lrwxrwxrwx  1 root root 7 2005-03-08 17:45 /usr/bin/locate -> slocate
>
>ldd /usr/bin/slocate
>libc.so.6 => /lib/libc.so.6 (0x4001e000)
>/lib/ld-linux.so.2 (0x80000000)
>
>Fedora:
>ls -l /var/lib/slocate/slocate.db
>-rw-r-----  1 root slocate 2874826 2005-04-20 15:07 
>/mnt/rh9root/var/lib/slocate/slocate.db
>
>ls -l /usr/bin/locate
>-rwxr-sr-x  1 root slocate 26460 2004-10-20 /usr/bin/locate -> slocate
>
>ldd /usr/bin/slocate
>        libc.so.6 => /lib/tls/libc.so.6 (0x004c7000)
>        /lib/ld-linux.so.2 (0x004ae000)
>  
>
.../tls/... ?

My Slackware 10.1: ldd /usr/bin/slocate:
 libc.so.6 => /lib/libc.so.6 (0x40009000)
 /lib/ld-linux.so.2 (0x80000000)

HTH, Chuck


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic