{"id":30106,"date":"2021-01-18T03:13:32","date_gmt":"2021-01-17T19:13:32","guid":{"rendered":"https:\/\/web.mwwsb.com.my\/pjci\/?post_type=kb&p=30106"},"modified":"2022-09-08T21:38:41","modified_gmt":"2022-09-08T13:38:41","slug":"i-lost-my-admin-login","status":"publish","type":"kb","link":"https:\/\/www.casbay.com\/guide\/kb\/i-lost-my-admin-login","title":{"rendered":"I lost my admin login"},"content":{"rendered":"\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t

Changing Root Password on Linux Dedicated server<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

When you install or reinstall a distribution or operating system, a root access password is provided. It’s recommended to change it to secure your\u00a0Dedicated Server<\/a>. You may also find that you have lost this password, or need to change\u00a0<\/span>it.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t

\n\t\t\t\t
\n\t\t\t\t\t\t\t

To change the password after you lost it:<\/p>

  1. Firstly, put your server into rescue mode<\/strong>.

    <\/li>
  2. Then, identify the system partition<\/strong> with the following command:
    Disk \/dev\/hda 40.0 GB, 40020664320<\/span> bytes\n255<\/span> heads, 63<\/span> sectors\/track, 4865<\/span> cylinders\nUnits<\/span> =<\/span> cylinders of 16065<\/span> * 512<\/span> =<\/span> 8225280<\/span> bytes\n\nDevice Boot Start End Blocks Id System\n\/dev\/hda1 * 1<\/span> 1305<\/span> 10482381<\/span> 83<\/span> Linux\n\/dev\/hda2 1306<\/span> 4800<\/span> 28073587+ 83<\/span> Linux\n\/dev\/hda3 4801<\/span> 4865<\/span> 522112+ 82<\/span> Linux swap \/ Solaris\n\nDisk \/dev\/sda 8254<\/span> MB, 8254390272<\/span> bytes\n16<\/span> heads, 32<\/span> sectors\/track, 31488<\/span> cylinders\nUnits<\/span> =<\/span> cylinders of 512<\/span> * 512<\/span> =<\/span> 262144<\/span> bytes\n\nDevice Boot Start End Blocks Id System\n\/dev\/sda1 1<\/span> 31488<\/span> 8060912<\/span> c W95 FAT32 (<\/span>LBA)<\/span>\n<\/pre><\/div>

    In the example above, the system partition is \/dev\/hda1.<\/p><\/li>

  3. Next, mount the system partition<\/strong> using the following commands:
    # mount \/dev\/hda1 \/mnt\/<\/span><\/pre><\/li>
  4. By default, the system partition is locked for editing. You need to enable it to write access:
    # chroot \/mnt<\/span><\/pre><\/li>
  5. Lastly, change the password:
    # passwd<\/span>\n\nEnter new UNIX password:\nRetype new UNIX password:\npasswd: password updated successfully<\/pre>When this is done, change the boot mode on your server back to\u00a0boot from hard disk<\/code> and restart it. Your root password is successfully\u00a0<\/span>changed.<\/li><\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
    \n\t\t\t\t
    \n\t\t\t

    Contact Casbay Support Team<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
    \n\t\t\t\t
    \n\t\t\t\t\t\t\t

    In other words, if you lost your dedicated server’s root or admin login, kindly contact our team using your registered email. We will reset the root password for you within 1-2 hours after confirmation.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t

    \n\t\t\t\t
    \n\t\t\t\t\t\t\t

    Read more on How To Change Windows Administrator Password<\/a>.\u00a0<\/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":"

    Changing Root Password on Linux Dedicated server When you install or reinstall a distribution or operating system, a root access password is provided. It’s recommended to change it to secure your\u00a0Dedicated Server. You may also find that you have lost this password, or need to change\u00a0it. To change the password after you lost it: Firstly, […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[60],"kbtag":[106],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/30106"}],"collection":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/comments?post=30106"}],"version-history":[{"count":4,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/30106\/revisions"}],"predecessor-version":[{"id":36540,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/30106\/revisions\/36540"}],"wp:attachment":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/media?parent=30106"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=30106"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtag?post=30106"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=30106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}