Vultr DocsLatest Content

How to Reset the Root Password of a Vultr Compute Instance

Updated on 06 November, 2025
Guide
Learn how to reset the root or administrator password on Vultr instances across Linux, BSD, and Windows systems using SystemRescue ISO or single-user mode.
How to Reset the Root Password of a Vultr Compute Instance header image

Resetting your root password is essential when you lose administrative access to your server due to forgotten credentials or misconfiguration. Using the SystemRescue ISO available in the Vultr customer portal, you can regain access without reinstalling the operating system or losing data.

Follow this guide to reset the root or administrator password of your Vultr Cloud Compute instance, without reinstalling the system or affecting your data.

Note
Before performing any of the steps below, take a snapshot of your instance to avoid potential data loss or application disruption.
Reset the Root Password on Ubuntu and Debian

In this section, you reset the root password for Ubuntu and Debian-based distributions using the SystemRescue ISO. Follow the steps below to reset the root password.

  1. Log in to the Vultr Customer Portal.

  2. Navigate to Compute under Products section.

  3. Select the instance for which you want to reset the root password.

  4. Click Settings, then select Custom ISO.

  5. Under the ISO Library, choose the SystemRescue ISO image and click Attach ISO and Reboot

  6. Open the web console by clicking the View Console icon on the instance information page.

  7. In the console, press <kbd class="key">Enter</kbd> to boot using the default SystemRescue kernel.

  8. After the instance boots, you see a prompt like below.

    [root@sysrescue ~]#

    This confirms that the system is running in SystemRescue mode.

  9. List the attached block devices.

    console
    # lsblk
    

    Output:

    NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
    loop0    7:0    0 647.7M  1 loop /run/archiso/sfs/airootfs
    sr0     11:0    1   720M  0 rom  /run/archiso/bootmnt
    vda    253:0    0   180G  0 disk 
    ├─vda1 253:1    0   260M  0 part
    └─vda2 253:2    0 179.7G  0 part
  10. Mount the root block device.

    console
    # mount /dev/vda2 /mnt
    

    This above command mounts the root /dev/vda2 block device on /mnt directory. Replace /dev/vda2 with your actual root partition.

  11. Change your system root path.

    console
    # chroot /mnt
    

    This command switches the shell's root directory to the mounted system under /mnt, allowing you to operate as if you're inside the original system. It enables you to run commands like passwd to modify the root user's password in the correct environment.

  12. Change the root user passwd.

    console
    # passwd
    

    When prompted, enter a new strong password twice to confirm. This updates the root user's credentials on the mounted system, restoring administrative access after reboot.

  13. Exit the chroot environment.

    console
    # exit
    
  14. Reboot the instance.

    console
    # reboot
    
  15. After the reboot, return to the Custom ISO section under Settings.

  16. Click Remove ISO to detach the rescue ISO and boot the server using root block device.

Conclusion

In this guide, you successfully reset the root or administrator password across various operating systems using rescue methods such as SystemRescue ISO and Single User Mode. Whether on Linux, BSD, or Windows, you restored administrative access without reinstalling the operating system or losing data. By following each platform-specific procedure, you ensured secure access to your Vultr instance and maintained system integrity.

Comments