Mailinglist Archive: opensuse-support (90 mails)

< Previous Next >
Re: [opensuse-support] updatedb now fails for regular user with local db
* Patrick Shanahan <paka@xxxxxxxxxxxx> [11-26-18 08:25]:
* Ralph <suselist@xxxxxxxxxxxx> [11-26-18 04:51]:
On Sun, 25 Nov 2018 20:01:33 -0500
Patrick Shanahan <paka@xxxxxxxxxxxx> wrote:

* Ralph <suselist@xxxxxxxxxxxx> [11-25-18 19:50]:
[os Leap 15, xfce]

I have a private mlocate database in my /home. Since a few days ago
attempting to update the db now fails for a command such as:

"updatedb -l 0 -o /home/rsil/Downloads/rsildb -U /home/rsil"

Message is: "updatedb: can not open a temporary file for

There was an update to mlocate on 17 Nov, perhaps the culprit, or
not. Whatever. How do I get back the ability to update my own

google for the error msg, iirc was incorrect perms for a directory

Did that. My google-fu is really weak but it seems the Nov 17 update to
mlocate was to fix a problem with mlocate/updatedb permissions related
to apparmor, and since that date is when my problems likely began then
I assume that the "fix" broke something. That Nov 17 "fix" was:

I'm having trouble following the logic of that bug chat as my knowledge
of apparmor is slim to none, especially at 3:30 am here. What's it say
there? 8-/

you are running updatedb as root?

do you have:
# ls -la /var/lib/mlocate
drwxrwxr-x 2 nobody root 4096 Nov 25 18:00 ./
drwxr-xr-x 58 root root 4096 Nov 22 22:42 ../
-rw-r--r-- 1 nobody nobody 110210048 Nov 25 18:00 mlocate.db

if not, as root
# chown nobody:nobody /var/lib/mlocate/
# chmod 775 /var/lib/mlocate

from google

If that is not the problem, the last comment in the bug report,

openSUSE-RU-2018:3779-1: An update that has one recommended fix can now
be installed.

Category: recommended (moderate)
Bug References: 1089594
CVE References:
Sources used:
openSUSE Leap 15.0 (src): mlocate-0.26-lp150.3.3.1

are you using at least that version of mlocate?

if not you merely need to update.

and perhaps my failing to read *completely* your question is another
problem. "updatedb" is NOT intended to be performed by non-root user on
openSUSE distro and has not in the past to my knowledge for a very long
time. but you must account for brown-bottle pickled and aged memory. you
must use "sudo" or otherwise elevate users privileges to root.

(paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri openSUSE Community Member facebook/ptilopteri
Registered Linux User #207535 @
Photos: paka @ IRCnet freenode
To unsubscribe, e-mail: opensuse-support+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-support+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups