[Pkg-xfce-devel] Bug#798967: lightdm: Does not source /etc/environment through pam_env

Benjamin Cama benjamin.cama at telecom-bretagne.eu
Mon Sep 14 14:31:57 UTC 2015


Package: lightdm
Version: 1.10.3-3
Severity: important

Dear Maintainer,

Since jessie, lightdm has broken my setup (breaking network printing,
authorized with Kerberos in my case) because it does not source
/etc/environment when starting a session, as any DM should.

My setup did work correctly previously with wheezy (its lightdm version
correctly sourced this file).

For me, the fix was to remove the "envfile=/etc/default/locale" argument
to pam_env.so in /etc/pam.d/lightdm. This change is Debian-specific, and
comes from this patch version:

http://anonscm.debian.org/viewvc/pkg-xfce/goodies/trunk/lightdm/debian/patches/05_debianize-pam-files.patch?revision=7308&view=markup

Furthermore, the comment above is inconsistent with the line described.
I really do not know what /etc/default/locale has to do with the whole
environment: it is just a small part of it (I do not even know where
this is sourced; still, I get the correct locale even with my fix).

This bug and its solution look quite like the fix proposed in #784158
(apart from the user environment sourcing; I have no opinion on this)
but it has been dismissed has "fixed-upstream" (which is strange as it
seems Debian-specific) and "wontfix" which is really a big mistake, thus
the severity "important" here, as it is *really* breaking a rather
fundamental function, to me.

Please explain the rationale behind the /etc/default/locale thing or
please fix it for jessie (I lost *a lot* of time on this).

Thanks,
-- benjamin

-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lightdm depends on:
ii  adduser                                3.113+nmu3
ii  consolekit                             0.4.6-5
ii  dbus                                   1.8.20-0+deb8u1
ii  debconf [debconf-2.0]                  1.5.56
ii  libc6                                  2.19-18+deb8u1
ii  libgcrypt20                            1.6.3-2
ii  libglib2.0-0                           2.42.1-1
ii  libpam-systemd                         215-17+deb8u2
ii  libpam0g                               1.1.8-3.1
ii  libxcb1                                1.10-3+b1
ii  libxdmcp6                              1:1.1.1-1+b1
ii  lightdm-gtk-greeter [lightdm-greeter]  1.8.5-2

Versions of packages lightdm recommends:
ii  xserver-xorg  1:7.7+7

Versions of packages lightdm suggests:
pn  accountsservice  <none>
ii  upower           0.99.1-3.2

-- Configuration Files:
/etc/apparmor.d/lightdm-guest-session 9d3af5806375ac868fcaf5aaf3d56a00 [Errno 2] Aucun fichier ou dossier de ce type: u'/etc/apparmor.d/lightdm-guest-session 9d3af5806375ac868fcaf5aaf3d56a00'
/etc/pam.d/lightdm changed:
auth      requisite pam_nologin.so
auth      required pam_env.so
@include common-auth
-auth  optional pam_gnome_keyring.so
@include common-account
session  [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close
session  required        pam_limits.so
session  required        pam_loginuid.so
@include common-session
session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so open
-session optional        pam_gnome_keyring.so auto_start
@include common-password


-- debconf information:
* shared/default-x-display-manager: lightdm
  lightdm/daemon_name: /usr/sbin/lightdm



More information about the Pkg-xfce-devel mailing list