23 Apr
2018
23 Apr
'18
03:49
On Sun, 22 Apr 2018 20:18:00 -0700
John Andersen
Why does this happen:
jsa@poulsbo:~> sudo updatedb [sudo] password for jsa:
jsa@poulsbo:~> locate updatedb locate: can not open `/var/lib/mlocate/mlocate.db': Permission denied
Why does /var/lib/mlocate/mlocate.db get set as owned by root/root?
Because you are running updatedb as root. Avoid it by running updatedb as nobody instead of root.
You will note that after some time, I am again able to use locate, so something seems to change its permissions somewhere along the line.
Cron job runs updatedb as nobody and permissions get reset properly. Ralph -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org