How to remove Gnome Keyring password in Ubuntu 10.04

Disclaimer: This solution apparently isn’t working to everyone. Try this on your own risk.

Gnome Keyring is a small utility to authorize applications before opening them. But sometimes it feels really annoying when it starts to prompt to enter keyring password every time when you open some application. So this small tutorial teaches you eliminate the need of entering keyring password over and over again.

This method will work both for keyring with a password being set at some point of time by you and as well as default password being set without your knowledge. Follow the steps:

Step 1. If your keyring password is different from your login password, do this before you proceed to step 2, else skip this step.

a) Open your terminal and from navigate to:
cd .gnome2/keyrings/

b) Make sure there is a file called “default.keyring” in the directory by typing:
ls -l

c) Now remove the file by typing the below command:
rm default.keyring

Step 2: Open your terminal and follow these steps:

- Install libpam-keyring:
sudo apt-get install libpam-keyring

- Now to modify gdm login:
sudo gedit /etc/pam.d/gdm

- Now it will open an file, add this line at the end:
@include common-pamkeyring

That’s it. Now restart your Ubuntu and open any app that used to prompt you to enter keyring password. If you had done the above steps properly, it will now prompt you to set a new password. If you want to enter a new password, better set the same password as of your login password or just leave it empty if you totally want to get rid of keyring.

13 thoughts on “How to remove Gnome Keyring password in Ubuntu 10.04

  1. hello Santhosh

    it doesn`t work for me. when i leave the password empty it keeps asking me for my mail passwords and keeps making new default.keyrings

  2. If that’s the case, use a short password. But I still remember that it prompts some message when you choose empty password. It lets you disable creating new keyrings.

  3. If you follow this guide then you will lock yourself out of your computer…
    If you skip the modification of GDM you should be ok.

  4. Something wrong with those steps!

    After following all the steps, I was unable to login to my Ubuntu 10.04!
    To resolve this :
    at login screen, ctrl + alt + F1 (and enter root shell)
    sudo gedit /etc/pam.d/gdm (or sudo nano /etc/pam.d/gdm)
    and delete this line “@include common-pamkeyring”
    save it then sudo reboot

  5. I run into the same trap. I just started to press all the keys on my keyboard and finally I got safe mode login screen. there I login and removed the last entry from the file that they suggested. The rebooted and the login screen was OK.

  6. what for crap is this. did ths work for anyone ???
    got the same problem as the others.. i was unable to login at the login screen..
    could fix it like mentioned above.. find a wat to get in that modified file and delete the line you added..

  7. i have no passwords, removed all passwords…
    and it still doesn’t work.

    Simply, i want no passwords or bullshit… not tech talk or people trying to convince me why root login in unsafe, etc etc…

    no wonder linux is still not as popular as windows/mac!

    • I laugh at this because ALL os’s use this, Even windows and MAC – make uses the same system with root and access levels – Windows has UAC. It all the same.

      its people like you that shouldnt have root and why Linux gets a bad name. Linux let you break your machine if you are stupid with it.


  8. Works for me, This is what i did:

    cd .gnome2/keyrings/
    mkdir Backup
    mv login.keyring Backup

    re-login and not more annoying keyring prompt.

  9. The same trap, Please don’t try above guide otherwise you will lock yourself out of your computer, I hardly managed to delete that damn @include common-pamkeyring

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>