I don't remember my password for login to computer.

Asked by Hasantha Sumudupriya on 2010-12-07

I have forgotten my password for login to my computer and now I can't login. Please tell me a way to login to my computer! PLEASE!!!!!

Question information

Gujarati Edit question
Ubuntu sudo Edit question
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Last query:
Last reply:
François Tissandier (baloo) said : #1

It should not be complicated to fix this.
The easiest solution:

boot the computer, hold the SHIFT key to get the menu. Choose the recovery session.
It will bring you to a terminal.
In this terminal, just type:
Enter your new password, twice. It will NOT display any character! So you have to be careful while typing.

Type "reboot now"

Then you should be able to use this new password !

Can you say how to recover my password, if I am still logged into my computer? PLEASE!!!!!

François Tissandier (baloo) said : #3

You cannot find it, even if you are still logged in. Simply because it's not saved in clear format, it's encrypted !

You have to reboot, and change it I think.

Your method didn't worked properly. PLEASE, Can you simplify your answer or tell me another way to recover my password? PLEASE!!!!!

François Tissandier (baloo) said : #5

This method works. And if you forgot your password, this is probably the best solution.
You cannot really recover it, just change it.

I cannot make it simpler, just give more details if you tell me which part you don't understand.

Or if you really really want to recover your password, you can consider password breaking algorythm, but it will be more complicated and much longer.

Can you mention the phrases that should type in the terminal with quotation marks and the real places that I should type them step by step. PLEASE!!

François Tissandier (baloo) said : #7

In the terminal

check what is your login first:
"ls /home"
It should display the accounts you have on your computer. Find yours.

then type
"passwd YOURLOGIN"
then type your new password twice

type "reboot now"

After finding my account, should I type it's name?

François Tissandier (baloo) said : #9

if your account is called "johndoe", you should type
"passwd johndoe"

When I Typed "Is /home", the reply was, "Password".

Sorry! I missed something. When I typed "Is /home", the reply was, "Password:".

François Tissandier (baloo) said : #12

Mmmm not normal. Did you boot in recovery mode?

I don't remember user and password what i can do

You can try this: http://www.psychocats.net/ubuntu/resetpassword


To discover your user and restore (change) the password you can:

Start the pc the when you see the GRUB row...

Press ESC.

Press "e" for edit.

Highlight the line that begins kernel ………, and press "e"

Go to the very end of the line, add rw init=/bin/bash

press enter, then press "b" to boot your system.

Your system will boot up to a passwordless root shell.

Type in grep -i 1000 /etc/passwd

The system must show a row with your user name at the start of the row
for example:

Here my user is danilo

Then to change your user password type in:

passwd username


passwd -d username

change username with your real user

Set your password.

Type in:



reboot -f

Hope this helps

Thank You Very, Very Much macobra. I know that you can't explain every thing to us letter by letter in this way. So, the best thing you can do to us is showing us the path for Documentations and Forums like the above link you gave to me (http://www.psychocats.net/ubuntu/resetpassword) .

Thanks marcobra (Marco Braida), that solved my question.