This brief tutorial shows students and new users how to reset Ubuntu forgotten user password.
We’re all humans and we do tend to forget once in a while. The one thing you don’t want to forget is your computer password. Ubuntu is no different.
When you do forget your password, whether in Ubuntu or another systems, your primary goal will be to regain access to your system. In some cases, this process can be very tedious.
This brief tutorial is going to show you how to do that in Ubuntu. It is going to be quick and easy, and will come in handy when you find yourself in this situation.
There are very few methods one can use to reset forgotten passwords in Ubuntu systems. One of the primary ways to reset your password in Ubuntu is by using Ubuntu Recovery Mode.
Resetting Password via Recovery Mode
To reset your password using Ubuntu recovery mode, power on your Ubuntu machine and wait a few seconds until you see Ubuntu boot menu.
At the boot menu, select Advanced options for Ubuntu
Next, select Ubuntu with Linux (recovery mode) to boot into. Select the latest Linux kernel.
On the next screen, scroll down the list and select root (drop into root shell prompt)
When you’re there, run the commands below to remount the root directory.
mount -rw -o remount /
The above commands remount the root directory with read and write rights. In this shell, you can run limited sets of commands and one is the passwd command.
To change your password, run the command below:
sudo password username
Replace username with your account name or your username. If you have the root password enabled, you can also reset the root password here.
Remember, to add a level of security, the Recovery mode can only be accessed locally and not from a remote location.
So you can only reset your password in the recovery mode when you’re setting right in front of the computer.
After resetting your password, restart your machine and try again.. This time the new password should work and allow you to logon to Ubuntu machine.
This is one of the many ways to reset one passwords in Ubuntu
Enjoy! And please come back soon.
You may also like the post below: