Home > GNOME > Clearing or Resetting the Gnome-Keyring

Clearing or Resetting the Gnome-Keyring

UPDATE: Reset GNOME Keyring Password on Ubuntu

I ran into the weirdest problem the other day.  My gnome-keyring prompted me for a keyring password to authorize the use of a key, but didn’t want to take any of my passphases.  I tried any passphrase I could think of to no use.  My gnome-keyring, for whatever reason, was basically useless at this point.

I did a little bit of digging and found a solution here on the Ubuntu Forums.  Let me outline the quick fix if you ever run into the same problem.

Command Line Version

rm ~/.gnome2/keyrings/default.keyring

GUI Version

Navigate to Places > Home.  Press ctrl-h for "hidden files".  Navigate to .gnome2 > keyrings.  Delete default.keyring file.

At this point your gnome-keyring should be toast and you can reset the password on next use.  If anyone has any other ways around resetting the password without destroying the keyring I’m all ears.

If this article has been helpful, please consider linking to it.

Categories: GNOME Tags: , , ,

Related Posts

  1. July 6th, 2007 at 14:54 | #1

    That wouldn’t be that secure would it?

  2. erik
    July 6th, 2007 at 15:48 | #2

    Shouldn’t that be doable with gnome-keyring-manager ?

  3. July 6th, 2007 at 16:18 | #3

    alex – this is a secure solution because it also wipes any saved data in the gnome-keyring. ie; it doesn’t allow anyone access to the contents of the keyring, it destroys it and anything saved within.

    erik – the gnome-keyring-manager will ask for your current password to change the password, and in this case I don’t have it.

  4. erik
    July 7th, 2007 at 04:12 | #4

    Yes, change. But can’t it delete the keyrings and recreate new empty ones? I have been too afraid to actually try that but the right click context menu suggests it is possible.

  5. July 8th, 2007 at 06:50 | #5

    Ubuntu Tutorials:
    My post was a comment on this part of the post:
    “any other ways around resetting the password without destroying the keyring”

    which would be _not_ secure because the data stays intact. Hence the use of subjunctive.

  6. corba the geek
    September 5th, 2007 at 19:56 | #6

    I ran into the same problem. But I kept trying different passwords that I might have used. Then I tried what I thought was my most recent password **with the CAPS LOCK on** and, son of a b@#$h, it worked. I **really** don’t think I had the accursed caps lock key on at the time.

  7. Edgar
    October 9th, 2007 at 09:10 | #7

    I deleted the default keyring in the keyring manager. Is it possible to recreate it? Thanks for the info.

    Right now I’m only able to use my wired connection, my wireless is not functional after my error… (by the way I’m using network manager and wap wireless security)

  8. November 12th, 2008 at 15:59 | #8

    Thanks, the worked a treat with my myth-frontend box. Was getting sick of unlocking the default keyring for wireless after booting :)

  9. Phil
    January 1st, 2009 at 18:45 | #10

    Thanks for this posting. It worked for me. I’m really new to Ubuntu, let alone Linux, and I’m just stumbling around trying to get familiar. I

  10. cmnorton
    January 17th, 2009 at 06:45 | #11

    I found a new wrinkle to this problem. I did not have a default.keyring. I had to create it.

  11. shanmuganandh
    April 6th, 2009 at 05:42 | #12

    Thanks

  12. NJC
    May 1st, 2009 at 05:10 | #13

    In Ubuntu 9.04 it is called login.keyring although deleting did not help my problem.

  13. David
    June 18th, 2009 at 18:35 | #14

    I fixed this issue by not deleting my keyring (login.keyring) on Ubuntu 9.10….but by going to the Menu

    Accessories/Passwords and Encryption Keys

    Then go to the last tab (Passwords)

    Then right click on the keyring and you get the option to change password!

    Hope this is of help.

  14. Themis
    June 19th, 2009 at 18:47 | #15

    I do think that this is the best solution I have found so far.

  15. June 29th, 2009 at 08:18 | #16

    Changing the password didn't worked for me, but removing the old key (login) and creating a new one with the same name did the trick. Thanks for help :)

    Offtopic: IMO it's not very intuitive that "Passwords and Encryption keys" lives in "Accessories". It should be in System > Preferences

  16. Phil
    August 5th, 2009 at 12:02 | #17

    Thank you very much indeed for this most informative post. I was having trouble with the keyring popping up and asking for my password all the time, and this seems to have solved this problem.

    Thanks

  17. Aaman
    August 16th, 2009 at 04:42 | #18

    Thanks for this – this really helped

  18. September 23rd, 2009 at 15:56 | #19

    Amen!

  19. Richard
    September 30th, 2009 at 03:22 | #20

    Hi, David's advice pointed the way to my solution. I'm using Ubuntu 8:10, which has a slightly different layout to 9.10

    Accessories/Passwords and Encryption Keys

    Then go to the last tab (Passwords)

    At this point select [Edit][Preferences], where you will see the login password. Highlight this and click [Change Unlock Password]

    Fingers crossed… and it worked (thanks David)

  20. Piotr
    October 6th, 2009 at 10:38 | #21

    This tip does not work with Karmic:
    gdm complains during login after selecting the user.

  21. trench
    November 1st, 2009 at 05:26 | #22

    It works in Karmic Koala just fine.

    If you've forgotten your Gnome Default Keyring password you need to open "Passwords and Encryption Keys" (Applications>Accessories>Passwords and Encryption Keys), right click "login.keyring", delete it.

    Or, in a terminal, "rm ~/.gnome2/keyrings/login.keyring" without quotes.

    After doing this, open a program that uses the default keyring. You'll be prompted to create a new password. (Also note there's a checkbox that says "unlock default keyring at login" – very useful, I recommend checking it.) Once you've created the new password, a new login.keyring is create.

    Voila.

  22. Strike
    November 5th, 2009 at 04:02 | #23

    Worked in Kubuntu 9.10.

  23. RamL
    November 7th, 2009 at 17:46 | #24

    This worked for me on 9.04. Right click on Passwords, Select Change Password and you are done!

  24. Kurian Mathew
    November 18th, 2009 at 06:10 | #25

    Dear Sir,
    I too have a Gnome keyring password problem.

    I tried to solved it as suggested by you. But, when I navigate to Places > Home and then press ctrl-h for "hidden files" to reach .gnome2 > keyrings, I find inside the folder a file called login.keyring, not default.keyring file. What should I do? Delete login.keyring? Will it create serious problems?

    By the way, I have Karmic Koala installed in my laptop. I had changed my original password into a new one few days after installation.
    Can you please help me?
    Kurian Mathew

  25. Whitney
    January 23rd, 2010 at 09:19 | #26

    I also have the file login.keyring instead of default.keyring (running eeebuntu 3.0 on a 2 Gb eeePC Surf). I deleted login.keyring & everything works now. I think they just renamed the file.

    Thanks for the tip!

  26. February 22nd, 2010 at 22:06 | #27

    If you’ve forgotten your password, then, well delete the keyring and start over as suggested…

    However, if you only want to change the keyring password (and keep the keyring), use Seahorse.

    sudo apt-get install seahorse

    then run it. Right click on the key folder and change the password

  27. BojlEr
    March 10th, 2010 at 14:08 | #28

    Thanks, i’m using Kubuntu but one day the Gnome keyring ask me for setting up new password and then when i try to make svn up, ask me for this password. I don’t know why only in this case but with this tip it’s gone.

  28. Tony
    April 26th, 2010 at 02:34 | #29

    I have a dell mini with Ubunto and gnome on it which I don’t understand that well. I set up the computer without a password as far as I knew but whenever I want to do an admin task it asks for one. I have tried all the passwords I know but no joy any suggesttions?

  29. Javier Garcìa Prieto
    May 18th, 2010 at 10:52 | #30

    I have to change the keyring password because it doesent match wit my user new password , then in apps / accesories / keyring app you can change it after unblock your passwords in the users login window.
    Right click over the item.

    Hope this can be helpfull

  30. eyebug
    July 26th, 2010 at 08:42 | #31

    i have same problem when i change my old password to a new one and then when i login again error pops up “The application ‘NetworkManager Applet’ (/usr/bin/nm-applet) wants access to the default keyring, but it is locked.”

    I deleted the default keyring and it worked!…..thanks for sharing

  31. Ami
  1. May 24th, 2010 at 05:55 | #1