findutils and locate not working
- From:
- Trey Sizemore
- Date:
- 2011-09-22 @ 14:33
I've installed findutils with brew (maybe I shouldn't have needed to do
so?) and locate is not finding files.
I have tried to manually update the findutils database and get the
following error:
$ sudo /usr/libexec/locate.updatedb
shell-init: error retrieving current directory: getcwd: cannot access
parent directories: Permission denied
shell-init: error retrieving current directory: getcwd: cannot access
parent directories: Permission denied
shell-init: error retrieving current directory: getcwd: cannot access
parent directories: Permission denied
find: .: Permission denied
If I run it again without sudo, it eventually times out with the
following:
$ /usr/libexec/locate.updatedb
/usr/libexec/locate.updatedb: line 97: /var/db/locate.database:
Permission denied
Any ideas welcome on how to address this.
Thanks!
--
Trey Sizemore
trey@fastmail.fm