All Products
Search
Document Center

:Reset the logon password for an RDS Custom instance

Last Updated:Nov 28, 2025

If you did not set a password when you created an RDS Custom instance or if you have forgotten the password, you can reset the logon password for the instance. This topic describes how to reset the logon password for an RDS Custom instance.

Procedure

Method

Instance restart required

Instance logon required

Instance status

Method 1: Reset the instance logon password in the console

Yes

No

Running

Method 2: Reset the instance logon password from within the instance

No

Yes

Running

Method 1: Reset the instance logon password in the console

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

  2. Click the instance ID to navigate to 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 to Restart immediately.

    Warning

    Restarting the instance stops it from running and may interrupt your services. Perform this operation during off-peak hours.

  5. Click OK.

    When the instance status changes to Running, the password is reset.

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

Method 2: Reset the instance logon password from within the instance

If you are logged on to the instance's operating system, you can change the logon password directly without accessing the RDS Custom console. The new password takes effect immediately, and you do not need to restart the instance. The following steps use an operating system based on the default image (Alibaba Cloud Linux 2.19) as an example.

  1. Connect to the RDS Custom instance.

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

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

  4. Enter the new password again and press Enter.

    If a message similar to the following is returned, the instance logon password is reset.

    image

References

Introduction to RDS Custom