The com.apple.locate.plist
daemon is running, and I've updated the database using sudo /usr/libexec/locate.update
, but the locate command is still not finding a .zip named OldPhoneCamera.zip
in /Users/CAJ/Pictures/
.
I use this command locate -i OldPhoneCamera
, and it returns nothing. The directory is not hidden, and the file has been on the system for 6 months. The database has been updated multiple times since then.
I can use find successfully, find / -name OldPhone*
, but I prefer using locate because find takes a long time. Why is locate not finding OldPhoneCamera.zip, and can that be fixed?
Best Answer
The shell script
/usr/libexec/locate.updatedb
is run by the non-privileged usernobody
. Here's the snip it:The script will barely touch anything within your home folder.