[arch-general] Upgrading mlocate: /var/lib/mlocate/ Permissions Warning.
Tinu Weber
takeya at bluewin.ch
Sun Jun 10 11:00:33 UTC 2018
On Sun, Jun 10, 2018 at 10:51:49 +0100, Ralph Corderoy wrote:
> This morning's `pacman -Su' encountered
>
> (10/13) upgrading mlocate [######################] 100%
> warning: directory permissions differ on /var/lib/mlocate/ filesystem: 750 package: 755
> (11/13) upgrading xkeyboard-config [######################] 100%
>
> when upgrading from version 0.26-6 to 0.26.git.20170220-1.
> Sure enough, afterwards
>
> drwxr-x--- 2 root locate 4096 Jun 10 00:01 /var/lib/mlocate
> -rw-r----- 1 root locate 16287372 Jun 10 00:01 /var/lib/mlocate/mlocate.db
>
> https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/mlocate#n58
> seems to take care that /var/lib/locate is 750 on line 58, but that's
> `locate', not `mlocate', so perhaps `mlocate' needs a similar set up?
I don't quite see the relation between locate an mlocate here (other
than that they are provided by the same package and are listed next to
each other in the mtree)...
> $ zcat /var/lib/pacman/local/mlocate-0.26.git.20170220-1/mtree |
> > grep '^\./var/lib'
> ./var/lib time=1528233128.0 mode=755 type=dir
> ✓ ./var/lib/locate time=1528233128.0 mode=750 gid=21 type=dir
> ✗ ./var/lib/mlocate time=1528233128.0 mode=755 type=dir
> $
> $ tar tvf /var/cache/pacman/pkg/mlocate-0.26.git.20170220-1-x86_64.pkg.tar.xz \
> > --warning=no-unknown-keyword var/lib
> drwxr-xr-x root/root 0 2018-06-05 22:12 var/lib/
> ✓ drwxr-x--- root/21 0 2018-06-05 22:12 var/lib/locate/
> ✗ drwxr-xr-x root/root 0 2018-06-05 22:12 var/lib/mlocate/
> $
The package wants /var/lib/mlocate to have 755, but the directory on
your system has 750. I assume this is because the previous version of
mlocate (0.26-6) set the permission that way:
$ zcat .MTREE | tail -n4
→ /set gid=21 mode=750
./var/lib time=1491283536.206666666 mode=755 gid=0 type=dir
./var/lib/locate time=1491283536.206666666 type=dir
→ ./var/lib/mlocate time=1491283536.156666666 type=dir
I assume pacman never touches permissions on existing directories,
hence the warning.
Best,
Tinu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20180610/8352c6e8/attachment.asc>
More information about the arch-general
mailing list