Comment 81 for bug 1779890

Revision history for this message
Matthew Ruffell (mruffell) wrote :

Performing verification for Jammy.

I started two VMs. One jammy-server, and the other jammy-desktop, both running 22.04.3 LTS. Server is server, and Desktop was installed with the Desktop ISO.

On the server I set up a samba active directory domain controller, using my notes from comment 17 [1]
[1] https://bugs.launchpad.net/ubuntu/+source/tracker-miners/+bug/1779890/comments/17

I then attached the Desktop VM to the active directory domain controller.

The Desktop VM has tracker-extract 3.3.3-0ubuntu0.20.04.1 and tracker-miner-fs 3.3.3-0ubuntu0.20.04.1 installed from -updates.

Checking the environment set in gvfs shows the following variables, note the lack of KRB5CCNAME and more.

$ cat /proc/$(pidof gvfsd)/environ | xargs --null -n1
HOME=/home/aduser
LANG=en_NZ.UTF-8
LANGUAGE=en_NZ:en
LOGNAME=aduser
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
SHELL=/bin/bash
SYSTEMD_EXEC_PID=2882
USER=aduser
XDG_RUNTIME_DIR=/run/user/524601104
GTK_MODULES=gail:atk-bridge
QT_ACCESSIBILITY=1
XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/524601104/bus
MANAGERPID=2848
INVOCATION_ID=b2a0ff0e4fe443e19fe5b799f865892c
JOURNAL_STREAM=8:35245

Looking at the systemd unit files, we see they are set for default.target.wants for tracker-extract-3.service.

aduser@ubuntu:~$ ll /etc/systemd/user/default.target.wants/tracker-extract-3.service
lrwxrwxrwx 1 root root 47 Feb 10 16:12 /etc/systemd/user/default.target.wants/tracker-extract-3.service -> /usr/lib/systemd/user/tracker-extract-3.service
aduser@ubuntu:~$ ll /var/lib/systemd/deb-systemd-user-helper-enabled/default.target.wants/tracker-extract-3.service
-rw-r--r-- 1 root root 0 Aug 8 2023 /var/lib/systemd/deb-systemd-user-helper-enabled/default.target.wants/tracker-extract-3.service
aduser@ubuntu:~$ ll /var/lib/systemd/deb-systemd-user-helper-enabled/tracker-extract-3.service.dsh-also
-rw-r--r-- 1 root root 65 Feb 10 16:30 /var/lib/systemd/deb-systemd-user-helper-enabled/tracker-extract-3.service.dsh-also

Mounting the samba share in Nautilus just produces a username and password box.

I then enabled -proposed, and installed tracker-extract 3.3.3-0ubuntu0.20.04.2 and tracker-miner-fs 3.3.3-0ubuntu0.20.04.2. I then rebooted.

Setting up tracker-extract (3.3.3-0ubuntu0.20.04.2) ...
Processing triggers for libglib2.0-0:amd64 (2.72.4-0ubuntu2.2) ...
Processing triggers for man-db (2.10.2-1) ...
Setting up tracker-miner-fs (3.3.3-0ubuntu0.20.04.2) ...

The default.target.wants systemd unit files have been removed correctly, and systemd no longer manages tracker-extract-3.service.

aduser@ubuntu:~$ ll /etc/systemd/user/default.target.wants/tracker-extract-3.service
ls: cannot access '/etc/systemd/user/default.target.wants/tracker-extract-3.service': No such file or directory
aduser@ubuntu:~$ ll /var/lib/systemd/deb-systemd-user-helper-enabled/default.target.wants/tracker-extract-3.service
ls: cannot access '/var/lib/systemd/deb-systemd-user-helper-enabled/default.target.wants/tracker-extract-3.service': No such file or directory
aduser@ubuntu:~$ ll /var/lib/systemd/deb-systemd-user-helper-enabled/tracker-extract-3.service.dsh-also
ls: cannot access '/var/lib/systemd/deb-systemd-user-helper-enabled/tracker-extract-3.service.dsh-also': No such file or directory

Checking the environment of gvfsd shows:

$ cat /proc/$(pidof gvfsd)/environ | xargs --null -n1
HOME=/home/aduser
LANG=en_NZ.UTF-8
LANGUAGE=en_NZ:en
LOGNAME=aduser
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
SHELL=/bin/bash
SYSTEMD_EXEC_PID=1285
USER=aduser
XDG_RUNTIME_DIR=/run/user/524601104
GTK_MODULES=gail:atk-bridge
QT_ACCESSIBILITY=1
XDG_DATA_DIRS=/usr/share/aduser:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/524601104/bus
DESKTOP_SESSION=ubuntu
GDMSESSION=ubuntu
GNOME_SHELL_SESSION_MODE=ubuntu
KRB5CCNAME=FILE:/tmp/krb5cc_524601104_L9Lvqa
IM_CONFIG_PHASE=1
PWD=/home/aduser
SHLVL=0
USERNAME=aduser
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
XDG_CURRENT_DESKTOP=ubuntu:GNOME
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=wayland
_=/usr/bin/gnome-session
MANAGERPID=1159
INVOCATION_ID=2a6ca2999cdf408dab2e0ddd133ae17c
JOURNAL_STREAM=8:25366

The environment is actually inherited from systemd --user session now, and includes KRB5CCNAME.

Accessing the share in Nautilus with kerberos works as expected.

We also have a positive verification from Zach Brown in comment #80. Thanks for helping to test Zach!

The package in -proposed fixes the issue. Happy to mark verified for Jammy.