how to use updatedb command as an ordinary user on linux?
- by hugemeow
locate command is very useful tool on linux, but it seems only root can run updatedb command, so it will be very unconvinent to use locate command on linux, so how to make ordinary user to have the priviledge to run updatedb command?
updatedb is the command use to update the db used by locate command:)
error message when try to run updatedb using ordinary user:
[mirror@home code]$ updatedb
updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'