{"id":5208,"date":"2012-03-28T12:46:54","date_gmt":"2012-03-28T07:16:54","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=5208"},"modified":"2016-12-19T15:06:27","modified_gmt":"2016-12-19T09:36:27","slug":"forgot-root-password-in-linux-how-to-reset-root-password","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/forgot-root-password-in-linux-how-to-reset-root-password\/","title":{"rendered":"Forgot Root Password in Linux, How to Reset Root Password through GRUB?"},"content":{"rendered":"<p>Hi,<br \/>\n&nbsp;<br \/>\nIt is a major problem when we forgot our root password in linux. But don&#8217;t know how to recover it. First thought that came to mind reinstall machine. But I found a way that might help you without reinstall and save your hours. It is a interesting trick in linux to get back our root password in few minutes. I used it on ubuntu 11.10 it work fine for me. Some people might know about this method, but I thought i share with you all for those who don&#8217;t know.<br \/>\n&nbsp;<br \/>\n<strong><em>Caution : But please don&#8217;t play with this for fun, only use it when in need.<\/em><\/strong><br \/>\n&nbsp;<br \/>\nHere are the steps to get back your password :<br \/>\n1. Reboot your system.<br \/>\n2. When Grub Loads, Either move arrow to stop clock\/timer.<br \/>\n3. Select Ubuntu Kernel, and then Press &#8216;e&#8217; key to open it in Edit Mode.<br \/>\n&nbsp;<\/p>\n<p>&nbsp;<br \/>\n4. In edit mode, screen will look like this in Ubuntu&#8230;<br \/>\n&nbsp; <\/p>\n<p>&nbsp;<br \/>\nIf you see the 2nd line from bottom, that says info about kernel add &#8216;1&#8217; in end of command as given below,<br \/>\n<strong>linux \/boot\/vmlinuz-2.6.31.9 root=UUID=904bf39-9234 ro quiet splash <strong>1<\/strong><\/strong><br \/>\n&nbsp;<br \/>\n5. Then Press Ctrl + b to boot kernel in single user mode.<br \/>\n6. By using passwd command reset your root password,<br \/>\n    root# passwd<br \/>\n    New UNIX Password:<br \/>\n    Retype UNIX Password:<br \/>\n    passwd updated successfully<br \/>\n&nbsp;<br \/>\n7. Now reboot the machine, machine will reboot with your new password.<br \/>\n&nbsp;<br \/>\nI hope it helps. \ud83d\ude09<br \/>\n&nbsp;<br \/>\nThanks,<br \/>\nTarun Pareek<br \/>\ntarun@intelligrape.com<\/p>\n<p><a href=\"http:\/\/www.tothenew.com\/blog\/author\/tarun\/\">More Blogs by Me<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, &nbsp; It is a major problem when we forgot our root password in linux. But don&#8217;t know how to recover it. First thought that came to mind reinstall machine. But I found a way that might help you without reinstall and save your hours. It is a interesting trick in linux to get back [&hellip;]<\/p>\n","protected":false},"author":20,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":4},"categories":[1],"tags":[779,260,781,780,8],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/5208"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=5208"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/5208\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=5208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=5208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=5208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}