Reset root password on Debian/Ubuntu cloud server

To reset the root password of your server, you will need to boot into single user mode.

You need to open console first.

To Open the console:
Login to customer area and go to the server details page from Services menu > My Services > Click on service name > Click on Console

Debian / Ubuntu

  1. Open Console
  2. Click send CTRL+ALT+DEL to reboot the server. Or press Restart button from the control panel while you have the console open.
  3. As soon as the boot process starts, press ESC to bring up the GRUB boot prompt. You may need to turn the system off from the control panel and then back on to reach the GRUB boot prompt.
  4. You will see a GRUB boot prompt - press E to edit the first boot option. (If you do not see the GRUB prompt, you may need to press any key to bring it up before the machine boots)
  5. Find the kernel line (it starts with "linux /boot/"),  add init=/bin/bash at the end of the line.
  6. Press CTRL+X or F10 to boot.
  7. The system will boot and you will see the root prompt. Type mount -o remount,rw / and then passwd to change the root password and then reboot again.
  • debian, ubuntu, cloud server, reset, password
  • 2213 Users Found This Useful
Was this answer helpful?

Related Articles

Blocked ports on Cloud Servers

The following ports are blocked on all Cloud Server plans: TCP & UDP port 17 TCP & UDP...

Can I use my own ISO?

Yes, with the Upload ISO feature, you can upload your own bootable operating system image, mount...

How to set a rDNS/PTR record for my Cloud Server IP?

You can update rDNS record from cloud server portal. From the navigation menu:Services > My...

How many IPv4 can be assigned to a Cloud Server?

Cloud Servers are delivered with 1 IPv4 and you can add one more IP.

Cloud Servers are Managed?

We offer management plan for cloud servers with an additional fee and it's available to cPanel...