{"id":2190,"date":"2012-03-11T00:55:35","date_gmt":"2012-03-10T16:55:35","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=2190"},"modified":"2023-04-28T09:49:41","modified_gmt":"2023-04-28T09:49:41","slug":"how-to-recover-the-password-for-root-on-centos-5-7","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-recover-the-password-for-root-on-centos-5-7\/","title":{"rendered":"How to Recover the Password for root on CentOS 5.7"},"content":{"rendered":"<p>In this post i will show how password recovery for lost root account&#8217;s password is performed. This is especially for those who always forgot their CentOS 5.7 root password. The steps is easy as below :<\/p>\n<p>1. Reboot the CentOS machine<br \/>\n2. When booting up, press any key to go into the select menu.<br \/>\n3. The press \u2018e\u2019 to navigate to second grub.conf line (kernel)<\/p>\n<p><img decoding=\"async\" class=\"alignnone lazyload\" title=\"recover\" data-src=\"http:\/\/2.bp.blogspot.com\/-AOxirwNF3KU\/T1uEfq8SeUI\/AAAAAAAAB9w\/zWx3Ydd1lY8\/s1600\/1.PNG\" alt=\"recover\" width=\"625\" height=\"462\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 625px; --smush-placeholder-aspect-ratio: 625\/462;\" \/><br \/>\n4. Press \u2018e\u2019 to edit the line :<br \/>\n<img decoding=\"async\" class=\"alignnone lazyload\" title=\"recover\" data-src=\"http:\/\/4.bp.blogspot.com\/-LA_rbo68nyU\/T1uEgYup8eI\/AAAAAAAAB-I\/YljTmkeTomg\/s1600\/3.PNG\" alt=\"recover\" width=\"597\" height=\"212\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 597px; --smush-placeholder-aspect-ratio: 597\/212;\" \/><br \/>\n5. Add \u2018single\u2019 to \u201cro root=LABEL=\/ single&#8221; as below :<br \/>\n<img decoding=\"async\" class=\"alignnone lazyload\" title=\"recover\" data-src=\"http:\/\/4.bp.blogspot.com\/-e8e--l0WGEk\/T1uEgjhkmfI\/AAAAAAAAB-U\/-EqxdBCJRh8\/s1600\/4.PNG\" alt=\"recover\" width=\"625\" height=\"117\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 625px; --smush-placeholder-aspect-ratio: 625\/117;\" \/><br \/>\n6. At \u2018#\u2019 command line, type \u2018passwd\u2019 to create new password. Then reboot machine as usual.<br \/>\n<img decoding=\"async\" class=\"alignnone lazyload\" title=\"recover\" data-src=\"http:\/\/4.bp.blogspot.com\/-zPNy04yOE0U\/T1uEiIvWS4I\/AAAAAAAAB-c\/Dhx_QHuYBXo\/s1600\/5.PNG\" alt=\"recover\" width=\"607\" height=\"160\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 607px; --smush-placeholder-aspect-ratio: 607\/160;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post i will show how password recovery for lost root account&#8217;s password is performed. This is especially for those who always forgot their CentOS 5.7 root password. The&#8230;<\/p>\n","protected":false},"author":6,"featured_media":349,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2055],"tags":[1244,1536,1720],"class_list":["post-2190","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-centos","tag-linux","tag-root"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2190","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=2190"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2190\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/349"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=2190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=2190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=2190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}