How to recover a forgotten password in Ubuntu Linux To all happen sooner or later forget the password to access the system propio Linux. This procedure is applicable to Ubuntu Linux, but also to any other system that uses Linux as the boot loader Grub, you can change your login password. Let’s see how to do:
1) When you start your PC, and when displaying the Grub screen press ESC.
2) Press’and’and move to the line that starts with’kernel ‘and press’and’.
3) Now position yourself with the arrow at the end of the line and add ‘rw init = / bin / bash’
Press send and press the ‘b’to boot.
If everything is done correctly you should see the root shell.
So now from here we can change the password of user of which we have forgotten the password or root user.
Just to feed to the shell command ‘passwd username’where username is the name of’ user that you want to change your password.
At this point, the password should be changed. Reboot your computer to ‘reboot’. At the next login will be possible to use the new password.