How to reset your root password on Debian, Ubuntu, and Gentoo Linux (VDS Only)

Post Reply
User avatar
hiimcody1
Staff
Staff
Posts: 1593
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Wed Dec 28, 2011 4:59 pm

How to reset your root password on Debian, Ubuntu, and Gentoo Linux (VDS Only)

Post by hiimcody1 »

  1. Go to the "Server control" tab on the control panel and reboot your server.
  2. Connect to VNC using the VNC Console tab and wait for it to tell you it was disconnected. Reload the page, and you should see the initial booting screen. If the VNC Console tab doesn't work in your browser, you could also use an external VNC viewer such as TightVNC.
  3. Hit the down arrow key over and over again until you see a "grub" boot menu that looks similar to this:
    Image
  4. While the first option is highlighted, press the "e" key to edit the boot line. You will now be presented with a screen similar to this:
    Image
  5. On this screen, use the arrow keys to find the area highlighted:
    Image
  6. In the highlighted area, change ro to rw and add "init=/bin/bash" to the end. The end result should look like this:
    Image
  7. Press Control-X to boot the OS into a shell.
  8. Use the "passwd" command to define a new system password, then use the "reboot" command to reboot. If the "reboot" command fails, you can reboot the VDS using the "Server control" tab of your control panel instead.
  9. Log in using your new root password.
Post Reply