* ellanios82
On 09/06/18 15:15, Patrick Shanahan wrote on factory :
* mike
[06-09-18 08:09]: On 06/09/2018 07:20 AM, Peter Suetterlin wrote:
Hi,
I'm getting this after running updatedb -
can not open a temporary file for '/var/lib/mlocate/mlocate.db'
I've had to remove mlocate then reinstall it and the first updatedb runs fine,
then I get the above error message for the second run.....is there a better fix
for this? Hmm, likely a permission issue. It normally runs as nobody (unless you change
mike wrote: that). Maybe the initial run when installing it is run as root? Then the DB is owned by root and cannot be changed. Or did you call updatedb yourself? always run as root
show: ls -la /var/lib/mlocate drwxr-xr-x 1 nobody root 20 Jun 9 00:15 . drwxr-xr-x 1 root root 1006 Jun 8 23:30 .. -rw-r--r-- 1 nobody nobody 16874246 Jun 9 00:15 mlocate.db
- Thank you Patrick
{ i have been told bu board-member to ask TW probs
on opensuse-support }
with TW i have adjusted chown & chmod as you suggest , but continue to get :
# updatedb updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'
......
- what to try next please?
does some other process have mlocate.db open?
ps -A auf |grep mlocate
still believe a perms problem, but ...
what about apparmor,
cat /etc/apparmor.d/usr.bin.updatedb
# Last Modified: Fri Apr 13 21:57:17 2018
#include