Why am I always asked to unlock my login keyring at startup?

13

4

I'm using the xfce window manager and reboot and shutdown seem to work normally.

However, whenever I log back in, I always see the following:

enter image description here

Why do I always see this message? I would expect that my screen would be blank or at least be locked up, but nothing like that happens. What's the point of entering my password again?

tony_sid

Posted 2012-01-23T13:48:12.757

Reputation: 11 651

Answers

4

Your keyring is separate from your login credentials. In Ubuntu (which I'm guessing you're using), there has always been confusion on this issue. If you make your log in password the same as your key ring password, it should fix the issue.

skub

Posted 2012-01-23T13:48:12.757

Reputation: 2 716

My log in password and key ring password is the same I think, because I just enter in my login password to unlock the key ring. – tony_sid – 2012-01-23T16:35:41.437

Do you have automatic log in turned on? (Where it logs you in to desktop, but doesn't ask for a password). – skub – 2012-01-23T16:48:52.683

2

This could be a PAM problem.

Authentication providers/packages need to change the PAM configuration files to plug themselves into the authentication process. However, some of them give no consideration to other PAM plug-ins and prematurely terminate the pipeline disabling your keyring's PAM module.

Thus your keyring never got your password when you log-in so it must ask you again.

You may want to check the /etc/pam.d/ files and manually fix them. The error is probably in the common-* files. Look for the line that uses the rogue "sufficient" keyword in the second column. If you want to manually fix this, you can follow the instructions in man pam.d.

billc.cn

Posted 2012-01-23T13:48:12.757

Reputation: 6 821

1

Normally keyring gets unlocked when you enter your password while logging in. Then gnome-keyring-daemon process starts and manages it.

The gnome-keyring-daemon process is a user process (not a system service), so when you log out you kill all your processes (including the gnome-keyring-daemon). When you log in you start a new gnome-keyring-daemon process which needs your password to open your keyring.

If you have "autologin" then this is normal. Keyring cannot be unlocked because you have not entered the password. That's it.

Michał Šrajer

Posted 2012-01-23T13:48:12.757

Reputation: 2 495

I don't enter my password to login. It skips the login screen and goes to my desktop. – tony_sid – 2012-01-23T16:36:26.023

and that is the root cause. See past paragraph of the answer. – Michał Šrajer – 2012-01-23T22:24:25.620

-1

Both of these links have a bugfix for this issue, it sets the unlock for login to xfce aswell:

unlock gnome keyring on ArchLinux + Xfce/unlock_gnome_keyring_on_archlinux_xfce/

GNOME keyring often fails to unlock in XFCE

There are several /etc/xdg/autostart/gnome-keyring-*.desktop files. A redditor had success adding XFCE to the "OnlyShowIn" entries in those files:

OnlyShowIn=GNOME;Unity;XFCE;

Wizard

Posted 2012-01-23T13:48:12.757

Reputation: 1

1You should include the actual fix in the answer, or at least a summary of that. – John O – 2013-02-13T20:41:53.017

-2

I am not an experience Linux user, however I think I have figured out why this issue is presented.
When you upgrade to a newer version of (Mint) and you have more than one user, you need to log in all of the accounts at least once.
On the reminder on the far fight of the screen, you are notified if you want to install any updates.
When you first log in, the update link requires you to answer:
if you want to just keep my computer safe,
if you want to view the offered changes
or you want to just update.
This process has to be answered by all of the users you have created, select the update icon and answer how to apply the updates.
All should be okay...(at least it works for me)

jeaserve

Posted 2012-01-23T13:48:12.757

Reputation: 1

1The OP is using XCFE, and doesn't mention using Mint. – xenoid – 2017-08-29T07:06:00.380

You say, “you need to log in all of the accounts at least once.” The question says, “whenever I log back in, I always see the following” (emphasis added). Exactly what part of what you said is an answer to this question? – Scott – 2017-08-29T07:33:32.737