* Guido Berhoerster <gber@opensuse.org> [2014-11-03 22:31]:
* Manfred Hollstein <mhollstein@t-online.de> [2014-11-03 20:09]:
Hi there,
this is on VERSION="20141029 (Harlequin)" with lightdm as the display manager and xfce4 as my default window session.
On openSUSE 13.1 I was used to get the Gnome keyring automagically unlocked whenever I log in. This doesn't happen on a new installation of openSUSE Factory. I've tracked it down to the following line in /etc/pam.d/common-session:
session optional pam_gnome_keyring.so auto_start only_if=gdm,gdm-password,lxdm,lightdm
Everything looks OK, but even with the Gnome runtime support enabled in xfce4, the keyring stays locked. What's surprising is the following output of "systemctl status display-manager.service":
Nov 03 18:08:36 saturn display-manager[25273]: /etc/vconsole.conf available Nov 03 18:08:36 saturn display-manager[25273]: KEYMAP: de-latin1-nodeadkeys Nov 03 18:08:36 saturn display-manager[25273]: Command: localectl set-keymap de-latin1-nod...ys Nov 03 18:08:36 saturn lightdm[25310]: pam_unix(lightdm-greeter:session): session opened ...=0) Nov 03 18:08:36 saturn display-manager[25273]: Starting service lightdm..done Nov 03 18:08:52 saturn lightdm[25339]: pam_unix(xdm:session): session opened for user man...=0)
Look at the "xdm" in the last line. When I added some debugging code to pam_gnome_keyring.so, I saw that the display's manager name is indeed passed as "xdm" instead of "lightdm", which then resulted to not unlock the keyring because the manager wasn't in the list of supported ones.
By adding "xdm" to the "only_if=..." list I now get the keyring unlocked again when logging in, but this is clearly only a work-around, not a real solution.
Does anyone have an idea, what can go wrong here?
Nothing, particularly since you're not using xdm.
The actual fix is to create /etc/xdg/lightdm/lightdm.conf.d/99-pam-fix.conf with the following contents: [SeatDefaults] pam-service = lightdm pam-autologin-service = lightdm-autologin pam-greeter-service = lightdm-greeter and execute the following commands as root: ln -s /ect/pam.d/xdm /ect/pam.d/lightdm ln -s /ect/pam.d/xdm-np /ect/pam.d/lightdm-autologin -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org