You had set up root password in Ubuntu but cannot remember it now? Here’s how to reset forgotten root password in Ubuntu and hopefully in other Debian-based distros.
It’s only human to forget passwords, especially if you are not using it frequently.
It happens with Ubuntu, Linux, or any other operating system you use. If you don’t use it frequently, you are likely to forget the password.
I have written about resetting forgotten Ubuntu passwords in the past. It works flawlessly unless you have a root password set.
In this tutorial, I’ll show you how to set a new root password if you forget the original one.
First things, first: I am talking about the case where you have explicitly set a root password.
When you install Ubuntu, you create a user account. This user account has admin access to install and remove software and do all the other administrative tasks with elevated access thanks to the sudo mechanism.
By default, the root account doesn’t have a password. You use sudo with your main/admin account to do things as root. However, some people explicitly set a root password.
