You are not logged in.

#1 2022-09-04 17:42:47

ExoDoom
Member
Registered: 2013-11-01
Posts: 39

Gnome keyring not unlocking automatically

Hi folks,

I'm using Arch with Openbox as WM (no DE), LightDM as display manager and I have enabled XDG autostart. Having hard times auto-unlocking Gnome keyring. I don't use any kind of autologin within lightdm, and the password for my default login keyring matches my user's password. Keyring daemon is run on boot:

$ ps aux | grep keyring
joseluis     854  0.0  0.0 241068 11600 ?        SLsl 18:17   0:00 /usr/bin/gnome-keyring-daemon --foreground --components=pkcs11,secrets --control-directory=/run/user/1000/keyring

However, if I open seahorse after login, the login keyring is locked. My /etc/pam.d/lightdm looks like the following (I think I only added the fprintd lines):

#%PAM-1.0
auth        sufficient  pam_unix.so try_first_pass likeauth nullok
auth        sufficient  pam_fprintd.so
auth        include     system-login
-auth       optional    pam_gnome_keyring.so
account     include     system-login
password    include     system-login
session     include     system-login
-session    optional    pam_gnome_keyring.so auto_start

Finally,

journalctl -b -p err

shows this message:

sep 04 18:17:21 gram lightdm[709]: gkr-pam: couldn't unlock the login keyring.

Is there any step that I'm missing?

Thanks in advance.

Offline

#2 2022-09-04 19:04:00

yochananmarqos
Member
Registered: 2020-02-05
Posts: 222

Re: Gnome keyring not unlocking automatically

disable the gnome-keyring-daemon.service and gnome-keyring-daemon.socket user units.

-- https://wiki.archlinux.org/title/GNOME/ … emon:_1%22

Offline

#3 2022-09-05 19:08:41

ExoDoom
Member
Registered: 2013-11-01
Posts: 39

Re: Gnome keyring not unlocking automatically

Hi folks,

Thank you for your response yochananmarqos.

I run

systemctl --user mask gnome-keyring-daemon.service
systemctl --user mask gnome-keyring-daemon.socket

(I masked them because disable seemed to do nothing)

I got rid of the journal error, and now I have the following running on boot:

$ ps aux | grep keyring
joseluis     848  0.0  0.0 241072  8304 ?        SLl  20:00   0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
joseluis    1242  0.0  0.0 240892 10372 ?        Sl   20:01   0:00 /usr/bin/gnome-keyring-daemon --start --foreground --components=secrets

However, if I fire up seahorse, login keyring is locked. Shouldn't it be unlocked automatically?

Thanks in advance.

Offline

Board footer

Powered by FluxBB