Forgot your Ubuntu password? Don’t worry, this is a common issue, and there are various solutions available. In this guide, you will learn the effective methods to reset your Ubuntu password step by step.
Ubuntu allows you to resolve system issues using recovery mode. You can use this mode to reset your password:
mount -o rw,remount /
passwd username
reboot
If you have an Ubuntu installation USB, this method works quite well:
sudo fdisk -l
sudo mount /dev/sdXY /mnt
sudo chroot /mnt
exit
You can also reset your password from the Grub menu. Here are the steps:
init=/bin/bash
mount -o remount,rw /
Accessing the root user is an effective way to reset the password:
It is possible to reset the password remotely via SSH, but SSH access must have been previously enabled:
sudo passwd username