This guide will provide you with an information on how to reset lost root ( administrator ) password on Ubuntu 16.04Start or reboot a system to get into the boot menu.
In the first step you need to reboot your Ubuntu 16.04 Server to Grub’s menu.
![](https://unsrewiki.1sys1.com/wp-content/uploads/2018/12/ubuntu-16.04-xenial-reset-root-password-grub-menu-1-1024x715.png)
Once you reboot to Grub menu, select the first menu item or the menu item you normally use to boot your Ubuntu system and press e
to edit:
![](https://unsrewiki.1sys1.com/wp-content/uploads/2018/12/ubuntu-16.04-xenial-reset-root-password-edit-menu-1-1024x712.png)
Once in the Grub’s boot menu edit mode use navigation arrows to locate a line starting with linux
and edit it to include read-write mode rw
and init=/bin/bash
.
![](https://unsrewiki.1sys1.com/wp-content/uploads/2018/12/3-1024x706.png)
Press Ctrl + X to boot.
If all went well you should now see root shell command line and your root partition should be mounted with read/write flags. To confirm run:
# mount | grep -w /
![](https://unsrewiki.1sys1.com/wp-content/uploads/2018/12/ubuntu-16.04-xenial-reset-root-password-read-write-mode.png)
Now we are ready to reset root’s password. To do so, simply run passwd
command with no arguments. When prompted enter your new root password:
# passwd root
Reboot your system using the following command:
# exec /sbin/init
Now, you can Login / Access your Server using the new Root password.
Wow, that’s what I was searching for, what a data!
present here at this blog, thanks admin of this web site.