For Cloud Servers and Virtual Server Clouds with Ubuntu Server 14.04 LTS
Can't find/remember the root password of your Cloud Server or Virtual Server Cloud? We will show you how you can still access it and assign a new password.
If you did not define your own password when creating the Cloud Server and did not change the initial password that was assigned automatically, you can display the initial password in the Cloud Panel at any time.
Launch the KVM console.
Restart the server through the Cloud Panel and track the boot messages in the KVM console.
From the GRUB2 Start menu, press e to edit the boot options.
At the end of the line beginning with linux, add the following option: init=/bin/bash
Press F10 to continue the boot process. The server will now boot into a root shell without prompting for a password.
Once the shell is ready, the first step is to mount the system partition with write access:
mount -o remount,rw /
Now you can change the password with passwd:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Finally, you have to restart the server. reboot: reboot -f
The server will now boot back into the normal system. You can then log in with the new password.