LOCATE

at the end of the locate man page there is script to update the database. it works except you have to be root. Any idea how you could arrange permissions so you wouldn't have to be root to execute this and only this script as a user of a group.
 
It is run as user "nobody" from /etc/periodic/weekly/310.locate. So it won't index files of any users. If you also want to index your own files, you can create and customize your locate.rc file based on /etc/locate.rc and run locate.updatedb from your own crontab. Something like "LOCATE_CONFIG=$HOME/etc/locate.rc /usr/libexec/locate.updatedb"
 
Back
Top