8

How do I automatically unlock the keyring at login on my Lubuntu 14.04 system?

There are a lot of answers to this problem on this site and Ubuntu Forums, but none are applicable to a 14.04 Lubuntu system - it appears that the Passwords and Keys dialog has changed significantly since those answers were supplied.

SO -

  • answers telling me to tick the box for "Unlock the keyring at login" in the Seahorse app do not work, because it is not there.

  • answers (like this one) telling me to tick the box on the "Unlock Keyring" dialog box to unlock it at login do not work, because it is not there

  • auto-login was never set on this system, so that is not a contributor, and this answer does not apply

  • the issue does not arise with Network Manager (like this one), but rather with Deja-dup

  • I do not want an answer that involves removing the keyring password entirely - like this one

How can this rather basic requirement be met on a Lubuntu 14.04 system?

[edit] - here is the dialog box requesting the keyring unlock. enter image description here

  • I have Lubuntu 14.04 fully updated but don't have any "unlock the keyring at login" requirement. Could you put up an image of what this keyring looks like? I'm assuming you aren't referring to the vanilla login screen. I too haven't set autologin. – DK Bose Aug 27 '15 at 15:33
  • Also, is this a pure Lubuntu install? – DK Bose Aug 27 '15 at 15:34
  • Yes, it's a pure Lubuntu install from scratch. The "unlock the keyring" screen does not appear at login, but rather when I start an encrypted Deja-dup backup. – Organic Marble Aug 27 '15 at 16:14
  • Deja-dup isn't part of default Lubuntu. And if the unlock screen doesn't appear at login, you could edit your question. As it stands, it appears that the keyring unlock appears at login (as per the first sentence). – DK Bose Aug 27 '15 at 17:37
  • I am not sure what you are referring to - my goal is to unlock the keyring at login automatically. – Organic Marble Aug 27 '15 at 17:40
10

Make sure, libpam-gnome-keyring is installed on your system

sudo apt-get install libpam-gnome-keyring

Also you should have a login keyring in ~/.gnome2/keyrings/login.keyring

---Edited by OP to cover another situation.

I installed LXDE on my Ubuntu 14.04 system and started getting this keyring popup again when I took a backup. libpam-gnome-keyring was already installed on this system! To fix it, I had to add a line of text to two files, like this:

To /etc/pam.d/passwd add:

password optional pam_gnome_keyring.so

And to /etc/pam.d/login add:

session    optional     pam_gnome_keyring.so        auto_start

This will unlock the keyring on login when I log in through LXDE.

  • Verified to work on my 64-bit Lubuntu 14.04 install. Thanks! – Organic Marble Aug 28 '15 at 3:06
  • 1
    I've been trying to fix this issue from 14.04 and thanks to this answer I've finally fixed it on 16.04. It was driving me crazy! – jonthalpy May 28 '16 at 23:04
  • On my lubuntu 16.04 ~/.gnome2/keyrings/login.keyring does not exists. I created it, empty, but above solution does not work. Every time Skype Alpha requires to enter username and password and after that Keyring "Default" dialogue appears. – Vladimir Vukanac Sep 12 '16 at 7:27
  • 2
    After this: "Renaming the folder /home/username/.local/share/keyrings to /home/username/.local/share/keyrings.old and a restart solved my problem. " source: Mint Community, Skype Alpha on Lubuntu 16.04 did not ask for Keyring. – Vladimir Vukanac Sep 12 '16 at 7:43
  • it's simpler to just install seahorse – caub Nov 2 '17 at 7:15

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.