Pages

Sunday, February 5, 2012

Change Login Keyring in Ubuntu

Sometimes if one changes the password from the terminal in the way explained in the previous post, the login keyring may change.
This would result in some problem within the OS,where it would ask for the login keyring and declare it as incorrect.
To change the login keyring follow these steps:
1) Go to the terminal and type the following two commands:
# killall -9 gnome-keyring-daemon
$ rm -fr ~/.gnome2/keyrings
2) After this is done, go to Preferences>Passwords and Encryption keys
3) Click on File->New. Then select Login Keyring
4) Now enter your present login password.


--Yogiraj

Ubuntu login after you forgot the password

I recently started working in Ubuntu. Being familiar with windows I used to rarely start Ubuntu.
When I did after a long time I realized that I had forgot my password.
This was a common problem with lots of other people around me. They had to re-install Ubuntu as their only resort.
But here I would share the easiest way of changing the password.
Steps:
1) When in the GRUB bootloader, select the "recovery mode"
2) Then in the next screen select "drop to root shell mode"
3) Now if you do not know the username for which you want to change the password, then type "ls /home". This would show the name of all the user account.
4) After you know the username, type passwd <username>, example passwd yogiraj, here yogi is the username.
5) The shell would ask for the new password.
6) After the password has changed, type exit and you would come back to the shell prompt.

Now to start the GUI, type startx.

--Yogiraj