Contents[Hide]
If you have forgotten or lost your root password and unable to login to your Ubuntu 14.04 linux system then follow the instructions below to recover your root password.

1. Step 1 - Reboot to GRUB2 boot menu

First reboot/reset your system to GRUB2 boot loader menu. Navigate to the menu item you normally boot you Ubuntu system from and press "e" for edit.

2. Step 2 - Modify boot options

Find the line which starts with "linux". Navigate to the end of the line and add:
init=/bin/bash
as illustrated on the screen-shot below: Ubuntu 14.04 Lost Password Recovery Grub 2

3. Step 3 - Boot your system

Once you have changed boot options as indicated in the previous step press F10 to instruct your Ubuntu system to boot. Your system will boot and you will be provided with root command line prompt.

4. Step 4 - Reset your Lost Password

Once you get to the command line prompt enter the following commands:
# mount -o remount,rw /
# passwd
HERE YOU CHANGE YOUR PASSWORD
# reboot -f
Lost Password Recovery complete.

5. Step 5 - Login with your new password

Once you reboot login as root user with your new password.


Free Linux eBooks

Do you have the right skills?

Our IT Skills Watch page reflects an up to date IT skills demand leaning towards the Linux and Unix environment. We have considered a number of skills and operating systems.

See the result...

Linux Online Training

Learn to run Linux servers and prepare for LPI certification with Linux Academy. 104 available video lessons with PDF course notes with your own server!

Go to top