how to use updatedb command as an ordinary user on linux?
Posted
by
hugemeow
on Super User
See other posts from Super User
or by hugemeow
Published on 2012-08-28T02:03:05Z
Indexed on
2012/08/28
3:40 UTC
Read the original article
Hit count: 508
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'
© Super User or respective owner