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

Asked by Hasantha Sumudupriya

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

Language:
Gujarati Edit question
Status:
Solved
For:
Ubuntu sudo Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
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:
passwd YOURLOGIN
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 !

Revision history for this message
Hasantha Sumudupriya (hsumudupriya-deactivatedaccount) said :
#2

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

Revision history for this message
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.

Revision history for this message
Hasantha Sumudupriya (hsumudupriya-deactivatedaccount) said :
#4

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

Revision history for this message
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.

Revision history for this message
Hasantha Sumudupriya (hsumudupriya-deactivatedaccount) said :
#6

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!!

Revision history for this message
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"

Revision history for this message
Hasantha Sumudupriya (hsumudupriya-deactivatedaccount) said :
#8

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

Revision history for this message
François Tissandier (baloo) said :
#9

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

Revision history for this message
Hasantha Sumudupriya (hsumudupriya-deactivatedaccount) said :
#10

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

Revision history for this message
Hasantha Sumudupriya (hsumudupriya-deactivatedaccount) said :
#11

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

Revision history for this message
François Tissandier (baloo) said :
#12

Mmmm not normal. Did you boot in recovery mode?

Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#13

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

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

or

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:
danilo:x:1000:1000:ubuntu,,,:/home/danilo:/bin/bash

Here my user is danilo

Then to change your user password type in:

passwd username

or

passwd -d username

change username with your real user

Set your password.

Type in:

reboot

or

reboot -f

Hope this helps

Revision history for this message
Hasantha Sumudupriya (hsumudupriya-deactivatedaccount) said :
#14

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) .

Revision history for this message
Hasantha Sumudupriya (hsumudupriya-deactivatedaccount) said :
#15

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