Reset password in Ubuntu


If you have forgotten the root password you can reset it quite easily by booting into single-user mode. Reboot the PC and press ESC. You’ll get the GRUB screen below.

Press e to edit the first entry in the boot menu. Add single to the line for the kernel as shown below.

Press F10 to reboot. You’ll be booted into the single-user mode and can change the password for any user thus:

passwd login

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s