How to reset root password in Ubuntu 17.10

Losing Root Password is not end of the world!

No matter you have an excellent memory, and you are a perfect organized person, it happens to everybody one day or another – forgotten password! What if it was your Ubuntu root password? Is it the end of the world? This guide will walk you through the method of resetting your lost password in Ubuntu so that you won’t lose all data.

Recover lost root password in Ubuntu 17.10

STEP 1: Shutdown the PC.

STEP 2: Power ON the computer and while at the Ubuntu Grub (boot screen), highlight Ubuntu and press ‘e’ key. If you don’t see the Grub screen, then probably you only have Ubuntu installed in your computer. In such case, Ubuntu doesn’t boot into grub to save time. All you have to do is press and hold SHIFT key at startup for GRUB to show up.

Ubuntu Grub
Ubuntu Grub

STEP 3: In the Grub’s boot menu edit mode, navigate using arrow keys and go to the line as shown below:

Edit Grub Menu
Before Editing Grub Menu

STEP 4: Edit the text to change ro quiet splash $vt_handoff to rw init=/bin/bash like shown below:

Edit Grub
After Editing Grub Menu

STEP 5: Press Ctrl X keys together. You should exit out of grub and go into command prompt root @(none):/#.

Command Prompt
Command Prompt

STEP 6: Enter passwd command and press enter key. Go ahead and enter the new password twice.

Reset Root Password in Ubuntu 17.10
Reset Root Password in Ubuntu 17.10

STEP 7: That’s it! Your new password is now set. Reboot your computer by entering the following command:

exec /sbin/init

 

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of FOSSLinux.com. I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. Hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more, and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!

4 COMMENTS

  1. After password reset, in login screen it doesnt give password error but after a 1 second black screen shown, returns to login screen

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

24,268FansLike
192FollowersFollow

LATEST ARTICLES

Application Launchers for Ubuntu
Ubuntu is one of the most used Linux distributions worldwide. It is also the reason why it has the maximum number of available programs for itself. Today we are going to talk about one category of those programs, the application launchers.
best music players for linux
For sure, there will be Linux users out there who cannot live without music. If you're one of those people, you would know how important it is to have a good music player installed on your computer system. In this article, we present to you the 5 Best Music Players for Linux, which will hopefully be able to satisfy each of our readers' needs.
Free up hard disk space ubuntu
Hard disk space can easily get filled up with cached package files, old kernels, and other obsolete files that occupy unwanted hard disk space. Here are top five best and safer ways to clean and free up hard disk space in Ubuntu. We show you Terminal and GUI way of cleaning up system.