On 21.09.23 17:54, Mike Gabriel wrote:
OnĀ  Do 21 Sep 2023 16:05:51 CEST, Guido Berhoerster wrote:

This is actually a bug in LightDM which makes assumptions about the home
directory not changing and hardcoding paths to the Xauthority file.

There is also a small fix for libpam-mklocaluser necessary so it runs
before the pam_systemd module so that systemd/DBus started processes
have the correct home directory.

Thanks for digging this out!!!

If you want to test, you need to rebuild lightdm with the patch from
https://github.com/canonical/lightdm/pull/323 and change the
libpam-mklocaluser pam-config priority.

I'll need to see how we can escalate this to the lightdm maintainer in Debian. Unfortunately, neither lightdm upstream nor downstream is really active with development.

I'll prepare a patch for the package based on the above PR.

The latter is necessary for other display managers as well.

Interestingly, with GDMv3 (bullseye version), the login would just work on first attempt.

GDM might handle the login better but everything started by systemd and DBus will likely have the wrong home directory because of the order of session type PAM modules.

--
Guido Berhoerster

Reply via email to