{"id":5221,"date":"2014-07-15T06:00:07","date_gmt":"2014-07-14T22:00:07","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=5221"},"modified":"2023-09-18T15:54:30","modified_gmt":"2023-09-18T15:54:30","slug":"how-to-reset-forgotten-root-password-in-ubuntu-14-04","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-reset-forgotten-root-password-in-ubuntu-14-04\/","title":{"rendered":"How to Reset Forgotten Root Password in Ubuntu 14.04"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignnone wp-image-6832 size-full lazyload\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/How-to-Reset-Forgotten-Root-Password-in-Ubuntu-14.04.jpg\" alt=\"ubuntu 14.04 password reset\" width=\"1920\" height=\"1080\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/How-to-Reset-Forgotten-Root-Password-in-Ubuntu-14.04.jpg 1920w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/How-to-Reset-Forgotten-Root-Password-in-Ubuntu-14.04-300x169.jpg 300w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/How-to-Reset-Forgotten-Root-Password-in-Ubuntu-14.04-768x432.jpg 768w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/How-to-Reset-Forgotten-Root-Password-in-Ubuntu-14.04-1024x576.jpg 1024w\" data-sizes=\"(max-width: 1920px) 100vw, 1920px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1920px; --smush-placeholder-aspect-ratio: 1920\/1080;\" \/><\/p>\n<p>Sometimes it is necessary to get root access into the <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-ubuntu-beginners-guide-ubuntu-linux-distro\/\">Ubuntu system<\/a>. I was facing the issue when try to reset forgotten root password in Ubuntu 14.04 using <a href=\"https:\/\/wiki.ubuntu.com\/RecoveryMode\" target=\"_blank\" rel=\"nofollow noopener\">recovery mode<\/a> (Drop to root shell prompt). After done a few testing and do a research, i have found the working solution for it.<\/p>\n<h3>Steps to Reset Forgotten Root Password in Ubuntu 14.04<\/h3>\n<pre>Give root password for maintenance (or type Control-D to continue)\r\n<\/pre>\n<p>1. First, make sure to choose the regular or default boot kernel that you always use, then press &#8216;e&#8217;.<br \/>\n<img decoding=\"async\" class=\"alignnone wp-image-5222 size-full lazyload\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/ubuntu14-root-recovery-01.png\" alt=\"reset ubuntu root password\" width=\"608\" height=\"397\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/ubuntu14-root-recovery-01.png 608w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/ubuntu14-root-recovery-01-300x196.png 300w\" data-sizes=\"(max-width: 608px) 100vw, 608px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 608px; --smush-placeholder-aspect-ratio: 608\/397;\" \/><br \/>\n2. Hit the down arrow key over to the &#8220;linux&#8221; option.<br \/>\n<img decoding=\"async\" class=\"alignnone wp-image-5223 size-full lazyload\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/ubuntu14-root-recovery-02.png\" alt=\"ubuntu root password\" width=\"609\" height=\"394\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/ubuntu14-root-recovery-02.png 609w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/ubuntu14-root-recovery-02-300x194.png 300w\" data-sizes=\"(max-width: 609px) 100vw, 609px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 609px; --smush-placeholder-aspect-ratio: 609\/394;\" \/><br \/>\n3. Remove the &#8220;ro&#8221; part with the backspace key, and then the following onto the end:<\/p>\n<pre>rw init=\/bin\/bash\r\n<\/pre>\n<p>Press Ctrl-X or F10 to boot.<br \/>\n<img decoding=\"async\" class=\"alignnone wp-image-5224 size-full lazyload\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/ubuntu14-root-recovery-03.png\" alt=\"ubuntu reset root password\" width=\"610\" height=\"392\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/ubuntu14-root-recovery-03.png 610w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/ubuntu14-root-recovery-03-300x193.png 300w\" data-sizes=\"(max-width: 610px) 100vw, 610px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 610px; --smush-placeholder-aspect-ratio: 610\/392;\" \/><br \/>\n4. Your system should able to boot up very quickly to a command prompt.<br \/>\n<img decoding=\"async\" class=\"alignnone wp-image-5225 size-full lazyload\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/ubuntu14-root-recovery-04.png\" alt=\"Reset Forgotten Root Password in Ubuntu\" width=\"610\" height=\"343\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/ubuntu14-root-recovery-04.png 610w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/ubuntu14-root-recovery-04-300x169.png 300w\" data-sizes=\"(max-width: 610px) 100vw, 610px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 610px; --smush-placeholder-aspect-ratio: 610\/343;\" \/><br \/>\n5. Use the following command to reset your password:<\/p>\n<pre>passwd\r\n<\/pre>\n<p>Once password has been set successfully, run sync command to write out data to the disk before rebooting.<\/p>\n<pre>sync\r\nreboot -f\r\n<\/pre>\n<p><img decoding=\"async\" class=\"alignnone wp-image-5226 size-full lazyload\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/ubuntu14-root-recovery-05.png\" alt=\"Reset Forgotten Root Password in Ubuntu\" width=\"415\" height=\"120\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/ubuntu14-root-recovery-05.png 415w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/07\/ubuntu14-root-recovery-05-300x87.png 300w\" data-sizes=\"(max-width: 415px) 100vw, 415px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 415px; --smush-placeholder-aspect-ratio: 415\/120;\" \/><\/p>\n<p>Thats all. Now you should be able to login without any issues.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes it is necessary to get root access into the Ubuntu system. I was facing the issue when try to reset forgotten root password in Ubuntu 14.04 using recovery mode&#8230;<\/p>\n","protected":false},"author":6,"featured_media":6832,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1073],"tags":[1856,1858],"class_list":["post-5221","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-ubuntu","tag-ubuntu-14-04"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/5221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=5221"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/5221\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/6832"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=5221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=5221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=5221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}