Updated on 2025-08-08 GMT+08:00

Managing Account Passwords

Scenarios

The resources displayed on the account management page are synchronized from Resource Management and Application Management. You can use Import Account to manage host accounts and passwords online, use Synchronize Account to synchronize new host accounts, use View Account Password to view host accounts and passwords, and use Reset Password to reset host passwords.

  • Import Account: Account management enables online hosting of host accounts and passwords. You can import the initial passwords of host accounts using an Excel file. After the import, you can click View Account Password to view the account passwords online.
  • Synchronize Account: If you have added a host account on the OS, select the host on the Account Management page and click Synchronize Account to synchronize the new OS account. Note: If you want to change the password of the new account, configure the account in the account baseline. (Ensure that the host is in the baseline.)
  • View Account Password: You can view the account passwords of resources that are hosted online and resources with the password change policy enabled. Note: Only the account passwords of normal accounts and imported accounts can be obtained.
  • Reset Password: This function will reset the passwords of all accounts (except the imported accounts) in the normal state, and the change is irreversible. After the password is reset, you can view the password reset result on the View Account Password page.

Precautions

  • The imported host accounts are not managed. If you want to automatically manage the imported accounts, you can modify the global baseline or create an account baseline to add these accounts. Then, the system will immediately manage these host accounts.
  • DCS, RDS, and DMS host accounts that are imported cannot be managed, that is, their passwords cannot be automatically changed.

Importing an Account

  1. Log in to COC.
  2. In the navigation pane on the left, choose Resource O&M > Automated O&M.
  3. Go to the Routine O&M page and click Account Management.
  4. Choose Accounts > By Resource or By Application.

    • By Resource applies to all purchased host instances.
    • By Application applies to purchased hosts that have been bound to an application. If you select By Application, you need to select the target application or component.

  5. Select a resource type.

    By default, Elastic Cloud Server (ECS) is selected.

  6. Click Import Account.

    • Upload File: Add the host account and password information in an Excel file. You can only upload Excel files. The number of accounts cannot exceed 500, and the file size cannot exceed 1 MB.
      1. Click download template and complete the downloaded template.
      2. Click Upload File to add the completed excel file.
        Table 1 Account template parameters

        Parameter

        Description

        Example Value

        Host resource ID

        Enter the resource ID.

        You can obtain the resource ID from the Name/ID column in the resource list.

        -

        Account Type

        Select an account type based on the type of the imported resource.

        Linux

        Account

        Enter the name of the account to be imported.

        The account name can contain 1 to 64 characters.

        root

        Account Class

        The options are Normal and Privileged.

        • Normal: read-only account
        • Privileged: non-read-only account

        Normal

        Account Password

        Enter a password of the account.

        The password can contain 8 to 64 characters.

        -

      3. Click Import.

        The account is imported.

Synchronizing an Account

  1. Log in to COC.
  2. In the navigation pane on the left, choose Resource O&M > Automated O&M.
  3. Go to the Routine O&M page and click Account Management.
  4. Choose Accounts > By Resource or By Application.

    • By Resource applies to all purchased host instances.
    • By Application applies to purchased hosts that have been bound to an application. If you select By Application, you need to select the target application or component.

  5. Select a resource type.

    By default, Elastic Cloud Server (ECS) is selected.

  6. Select the resources whose accounts need to be synchronized and click Synchronize Account.

    The account is synchronized.

Viewing the Account Password

  1. Log in to COC.
  2. In the navigation pane on the left, choose Resource O&M > Automated O&M.
  3. Go to the Routine O&M page and click Account Management.
  4. Choose Accounts > By Resource or By Application.

    • By Resource applies to all purchased host instances.
    • By Application applies to purchased hosts that have been bound to an application. If you select By Application, you need to select the target application or component.

  5. Select a resource type.

    By default, Elastic Cloud Server (ECS) is selected.

  6. Locate the target resource and click View Account Password in the Operation column.

    You can only query the account and password for one host at a time. Ensure that the password change status of the target host account is Succeeded, or that the password change failure cause is that the target account is not managed. Otherwise, the password may fail to be obtained. If password change status is Failed, rectify the fault based on the failure cause.

    • Conditions for changing the password of an ECS host:
      • The resources status of the host is Running.
      • The UniAgent status of the host is Running and the UniAgent version is 1.1.5 or later.
      • The accounts on the host OS are the same as those in the bound account baseline.
    • Conditions for changing the password of an added ECS: The password change policy has been enabled.
    • Conditions for periodic password change of a managed host: The password change task has been bound to the host.

  7. Click Obtain Password in the Operation column. View the password.

    If no data is displayed on the Password Change Details page, check whether the host is bound to a component. If yes, check whether the automatic management policy of the bound component baseline or of the component dimension is enabled. If the host is not bound to a component, check whether the automatic management policy of the global dimension is enabled.

Resetting a Password

  1. Log in to COC.
  2. In the navigation pane on the left, choose Resource O&M > Automated O&M.
  3. Go to the Routine O&M page and click Account Management.
  4. Choose Accounts > By Resource or By Application.

    • By Resource applies to all purchased host instances.
    • By Application applies to purchased hosts that have been bound to an application. If you select By Application, you need to select the target application or component.

  5. Select a resource type.

    By default, Elastic Cloud Server (ECS) is selected.

  6. Locate the target resource and choose More > Reset Password in the Operation column.
  7. Click OK.

    The password reset task is complete.