How to get rid of “Enter password to unlock your login keyring” prompt in Ubuntu

Ubuntu uses Centralized password management tool called Seahorse. This tool is a front end GUI to GNOME’s keyring management system. In simple this tool stores all passwords with a master password which is normally same as login password. This tool can manage your PGP keys, SSH Keys and pass phrases we use in different applications in Ubuntu.

You can find the Seahorse tool in Ubuntu main menu -> Applications -> Accessories -> Passwords and Encryption Keys.

In practical I face a problem once I change my login password. You can change password either through System -> Preference -> About me -> Change Password… or you can use shell command passwd. I use to change my password in either of these ways. In both the cases, I encounter Enter password to unlock your login keyring prompt dialog box during my first login after changing password.

SeaHorse uses your login password as master password to unlock its pass phrase storage box. When you change the password, it is NOT updated to SeaHorse (at least, this is what I believe). So the new login password fails to unlock Seahorse storage box.

The simple command line way to do it is to remove the ~/.gnome2/keyrings/login.keyring.

In GUI way:

Step-1: Ubuntu main menu -> Applications -> Accessories -> Passwords and Encryption Keys

Step-2: In Passwords tab, right click Passwords: login. In the menu select Change Password… option.

Step-3: Enter your old login password and new login passwords.

You are done. Next time, it won’t ask for any login password for GNOME keyring. If Ubuntu integrate this change while changing the user password, it would be better user experience.

Share this post


  1. Hi, i read your blog occasionally and i own a similar one and i was just curious if you get a lot of spam comments? If so how do you prevent it, any plugin or anything you can advise? I get so much lately it’s driving me crazy so any assistance is very much appreciated.

  2. My solution to this problem was unique and original. YAY!!! After trying everyone elses solution and just making the gnome desktop worse, I finally discovered that it was vino-server that was loading the gnome-keyring password prompt thing. Not a function of the gnome-keyring itself. So I went to and got the source code to vino and compiled it with the ./configure –disable-gnome-keyring switch. I hoped I spelled all that right. a ./configure –help | list will list the correct switch to use. But it says –enable and not –disable but disable works. But I had to install the gnome-keyring-1 development libraries anyway even though it didn’t use them. So anyways after I compiled vino and installed it, oh yeah, even though I did a make install the vino-server binary didn’t get installed. A fight to the bitter end. So I had to manually copy that out of the source directory and I choose to put it into /usr/local/lib dir and make a symbolic link from the old vino-server, locate vino-server will tell ya where it is, something like /usr/lib/vino I think, to the new vino-sever. Rebooted. Had to turn remote desktop on again, and… and…

    IT WORKED!!! No gnome-keyring password prompt when I log in with vnc to my :0 desktop.

  3. I got a old password doesn’t match. Then I remembered that JUL8 sets the default password to owner…. Supplied that and it let me change the password

  4. I am also driven mad by this “Enter password to unlock your login keyring” feature. I do know the password for that but don’t want to type it in every 5 minutes. But I’m none the wiser after reading all these different answers, several times! Can anyone give me a simple solution that doesn’t involve ‘command lines’ (unless you tell me WHERE to type these things!)., I don’t know what a keyring is and just want rid of it. If there are several levels called ‘login’ or ‘keyring’ or ‘master’ then it’s no wonder I’m confused and don’t know which is which. But which of the above advice or solutions applies to my situation?

  5. What I did was to remove the old keystore with:
    killall -9 gnome-keyring-daemon
    rm -fr ~/.gnome2/keyrings

    and then on the first prompt to enter a new keyring password, i.e. when starting empathy or NetworkManager, I simply press , a warning appears asking ‘Use insecure storage?’, where I press one more time. From now on, you won’t be asked about passwords anymore.
    And yes, this is insecure; if you are paranoid, don’t do it.

  6. The reason I changed my password was because my password (or at least what I thought was my password) wasn’t working. Then I encountered this keyring problem. The only solution I found was to choose “Delete” rather than “Change Password” and then I was able to proceed with my work because the system prompted me to create a new keyring when I reached the point where it was required.

  7. The GUI way worked for me on Fedora 14 with VNC. The Choose Password prompt came up twice but it worked – thanks!

  8. Deleting the login.keyring file from ~/.gnome2/keyrings does work, but I chose to do it differently in case I want to re-enable the password later. I followed the steps shown above for the “GUI version,” but I chose to leave the New Password and Confirm boxes blank. Enter the password you use to unlock the keyring in Old Password, and choose OK without entering anything into Password and Confirm. Accept the warning dialog, and reboot to test it. It should work. If you want to re-enable the password later, do the same thing, but enter a password into the Password and Confirm boxes. Keep in mind that a “blank” password is the same as no password at all (as far as security goes)!

  9. Try this:
    1) Go to System->Preferences->Passwords and Encryption Keys
    2) To the left of Passwords: Login there will be an arrow click it.
    3) You will find a lot of random things-> Click the first “Desktop Couch user authentication”
    4) A new window should pop up with three tabs; key, details, applications. -> On the first tab “Key” at the bottom is the word “Password” click the arrows to the left of it.
    5) You will get a lot of dots check the box next to show password, then copy that bunch of letters/numbers.
    6) Paste that bunch of numbers in “Enter Password to Unlock Your Login Keyring”
    7) Another pop-up
    8) In that pop-up type your current password for old password and your current password for new password and your current password for confirm
    9) Worked for me and I figured this out. ( I am 13)

    Good luck,
    Post any comments I will try to help!

  10. what is the old password ? is it the password that i use to log in ? cause i try key in the old password (my log in password) and key in the new password. but it didnt work.

  11. I have the same problem as Mario. Even after carrying out the steps mentioned above, the keyring message and the enter authentication messages keep popping up.

  12. I followed the above procedures, but I still get the same message to unlock the keyring.I am using the Ubuntu 10.10 (Maverick Meerkat).

  13. Thank you. Entering in two passwords was a real annoyance. More because I didn’t know why than the actual inconvenience. Both problems solved.

Leave a Reply

Your email address will not be published. Required fields are marked *