How to Reset Linux root Password
Discover how to securely reset the root password on Ubuntu, Debian, CentOS, and other popular Linux distributions with our Reset Helper Image.
This guide outlines a simple and effective method to reset the root password on a Linux VPS without reinstalling the operating system or risking data loss. It explains how to regain access by booting the machine using a specially prepared password reset image. As EDIS supplies unmodified OS images without pre-installed KVM guest drivers, password changes via the admin panel are not supported. Nevertheless, by following the steps in this guide, you can securely set a new root password on your KVM-based Linux VPS. This method is suitable for a wide range of distributions, including Ubuntu, Debian, CentOS, Rocky Linux, AlmaLinux, and even Arch Linux.
Access the VPS Management Portal
-
Login to your VPS Management Portal
-
Locate your VPS from the Services tab
Mount Password Reset Helper Image and Boot
-
Click Mount ISO
-
In the drop-down list choose image: 1_Password-Reset-Helper.iso 💿
-
Check the box ✅ force reset & boot from the selected ISO then click on the Mount ISO button
-
Finish mount by clicking “Mount ISO”
-
Open the noVNC or connect by VNC client(RealVNC Viewer, TightVNC Viewer, UltraVNC)
Launch noVNC
-
Click “Launch noVNC” to see console output
-
Click into the noVNC browser window to set focus
-
Wait patiently while the ISO loads automatically:
-
Once the ISO has successfully loaded, you will be prompted to change the password:
-
Enter a new strong password and press Enter ⌨️
-
A new password will be displayed along with a prompt to continue. If the password is correct, press Enter to proceed:
-
The password has been reset. Press Enter to finish the process:
-
Next, the reboot process will begin automatically. When OS rebooted, you will be able to use the new password for root.
Unmount the ISO
Once the password is reset, make sure to unmount the ISO (Password Reset Helper) image. This can be done in the KVM management portal.
Disable VNC access
Now close the noVNC(a tab window) and disable VNC access in the KVM management portal.
Credentials Updated Successfully! 🐧
The root password for Linux has been successfully reset using the provided recovery image. The system is now configured with the updated credentials, and administrative access has been restored. You can proceed with any necessary maintenance or configuration tasks as needed, knowing that control of the environment has been re-established.
Was this page helpful?