Hello friends , I post this article that help you in reset in password for Ubuntu or may use when u do not know the password of your friend's UBUNTU MACHINE .
I search on net and then write in a very abstract manner so that u can easily reset your password. S0 if you have forget your username or password then don’t worry ----- just follow these steps .
Use these steps n fell happy :-) :)
Reset password using RECOVERY MODE::
We can reset password using recovery mode also .
For this first comes in GRUB menu as i mention earlier .
Now Login with your password.
I search on net and then write in a very abstract manner so that u can easily reset your password. S0 if you have forget your username or password then don’t worry ----- just follow these steps .
Use these steps n fell happy :-) :)
- first step is Restart your Machine.Our main moto behind restart is to get grub menu.
- For getting grub menu ..just HOLD right Shift Button until you will get not “GRUB Loading“ window. note hold right shift key only.
- Then from Kernel and Recovery mode , select Kernel
- Now if every thing is going good then we have to edit the entry for that Press e key .
- Then you get a long text and search for the line that starting with the word 'linux'
- When you get that word then write the init=/bin/bash to the end of the linux line. write carefully .
- Now our next step is to boot with our changes so for boot press F10 or CTRl X.
- Now our next task is to mount file system into R/W that is read and write so that we can make changes to the privileges or in laymen language to reset password.
- For this use this command --->> mount -o remount,rw /
- Now it time to reset password for that to have to execute this command that is --->> passwd .
- If u are the root user then use this command -->> passwd
- Other wise use this -->>User passwd (user-name)
- Now its time to enjoy :-) :-) restart your machine and enter the password that you set !!
Reset password using RECOVERY MODE::
We can reset password using recovery mode also .
For this first comes in GRUB menu as i mention earlier .
- First restart and press RIGHT SHIFT KEY .
- Then select recovery mode.
- After recovery mode wait for boot -up process.
- Select root from the pop up window.
- Then again use command --> mount -o remount,rw /
- Then use command --> passwd <user name>
- To find user name use command --> ls/ after mount command.
- Then press ENTER and type EXIT.
- After this press resume on the coming window.
Now Login with your password.