If you have lost the root user password and cannot log in, this guide will help you reset it.
To reset the password, you will need console access to the server. Go to the Customer portal → Server page → VNC Console. This provides direct access to the server's console, even if SSH is unavailable.
To reset the password:
The reboot and shutdown -r, commands, as well as the Ctrl+Alt+Del button, will not work at this stage, as they rely on the init daemon, which will be replaced with /bin/bash.
Use the reboot -f command or manually start init using exec /sbin/init.
To reset the root user password, complete the following steps:
After the BIOS screen, the GRUB boot menu will appear
*Ubuntu)
linux /vmlinuzro parameter to rwinit=/bin/bash
The system will boot directly into a console without requiring login credentials
passwd root
sync
reboot -f
Once the system reboots, you can log in as root using the new password.