{"id":129,"date":"2018-11-27T18:46:02","date_gmt":"2018-11-27T18:46:02","guid":{"rendered":"https:\/\/unsrewiki.1sys1.com\/?p=129"},"modified":"2018-12-20T20:17:10","modified_gmt":"2018-12-20T20:17:10","slug":"recovering-the-root-password-ubuntu","status":"publish","type":"post","link":"https:\/\/server-help.org\/index.php\/2018\/11\/27\/recovering-the-root-password-ubuntu\/","title":{"rendered":"Recovering the Root Password (Ubuntu)"},"content":{"rendered":"\n<p>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.<\/p>\n\n\n\n<p> In the first step you need to reboot your Ubuntu 16.04 Server to Grub&#8217;s menu. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"715\" src=\"https:\/\/unsrewiki.1sys1.com\/wp-content\/uploads\/2018\/12\/ubuntu-16.04-xenial-reset-root-password-grub-menu-1-1024x715.png\" alt=\"\" class=\"wp-image-213\" srcset=\"https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/ubuntu-16.04-xenial-reset-root-password-grub-menu-1-1024x715.png 1024w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/ubuntu-16.04-xenial-reset-root-password-grub-menu-1-300x209.png 300w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/ubuntu-16.04-xenial-reset-root-password-grub-menu-1-768x536.png 768w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/ubuntu-16.04-xenial-reset-root-password-grub-menu-1.png 1342w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p> 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 <code>e<\/code> to edit: <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"712\" src=\"https:\/\/unsrewiki.1sys1.com\/wp-content\/uploads\/2018\/12\/ubuntu-16.04-xenial-reset-root-password-edit-menu-1-1024x712.png\" alt=\"\" class=\"wp-image-214\" srcset=\"https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/ubuntu-16.04-xenial-reset-root-password-edit-menu-1-1024x712.png 1024w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/ubuntu-16.04-xenial-reset-root-password-edit-menu-1-300x209.png 300w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/ubuntu-16.04-xenial-reset-root-password-edit-menu-1-768x534.png 768w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/ubuntu-16.04-xenial-reset-root-password-edit-menu-1.png 1341w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Once in the Grub&#8217;s boot menu edit mode use navigation arrows to locate a line starting with <code>linux<\/code> and edit it to include read-write mode <code>rw<\/code> and <code>init=\/bin\/bash<\/code>. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"706\" src=\"https:\/\/unsrewiki.1sys1.com\/wp-content\/uploads\/2018\/12\/3-1024x706.png\" alt=\"\" class=\"wp-image-215\" srcset=\"https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/3-1024x706.png 1024w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/3-300x207.png 300w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/3-768x529.png 768w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/3.png 1341w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Press\u00a0<strong>Ctrl + X<\/strong>\u00a0to boot.<\/p>\n\n\n\n<p> 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:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># mount | grep -w \/<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"639\" height=\"81\" src=\"https:\/\/unsrewiki.1sys1.com\/wp-content\/uploads\/2018\/12\/ubuntu-16.04-xenial-reset-root-password-read-write-mode.png\" alt=\"\" class=\"wp-image-216\" srcset=\"https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/ubuntu-16.04-xenial-reset-root-password-read-write-mode.png 639w, https:\/\/server-help.org\/wp-content\/uploads\/2018\/12\/ubuntu-16.04-xenial-reset-root-password-read-write-mode-300x38.png 300w\" sizes=\"(max-width: 639px) 100vw, 639px\" \/><\/figure>\n\n\n\n<p>Now we are ready to reset root&#8217;s password. To do so, simply run <code>passwd<\/code> command with no arguments. When prompted enter your new root password: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># passwd root<\/code><\/pre>\n\n\n\n<p>Reboot your system using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># exec \/sbin\/init<\/code><\/pre>\n\n\n\n<p>Now, you can Login \/ Access your Server using the new Root password.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;s menu. Once you reboot to Grub menu, select the first&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,1],"tags":[],"_links":{"self":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/129"}],"collection":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":3,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"predecessor-version":[{"id":217,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/129\/revisions\/217"}],"wp:attachment":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}