locate - Permission denied
bahhab_at_hotmail.com
Date: 05/26/05
- Next message: Jean-David Beyer: "Re: Sick of trolls!"
- Previous message: Timothy Murphy: "Re: MySQL permission"
- Next in thread: Jean-David Beyer: "Re: locate - Permission denied"
- Reply: Jean-David Beyer: "Re: locate - Permission denied"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 May 2005 04:50:39 -0700
Hi
Can anyone explain why the locate command has stopped working for
users? I'm getting permission denied on reading the slocate.db (I
think) but the dbase and the directory it's in are readable by slocate
and the parental directories are readable by everyone. From what I can
find out through google these permissions are as they should be.
Many thanks
Ann
[ann]$ locate file
warning: locate: could not open database: /var/lib/slocate/slocate.db:
Permission denied
warning: You need to run the 'updatedb' command (as root) to create the
database.
[ann]$ su
Password:
[root]# locate file
/home/condor/.bash_profile
...etc
[root]# ls -l /var/lib/slocate/
total 7772
-rw-r----- 1 root slocate 7946165 May 25 07:34 slocate.db
[root]# ls -ld /var/lib/slocate
drwxr-x--- 2 root slocate 4096 May 25 07:34
/var/lib/slocate
[root]# ls -ld /var/lib
drwxr-xr-x 24 root root 4096 Sep 29 2003 /var/lib
[root]# ls -ld /var
drwxr-xr-x 19 root root 4096 Nov 8 2004 /var
- Next message: Jean-David Beyer: "Re: Sick of trolls!"
- Previous message: Timothy Murphy: "Re: MySQL permission"
- Next in thread: Jean-David Beyer: "Re: locate - Permission denied"
- Reply: Jean-David Beyer: "Re: locate - Permission denied"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|