All Products
Search
Document Center

:Reset the logon password for an RDS Custom instance

Last Updated:Jun 20, 2026

This topic describes how to reset the logon password for an RDS Custom instance if you forgot the password or did not set one during creation.

Procedure

Method

Instance restart required

Instance logon required

Instance status

Method 1: Reset the logon password in the console

Yes

No

Running

Method 2: Reset the logon password from within the instance

No

Yes

Running

Method 1: Reset password in the console

  1. Log on to the RDS console. In the left-side navigation pane, click RDS Custom > Custom Instances. In the top navigation bar, select a region.

  2. Click the instance ID to open the instance details page.

  3. On the Basic Information page, in the Other Information section, click Reset Password.

  4. In the Reset Password dialog box, set a new password, and select Yes.

    Warning

    Restarting the instance interrupts its services, which can disrupt your business. Perform this operation during off-peak hours to minimize the impact.

  5. Click OK.

    The password reset is complete when the instance status changes to Running.

  6. (Optional) Use the new password to connect to the RDS Custom instance. For more information, see Connect to an RDS Custom instance.

Method 2: Reset password from within the instance

If you are logged in to the instance's operating system, you can change the logon password directly from the command line. The new password takes effect immediately, and you do not need to restart the instance. The following example uses the default OS image, Alibaba Cloud Linux 2.19.

  1. Connect to an RDS Custom instance.

  2. Run the following command to change the instance logon password:

    sudo passwd <username>
  3. Enter the new password and press the Enter key.

  4. Re-enter the new password and press the Enter key.

    The following output indicates that the password has been successfully reset.

    Changing password for user root.
    New password:
    Retype new password:
    passwd: all authentication tokens updated successfully.

Related topics

ApsaraDB RDS Custom overview