Locate tool won’t work, how do I fix

Open Terminal.app and run the following two commands:

cd /
sudo /usr/libexec/locate.updatedb

The "cd /" part is important as you need to be in a path where the user "nobody" has permissions.


The command to update the database is

sudo /usr/libexec/locate.updatedb

It should get run automatically every week from /System/Library/LaunchDaemons/com.apple.locate.plist but you can run it manually if required.