{"id":1312,"date":"2017-07-30T17:00:29","date_gmt":"2017-07-30T17:00:29","guid":{"rendered":"https:\/\/www.xsofthost.com\/help\/?p=1312"},"modified":"2021-03-15T23:27:58","modified_gmt":"2021-03-15T23:27:58","slug":"reset-and-recover-forgotten-root-password-on-linux-os-distribution","status":"publish","type":"post","link":"https:\/\/www.xsofthost.com\/help\/reset-and-recover-forgotten-root-password-on-linux-os-distribution\/","title":{"rendered":"How to Reset\/Recover a Forgotten root Password On Linux OS"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1312\" class=\"elementor elementor-1312\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4596118 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4596118\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-46b54d8\" data-id=\"46b54d8\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e79f33c elementor-widget elementor-widget-heading\" data-id=\"e79f33c\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Main Steps to Reset\/Recover root password on LINUX\n<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c7f304c elementor-widget elementor-widget-text-editor\" data-id=\"c7f304c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>If you forgot your root password from our dedicated server ,there are two major actions to reset the root password.<\/p>\n<p>The following will describe how to go through reset your root password via rescue mode on <b>dedicated server<\/b> on both <b>SoftRaid<\/b> and <b>HardRaid<\/b> partitions.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b843c38 elementor-widget elementor-widget-heading\" data-id=\"b843c38\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Reboot Your server in rescue mode\n<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-76cd501 elementor-widget elementor-widget-text-editor\" data-id=\"76cd501\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>In order to reboot your server in rescue mode:<\/p>\n<ol>\n<li>Login to your<a title=\"Xsofthost Client Aear\" href=\"https:\/\/www.xsofthost.com\/clients\/clientarea.php\" target=\"_blank\" rel=\"noopener\">\u00a0client area<\/a><\/li>\n<li>Select your server from the Services list<\/li>\n<li>Click the\u00a0<strong>Power<\/strong>\u00a0button and select\u00a0<strong>Netboot<\/strong>\u00a0tab , then Choose\u00a0<strong>Rescue<\/strong>\u00a0and from Rescue Available select\u00a0<strong>rescue64-pro.<\/strong><\/li>\n<li>Click Boot Now , then you can now use SSH to connect to your server on rescue mode.<\/li>\n<\/ol>\n<p>The reboot will generate temporary access codes (password) for the Rescue Mode session. They will be sent to your email.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e850092 elementor-widget elementor-widget-heading\" data-id=\"e850092\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Change root password in rescue mode<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2e6d30b elementor-widget elementor-widget-text-editor\" data-id=\"2e6d30b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Once you login to your server in rescue mode via SSH you have to run the following commands:<\/p>\n<p>In the command line, enter the command:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-438841f elementor-widget elementor-widget-code-highlight\" data-id=\"438841f\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>parted -l<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-59e9b3b elementor-widget elementor-widget-text-editor\" data-id=\"59e9b3b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>If you are using SoftRaid, your root partition will be <b>\/dev\/mdX<\/b><\/p>\n<p>If you are using HardRaid, your root partition will be <b>\/dev\/sdX<\/b><\/p>\n<p>Then Mount this partition by typing:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-870f4bd elementor-widget elementor-widget-code-highlight\" data-id=\"870f4bd\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>mount \/dev\/partitionname \/mnt<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-79994d1 elementor-widget elementor-widget-text-editor\" data-id=\"79994d1\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\tFinally run chroot command to allow you run your change password command\n\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-574dd68 elementor-widget elementor-widget-code-highlight\" data-id=\"574dd68\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>chroot \/mnt<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3cc24a4 elementor-widget elementor-widget-text-editor\" data-id=\"3cc24a4\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Chrooting the command response puts you in the<b> \/<\/b> of the server. Now you can execute commands on your system. Once this is done, enter the following command to recover and change your root account password:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-68618b5 elementor-widget elementor-widget-code-highlight\" data-id=\"68618b5\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>passwd root<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d782733 elementor-widget elementor-widget-text-editor\" data-id=\"d782733\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>You will then be prompted to change the password (and then type it again to confirm it) of the root account. Once that\u2019s done, you\u2019ll have to change back the \u201c<b>Netboot<\/b>\u201d option in the Control Panel to \u201c<b>Boot on hard disk<\/b>\u201d and restart your server to function from hard disk.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Main Steps to Reset\/Recover root password on LINUX If you forgot your root password from our dedicated server ,there are two major actions to reset the root password. The following will describe how to go through reset your root password via rescue mode on dedicated server on both SoftRaid and HardRaid partitions. Reboot Your server [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":16,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[41],"tags":[181,42,50,149],"_links":{"self":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/1312"}],"collection":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/comments?post=1312"}],"version-history":[{"count":20,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/1312\/revisions"}],"predecessor-version":[{"id":2287,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/1312\/revisions\/2287"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media\/16"}],"wp:attachment":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media?parent=1312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/categories?post=1312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/tags?post=1312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}