Help Center/ Elastic Cloud Server/ User Guide/ Passwords and Key Pairs/ Password Reset/ One-Click ECS Password Reset Plug-in/ Updating the One-Click Password Reset Plug-in for an Individual ECS
Updated on 2026-03-06 GMT+08:00

Updating the One-Click Password Reset Plug-in for an Individual ECS

The offline password reset depends on the one-click password reset plug-in. If the plug-in has been updated for security purposes, you can update the plug-in for an individual ECS by referring to this section.

This section describes how to update the one-click password reset plug-in for an individual ECS.

Notes

  1. The one-click password reset plug-in can be updated only after an EIP is bound to the ECS.
  2. By default, the one-click password reset plug-in has been installed on ECSs created using public images by default. Uninstall the plug-in and install the latest version.

Prerequisites

  • You can remotely log in to the ECS.
  • For a Windows ECS, ensure that the C: drive is writable and the available space is greater than 300 MB.
  • For a Linux ECS, ensure that the root directory is writable and the available space is greater than 300 MB.
  • For a Linux ECS, disable SELinux if it has been enabled.
  • For an ECS created from the SUSE 11 SP4 image, the memory must be greater than or equal to 4 GiB.
  • DHCP is enabled in the VPC that the ECS belongs to.
  • The ECS network connectivity is normal.
  • The NIC has been set to DHCP so that the ECS can dynamically obtain an IP address.

    For details about how to set the NIC to DHCP for a Linux ECS, see Configuring DHCP.

    For details about how to set the NIC to DHCP for a Windows ECS, see Configuring DHCP.

  • The outbound rule of the ECS security group must meet the following requirements:
    • Protocol: TCP
    • Port: 80
    • Destination: 169.254.0.0/16
    If you use the outbound rules of the default security group, the preceding requirements are met by default. The outbound rules of the default security group are as follows:
    • Protocol: All
    • Port: All
    • Destination: 0.0.0.0/0

Updating the One-Click Password Reset Plug-in on a Linux ECS

  1. Uninstall the plug-in.

    1. Log in to the ECS.
    2. Switch to the bin directory and delete the cloudResetPwdAgent service.

      cd /CloudrResetPwdAgent/bin

      sudo ./cloudResetPwdAgent.script remove

    3. Delete the plug-in.

      sudo rm -rf /CloudrResetPwdAgent

    4. Check whether CloudResetPwdUpdateAgent exists. If it exists, go to the bin directory and delete the cloudResetPwdUpdateAgent service.

      cd /CloudResetPwdUpdateAgent/bin

      sudo ./cloudResetPwdUpdateAgent.script stop

      sudo ./cloudResetPwdUpdateAgent.script remove

    5. Delete the plug-in.

      sudo rm -rf /CloudResetPwdUpdateAgent

  2. Download the plug-in package CloudResetPwdAgent.zip and verify its integrity by referring to Obtaining the One-Click Password Reset Plug-in and Verifying Its Integrity (Linux).

    The package can be stored in any directory.

  3. Run the command below to decompress CloudResetPwdAgent.zip.

    The package can be decompressed to any directory.

    unzip -o -d decompressed-directory CloudResetPwdAgent.zip

    For example:

    If the plug-in is decompressed to /home/linux/test, run the following command:

    unzip -o -d /home/linux/test CloudResetPwdAgent.zip

  4. Install the one-click password reset plug-in.

    1. Run the following command to access the CloudResetPwdAgent.Linux file:

      cd {plug-in decompressed directory}/CloudResetPwdAgent/CloudResetPwdAgent.Linux

      For example:

      If the plug-in is decompressed to /home/linux/test, run the following command:

      cd /home/linux/test/CloudResetPwdAgent/CloudResetPwdAgent.Linux

    2. Run the following command to grant execute permissions to the setup.sh file:

      chmod +x setup.sh

    3. Run the following command to install the plug-in:

      sudo sh setup.sh

      If "cloudResetPwdAgent install successfully." is displayed and "Failed to start service cloudResetPwdAgent" is not displayed, the installation is successful.
      • You can also check whether the password reset plug-in has been installed using the methods provided in 1.
      • If the installation failed, check that the installation environment meets requirements and install the plug-in again.

  5. Modify the file permissions of the password reset plug-in.

    chmod 700 /CloudrResetPwdAgent/bin/cloudResetPwdAgent.script

    chmod 700 /CloudrResetPwdAgent/bin/wrapper

    chmod 600 /CloudrResetPwdAgent/lib/*

Updating the One-Click Password Reset Plug-in on a Windows ECS

  1. Uninstall the plug-in.

    1. Uninstall and delete CloudResetPwdAgent.
      1. Switch to the C:\CloudResetPwdAgent\bin folder.
      2. Double-click UninstallApp-NT.bat.
      3. Delete the files in C:\CloudResetPwdAgent.
    2. (Optional) Uninstall and delete CloudResetPwdUpdateAgent.
      The plug-in varies depending on the Windows version. Check whether CloudResetPwdUpdateAgent exists. If it exists, perform the following operations to uninstall and delete it. If it does not exist, skip this step.
      1. Go to the C:\CloudResetPwdUpdateAgent folder.
      2. Double-click UninstallApp-NT.bat.
      3. Delete the files in C:\CloudResetPwdUpdateAgent.

        If the deletion fails, delete CloudResetPwdUpdateAgent from Task Manager first and then delete the files in C:\CloudResetPwdUpdateAgent.

  2. Download the plug-in package CloudResetPwdAgent.zip and verify its integrity by referring to Obtaining the One-Click Password Reset Plug-in and Verifying Its Integrity (Windows).

    The package can be stored in any directory.

  3. Decompress CloudResetPwdAgent.zip.

    The package can be decompressed to any directory.

  4. Install the plug-in.

    1. Double-click setup.bat in CloudResetPwdAgent.Windows.

      The password reset plug-in starts to be installed.

    2. View Task Manager and check whether the installation is successful.

      If cloudResetPwdAgent is displayed in the Task Manager, as shown in Figure 1, the installation is successful. Otherwise, the installation failed.

      Figure 1 Successful plug-in installation

      If the installation failed, check that the installation environment meets requirements and install the plug-in again.

Follow-up Procedure

  • After the one-click password reset plug-in is updated, you can add it to the startup items if it cannot automatically start upon ECS startup. For details, see What Do I Do If the One-Click Password Resetting Plug-In Failed to Start?
  • After the one-click password reset plug-in is updated, do not delete the CloudResetPwdAgent process. Otherwise, one-click password reset will not be available.
  • If you have updated the one-click password reset plug-in, newly created ECSs work in PIPE mode by default to prevent the plug-in from using service ports. Existing ECSs still work in AUTO mode, in which the plug-in selects an idle port with the smallest port number from 31000 to 32999.