locate - Permission denied

bahhab_at_hotmail.com
Date: 05/26/05


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



Relevant Pages

  • Re: Apple recommending anti-virus software for Macs?
    ... > To be ultra-safe with the 'rm' command, ... Not a bad idea for root, It would drive me nuts in my user account. ... downloads directory and executing it. ... That I type an EOF is a trivial difference versus 'sudo' exiting ...
    (comp.sys.mac.system)
  • Re: [opensuse] su - -c $command user ???
    ... I'd like to calculate a command-string as root and pass it with su ... into the context of a unprivileged user to run the command not as ... Basically I need to know $d after the daemonuser created and filled ... Note the echo isn't really going to be a fully valuable ...
    (SuSE)
  • Re: System-users and-groups?
    ... bin shouldn't do so much. ... was root and bin... ... Although the daemon user/group are ... as that user runs that command. ...
    (alt.linux)
  • RE: remote ssh for root
    ... forced-commands-only option set, you have to have the command option set. ... execution as root. ... > This message contains confidential information and is ...
    (SSH)
  • Re: grub menu oddity
    ... >>> command (until the manual root command was executed). ... >>> When I first encountered this behavior, it took several reboots for me to ... FWIW - a new CMOS battery is only $3-5 at your local Shaque du Radio ...
    (comp.os.linux.setup)