{"id":16,"date":"2008-10-26T16:17:06","date_gmt":"2008-10-26T10:47:06","guid":{"rendered":"http:\/\/bhuvan.wordpress.com\/?p=16"},"modified":"2008-10-26T16:17:06","modified_gmt":"2008-10-26T10:47:06","slug":"recovering-password-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.bhuvankrishna.in\/blog\/2008\/10\/26\/recovering-password-in-ubuntu\/","title":{"rendered":"recovering password in ubuntu"},"content":{"rendered":"<p>There are two ways to do it short way and a long way i will discribe both of them.<\/p>\n<p>short way<\/p>\n<p>If you forgot your password for your ubuntu system or any other GNU\/Linux OS you can recover using the following steps<\/p>\n<p>Turn your computer on.<\/p>\n<p>Press ESC at the grub prompt.<\/p>\n<p>Press e for edit.<\/p>\n<p>Highlight the line that begins kernel \u2026\u2026\u2026, press e<\/p>\n<p>Go to the very end of the line, add <strong>rw init=\/bin\/bash<\/strong><\/p>\n<p>press enter, then press b to boot your system.<\/p>\n<p>Your system will boot up to a passwordless root shell.<\/p>\n<p>Type in passwd  username.<\/p>\n<p>Long way<\/p>\n<p>Recovering Password in Ubuntu or any GNU\/Linux OS.<br \/>\nStep 1<\/p>\n<p>We need to boot into a live cd. for this we can use ubuntu LiveCD or DVD. Place a live CD or DVD in the drive and boot into the system.<\/p>\n<p>Step 2<\/p>\n<p>Open a terminal which you can find in Applications -&gt; Accessories -&gt; Terminal.<\/p>\n<p>Step 3<\/p>\n<p>Type the following commands.<\/p>\n<p>$sudo su\u00a0\u00a0\u00a0\u00a0 (Do not type the &#8216;$&#8217; it is called as prompt. you need to type all the words after the &#8216;$&#8217;)<\/p>\n<p>#gparted<\/p>\n<p>(here the partition table will show all the partitions that are there on the hard disk. we need to check out the partition which has its filesystem as &#8216;ext3&#8217; and make a note of it. Please check the screenshot).<\/p>\n<p>#mount \/dev\/sda4 \/mnt\/ (enter the hardisk name and partition number in place of sda4 if its hda3 or sda8 we need to replace sda4 with the appropriate name and number)<\/p>\n<p>Then enter the following set of commands.<br \/>\n#mount -t \/proc\/ none \/mnt\/proc<br \/>\n#mount &#8211;bind \/dev\/ \/mnt\/dev\/<br \/>\n#chroot \/mnt<br \/>\n#passwd<br \/>\nEnter new unix password:\u00a0\u00a0\u00a0 ( here we have to give the new password).<\/p>\n<p>and then restart the system.<\/p>\n<div id=\"attachment_17\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bhuvankrishna.in\/blog\/wp-content\/uploads\/2008\/10\/screenshot-2.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-17\" class=\"size-medium wp-image-17\" title=\"gparted\" src=\"http:\/\/www.bhuvankrishna.in\/blog\/wp-content\/uploads\/2008\/10\/screenshot-2.png?w=300\" alt=\"the partition on which password is there\" width=\"300\" height=\"202\" srcset=\"https:\/\/www.bhuvankrishna.in\/blog\/wp-content\/uploads\/2008\/10\/screenshot-2.png 777w, https:\/\/www.bhuvankrishna.in\/blog\/wp-content\/uploads\/2008\/10\/screenshot-2-300x203.png 300w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-17\" class=\"wp-caption-text\">the partition on which password is there<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>There are two ways to do it short way and a long way i will discribe both of them. short way If you forgot your password for your ubuntu system or any other GNU\/Linux OS you can recover using the following steps Turn your computer on. Press ESC at the grub prompt. Press e for\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.bhuvankrishna.in\/blog\/2008\/10\/26\/recovering-password-in-ubuntu\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[17],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-techy","tag-tips"],"_links":{"self":[{"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":0,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}