if you get the following error after installing the mlocate package:
Code:
updatedb: can not find group ` mlocate'
this might fix it:
Code:
#!/bin/sh
grep -s mlocate /etc/group || addgroup mlocate
chgrp mlocate /opt/var/mlocate
chmod g=rx,o= /opt/var/mlocate
chgrp mlocate /opt/bin/locate
chmod g+s,go-w /opt/bin/locate

touch /opt/var/mlocate/mlocate.db
chgrp mlocate /opt/var/mlocate/mlocate.db
make sure you have installed addgroup package...
check it:

Code:
updatedb -v
locate -S