Tuesday, November 22, 2011

Err: Unlock Login Keyring in Ubuntu 11.10 problem

Error:
Unlock login keyring password.

Reason:
Most of the Ubuntu users could faced this problem. This is occurred due to the following reasons.

  1. While using of autologin facility
  2. Frequent password change
Keyrnig password is the authentication key to execute what ever thing is done with mouse in Gnome screen. Each thing what we have done in GUI is converted into system commands and then shell only executes that and returns the result to Gnome.

Du to any one of the mentioned above reasons, the keyring password got collapsed and it asks us at every boot for the password that is just previous to the current logged in password we have changed (ie. last changed password.).

Solution:
This can be solved by following two ways. 
  1. Passing last changed password
    By providing last changed password for once. Then it will be automatically changed to current password we are using.
  2. By setting empty password to the keyring.

    This can be done by changing the password to empty using 'Passwords and Encryption Keys' tool that exist in Ubuntu by default. 
    1. To get this window in Ubuntu 11.10, click on 'Activities' and then type 'password'. The result window shows that application on that and click on that. 
    2. Right click the 'Passwords : login' and select 'Change password'.
    3. Give the current or last changed password in the column 'old password' and leave the new and confirm password as empty.
    4. Save it.

Note: This is tested under Ubuntu 11.10

4 comments:

  1. Hi guys,
    This is Manikanta, I am totally new to the linux and recently installed ubuntu11.10, As per the above article, i tried to give old password of my computer but i forgot my oldpassword then how can i rectify this problem.

    Thanks and Regards,
    G.Manikanta

    ReplyDelete
  2. In Ubuntu, Key-Ring passwords are used for many more purposes. One of that is Login key-ring.

    Key-ring related files are normally resides under the directory called '/home/{username}/.gnome2/keyrings'. Here in my case, '/home/senthil/.gnome2/keyrings'.

    Deleting of those files are an another way to get rid of it. For safer side, move that files to some temporary directory instead of deleting. To do so,

    cd /home/senthil/.gnome2/keyrings
    mkdir bckup
    mv *.* bckup/

    This is for reset all the key-rings used in your machine.

    To reset only the Login key-ring, just move the login.keyring to temp directory like,

    cd /home/senthil/.gnome2/keyrings
    mkdir bckup
    mv login.* bckup/

    and restart the computer once.

    ReplyDelete
  3. This can be done by changing the password to empty using 'Passwords and Encryption Keys' tool that exist in Ubuntu by default.
    To get this window in Ubuntu 11.10, click on 'Activities' and then type 'password'. The result window shows that application on that and click on that.
    Right click the 'Passwords : login' and select 'Change password'.
    Give the current or last changed password in the column 'old password' and leave the new and confirm password as empty.
    Save it.

    First stumbling block is finding "Activities" in Ubuntu 11.10. Mine doesn't seem to have it despite searching.
    Where is it?

    ReplyDelete
  4. The required application is "Passwords and Encryption Keys" actually. This can be found at under the menu path called 'System->Preferences' till Ubuntu 11.04.
    In Ubuntu 11.10, unity theme has replaced the existing Ubuntu classic theme. Here we don't have any visible menus like 'System and Preferences' and all. So we need to use some other ways to reach the application. They are,

    1. Press 'Left Windows key' (Mod4 key) from keyboard otherwise click on "Activities" menu that is displayed on left top corner to get the search window. Then type 'password' and it will retrieve the required application needed for us and follow the procedure.
    2. In terminal, run 'seahorse' command to get the same.

    ReplyDelete