{"id":13294,"date":"2019-04-01T11:36:14","date_gmt":"2019-04-01T11:36:14","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=13294"},"modified":"2019-04-01T11:36:14","modified_gmt":"2019-04-01T11:36:14","slug":"how-to-reset-forgotten-root-password-in-rhel-centos-and-fedora","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/01\/how-to-reset-forgotten-root-password-in-rhel-centos-and-fedora\/","title":{"rendered":"How to Reset Forgotten Root Password in RHEL\/CentOS and Fedora"},"content":{"rendered":"<p>In this post will guide you simple steps to reset\u00a0<strong>forgotten root password<\/strong>\u00a0in\u00a0<strong>RHEL<\/strong>,\u00a0<strong>CentOS<\/strong>\u00a0and\u00a0<strong>Fedora<\/strong>\u00a0Linux with example. There are various ways to reset root password which are.<\/p>\n<ol>\n<li>Booting into\u00a0<strong>single user<\/strong>\u00a0mode.<\/li>\n<li>Using\u00a0<strong>boot disk<\/strong>\u00a0and edit\u00a0<strong>passwd<\/strong>\u00a0file.<\/li>\n<li>Mount\u00a0<strong>drive<\/strong>\u00a0to another system and change\u00a0<strong>passwd<\/strong>\u00a0file.<\/li>\n<\/ol>\n<div id=\"attachment_1564\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/Reset-Forgotten-Root-Password.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1564\" title=\"Reset Root Password\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/Reset-Forgotten-Root-Password-300x169.jpg\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/Reset-Forgotten-Root-Password-300x169.jpg 300w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/Reset-Forgotten-Root-Password.jpg 523w\" alt=\"Reset Root Password\" width=\"300\" height=\"169\" aria-describedby=\"caption-attachment-1564\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-1564\" class=\"wp-caption-text\">Reset Forgotten Root Password<\/p>\n<\/div>\n<p>Here, in this article we are going to review \u201c<strong>Booting into single user mode<\/strong>\u201d option to reset forgotten\u00a0<strong>root<\/strong>password.<\/p>\n<p><strong>Cautious<\/strong>:\u00a0<strong>We urge to take backup of your data and try it out at your own risk.<\/strong><\/p>\n<p><strong>STEP 1<\/strong>. Boot Computer and Interrupt while booting at\u00a0<strong>GRUB<\/strong>\u00a0stage hitting \u2018<strong>arrow<\/strong>\u2018 keys or \u201c<strong>space bar<\/strong>\u201c.<\/p>\n<div id=\"attachment_1559\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1559\" title=\"Booting Grub Stage\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-1.png\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-1.png 600w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-1-300x225.png 300w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-1-320x240.png 320w\" alt=\"Booting Grub Stage\" width=\"600\" height=\"450\" aria-describedby=\"caption-attachment-1559\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-1559\" class=\"wp-caption-text\">Booting GRUB Stage<\/p>\n<\/div>\n<p><strong>STEP 2<\/strong>. Type \u2018<strong>a<\/strong>\u2018 to modify kernel argument. Anytime you can cancel typing \u2018<strong>ESC<\/strong>\u2018 key.<\/p>\n<div id=\"attachment_1560\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1560\" title=\"Modifying Kernel Parameters\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-2.png\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-2.png 600w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-2-300x225.png 300w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-2-320x240.png 320w\" alt=\"Modifying Kernel Parameters\" width=\"600\" height=\"450\" aria-describedby=\"caption-attachment-1560\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-1560\" class=\"wp-caption-text\">Modify Kernel Argument<\/p>\n<\/div>\n<p><strong>STEP 3<\/strong>. Append\u00a0<strong>1<\/strong>\u00a0at the end of \u201c<strong>rhgb quiet<\/strong>\u201d and press \u201c<strong>Enter<\/strong>\u201d key to boot into single user mode.<\/p>\n<div id=\"attachment_1561\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1561\" title=\"Append 1 at the GRUB\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-3.png\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-3.png 600w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-3-300x225.png 300w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-3-320x240.png 320w\" alt=\"Append 1 at the GRUB\" width=\"600\" height=\"450\" aria-describedby=\"caption-attachment-1561\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-1561\" class=\"wp-caption-text\">Append 1 at the Screen<\/p>\n<\/div>\n<p><strong>STEP 4<\/strong>. Type command \u201c<strong>runlevel<\/strong>\u201d to know the the runlevel where you are standing. Here \u201c<strong>1 S<\/strong>\u201d state that your are in a single user mode.<\/p>\n<div id=\"attachment_1562\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1562\" title=\"Command runlevel\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-4.png\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-4.png 600w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-4-300x166.png 300w\" alt=\"Command runlevel\" width=\"600\" height=\"333\" aria-describedby=\"caption-attachment-1562\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-1562\" class=\"wp-caption-text\">Type Command runlevel<\/p>\n<\/div>\n<p><strong>STEP 5<\/strong>. Type \u2018<strong>passwd<\/strong>\u2018 command without username and press \u2018<strong>Enter<\/strong>\u2018 key in command prompt. It\u2019ll ask to supply new root password and re-type the same password for confirmation. \u201c<strong>Your are Done<\/strong>\u201d Congratulation!!!<\/p>\n<div id=\"attachment_1563\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1563\" title=\"Passwd Command\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-5.png\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-5.png 600w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/11\/c-5-300x166.png 300w\" alt=\"Passwd Command\" width=\"600\" height=\"333\" aria-describedby=\"caption-attachment-1563\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-1563\" class=\"wp-caption-text\">Type passwd Command<\/p>\n<\/div>\n<p>What if\u00a0<strong>GRUB bootloader is password protected?<\/strong>\u00a0We\u2019ll cover in our next article, how to protect\u00a0<strong>GRUB<\/strong>\u00a0with password and reset the same. Stay tuned\u2026<\/p>\n<p>If you find this article is helpful, or you may have some comments or query about it please feel free to contact with us through below comment box.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/reset-forgotten-root-password-in-rhel-centos-and-fedora\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post will guide you simple steps to reset\u00a0forgotten root password\u00a0in\u00a0RHEL,\u00a0CentOS\u00a0and\u00a0Fedora\u00a0Linux with example. There are various ways to reset root password which are. Booting into\u00a0single user\u00a0mode. Using\u00a0boot disk\u00a0and edit\u00a0passwd\u00a0file. Mount\u00a0drive\u00a0to another system and change\u00a0passwd\u00a0file. Reset Forgotten Root Password Here, in this article we are going to review \u201cBooting into single user mode\u201d option to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/01\/how-to-reset-forgotten-root-password-in-rhel-centos-and-fedora\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Reset Forgotten Root Password in RHEL\/CentOS and Fedora&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13294","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=13294"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13294\/revisions"}],"predecessor-version":[{"id":13295,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13294\/revisions\/13295"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=13294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=13294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=13294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}