{"id":1072,"date":"2019-02-24T15:07:06","date_gmt":"2019-02-24T13:07:06","guid":{"rendered":"http:\/\/itsimple.info\/?p=1072"},"modified":"2019-02-24T15:15:40","modified_gmt":"2019-02-24T13:15:40","slug":"how-to-reset-centos-7-root-password","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=1072","title":{"rendered":"How To Reset CentOS 7 Root Password"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>On system reboot press &#8216;e&#8217; to enter Grub boot screen, change :<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1073\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2019\/02\/centos7-forgot-root-password_1-300x160.png\" alt=\"\" width=\"500\" height=\"360\" \/><\/p>\n<p>ro -&gt; rw \u00a0\u00a0 and add net to it the line &#8221; \u00a0 init=\/sysroot\/bin\/sh \u00a0 &#8221;\u00a0 (without &#8220;&#8221;)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1074\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2019\/02\/centos7-forgot-root-password_2-300x166.png\" alt=\"\" width=\"500\" height=\"366\" \/><br \/>\nThen execute :<\/p>\n<pre>chroot \/sysroot<\/pre>\n<p>And then to change the root password :<\/p>\n<pre>passwd root<\/pre>\n<h3>Enter the new password twice and press CTRL+X to exit and reboot .<\/h3>\n<hr \/>\n<h3>Good Luck<\/h3>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; On system reboot press &#8216;e&#8217; to enter Grub boot screen, change : ro -&gt; rw \u00a0\u00a0 and add net to it the line &#8221; \u00a0 init=\/sysroot\/bin\/sh \u00a0 &#8221;\u00a0 (without &#8220;&#8221;) Then execute : chroot \/sysroot And then to change the root password : passwd root Enter the new password twice and press CTRL+X to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,13,4,12],"tags":[],"class_list":["post-1072","post","type-post","status-publish","format-standard","hentry","category-centos","category-linux","category-tech","category-tutorials"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/1072","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1072"}],"version-history":[{"count":0,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/1072\/revisions"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}