Reset the password for ROOT or any user in Linux MintSystem
I am sure that people in the know can restore almost any password, it is important to know HOW. But I was wondering just how to recover passwords in my favorite OS is Linux Mint. In this article we will focus on the recovery of lost passwords for Linux Mint.
So, the following method is good because it is done very quickly and allows you to change the password to one or more users. On my operating system as most people have only one user, therefore the password root changing along with the password of the Main user.
That is, if I change the password to my single user l4l, then user root will automatically change the password. On other operating systems, I think the user root as separately. In any case I am not interested in, the main thing here everything is convenient and WORKS))))
Let's start, we need to get into the boot menu of GRUB. When the computer boots, hold down the "SHIFT" key. In the grub boot loader to select the desired OS and press "E" to edit the boot.
Next we need at the end of the kernel line, after quiet splash add rw init=/bin/bash and press "F10" to boot.
In this case, after the kernel is loaded, the control immediately proceeds to bash that allows you to change the passwords for all users. A working example can be seen in the picture below. Just write the command:
where Username is the login name of the user. Then simply enter the new password.
Restart the computer and can use the new password.