Sunday, September 24, 2023
 Popular · Latest · Hot · Upcoming
rated 0 times [  225] [ 0]  / answers: 1 / hits: 417707  / 1 Year ago, sat, april 30, 2022, 6:33:58

I am on Ubuntu and I have forgotten the password for my Gnome Keyring (yes, stupid me, I know). Any way I can get it back? I have already looked at this link, but it says it's not possible if my home directory is encrypted and unfortunately my home directory is encrypted.

More From » 12.04


Resetting everything (delete all passwords and start new keyring):

rm ~/.local/share/keyrings/login.keyring

Then, log out and log back in. Ubuntu will automatically create a new login.keyring for you.


Navigate to Places > Home. Press Ctrl + H to view "hidden files". Navigate to .local > share > keyrings and delete login.keyring

Using the same keyring (resetting keyring password but keeping old passwords in keyring):

  1. Make a backup of the keyring

     cd ~/.local/share/keyrings/
    cp login.keyring login.keyring.backup

and after that delete login.keyring file

    rm ~/.local/share/keyrings/login.keyring

  1. Create a new keyring file from Gnome Keyring with the name login

  2. Replace the new keyring file with the backup of the old keyring file

     cd ~/.local/share/keyrings/
    mv login.keyring.backup login.keyring

Note: before Ubuntu 12.10 the path to the keyrings folder was ~/.gnome2/keyrings/ instead of ~/.local/share/keyrings/.

[#43126] Sunday, May 1, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 391
Total Questions: 137
Total Answers: 106

Location: Mexico
Member since Tue, Aug 11, 2020
3 Years ago
fishutt questions
Thu, Nov 17, 22, 07:36, 11 Months ago
Mon, Mar 28, 22, 15:09, 2 Years ago
Wed, Feb 8, 23, 06:50, 8 Months ago
Thu, Aug 25, 22, 13:26, 1 Year ago
Fri, Apr 22, 22, 00:08, 1 Year ago