Since we’re all humans and we do forget at times, this brief tutorial is going to show you how to reset or recovery a forgotten users or root password on Ubuntu 14.04.
We wrote the same tutorial for CentOS 7 users which was well received so we decided to write one for Ubuntu users as well. If you manage or own a Ubuntu machine or server and you’ve forgotten your password, this brief tutorial should help you reset or recover it. It’s a simple tutorial that will help anyone having such issues.
To read our previous tutorial on resetting passwords on CentOS 7 computer, please click here.
Now, something you should understand before you continue. This method will only work if you’re directly connected to the machine and able to see the boot menu while Ubuntu is booting up.
Enhance your coding experience with this split keyboard that offers up to 9" of separation.
You won’t be able to access Ubuntu boot menu remotely via terminal shell like SSH unless you are connected via serial over Ethernet with access to the boot menu.
Also, Ubuntu recovery mode is enabled by default and available to anyone with access to machine. If you want to secure your Ubuntu machines, you may want to turn off or disable the Ubuntu recovery mode.
When you turn off the recovery mode, then you run the risk of not being able to recover your system or reset password easily. So, it’s up to you whether to disable it or leave it as default. Remember, making sure your system is protected and secure should be your #1 priority.
When you’re ready to reset your password on Ubuntu, continue below.
First power on your Ubuntu machine. At the boot menu, you’ll have few seconds to choose the Ubuntu OS to boot into. When prompted, choose *Advanced options for Ubuntu
Next, select Ubuntu, with the latest kernel version (recovery mode) to boot into. The recovery mode is used to recover your system on Ubuntu and perform other tasks like resetting your password and updating your system if you can’t boot into it.
Then select the root option to drop into the root shell prompt. In this shell, you have read-only access. In order to run administrative commands, you must remount the shell with read and write permission.
Next, remount the shell with read and write option. To do that, run the commands below.
mount -rw -o remount /
After running the above commands, the shell should be remounted with read/write permission. Now you can run limited sets of commends, including password change commands as the root user.
To change or reset your forgotten password, run the commands below.
sudo passwd username
Replace username with your account name or user name for the machine. If you have to root account enabled, you should replace username with root to change the root password.
When you run the above commands, you’ll be prompted to create and confirm a password for the account name you mentioned. create it and you’re done.
When you’re done, type reboot to restart your machine. This is how to reset your password on Ubuntu.
Enjoy!
Protect yourself and your devices with the most trusted internet security software availabe.
Invest in some screen real estate with a new big screen, backlit monitor availabe in five different sizes and price points.



It’s working…..Thank you
thanxx great tutorial
Very well written. Thanks!
Good tutorial thanks! But this seems extremely easy. Is there way to secure my Ubuntu so at least the data is secure?
if you forgot the username as well in VM, how can you retrieve or identify the username? I am using VMWare fusion as the hypervisor.
Hey!!!!!!!!! Thanks a tonne…it worked
how to reset forgotten user login password when there is no recovery mode created from before…???
do reply….!!!!!
URGENT…???????????
Its working. thank you so much…….. P
when i forgot my root password, how could i reset it,
when we get into the drop down menu in the drop to the root shell prompt it ask for root password .
how could i change that
thank you alot u save my day
asking for a root password.how to get rid of that.
its working, thanks
When I hit “Drop to root shell prompt” it asks for root password, which I’m trying to reset. Any idea?
Hi,
I have tried that but it isn’t working with my system. I get an error saying “Authentication token manipulation error”.
Then I tried nano and vi editor to edit file /etc/shadow but it says can not edit a read only file and then requires a sudo password to edit it.
So please help me and tell me a way to resolve this issue.
Thank you
I try it but I got user does not exist. What to do?
Ubuntu 14.04 LTS – i can’t able to boot in recovery mode, whenever i’m trying to boot recovery mode, it ll be boot directly login on desktop screen. and also tried shift key when booting time. but its not working… Pls any one resolve my problem… thank u…
the solution worked. Thanks
Tank you very much
Thanks a ton!
Its really working , very easy steps ….
Thanxx so Much great tutorial
When I get to “Enter Unix Password” it won’t let me type, how do I fix this?
wow! thanks a ton! this really helped me. i’ve tried several instructions from different sites but your infor mation about changing username to root saved me. thank you!
When I hit “Drop to root shell prompt” it asks for root password, which I’m trying to reset. Any idea?
thanx a lot dear
Thank you so much………………
… All find until you drop the the root shell. Then it asks for the root pw or CTRL-D for maintenance. CTRLD takes you back to the menu.
I do not need to do this because I have my pw, but others have asked me.
You save my hour :)