On this page

Show all

(Optional) Installing the One-Click Password Reset Plug-in

Updated on 2024-07-12 GMT+08:00

To ensure that you can reset the password of each ECS created from the image with a few clicks, you are advised to install the one-click password reset plug-in (CloudResetPwdAgent) on the VM which is used as the image source.

Procedure

  1. Download the CloudResetPwdAgent software package.
    NOTE:

    The one-click password reset plug-in can be automatically updated only if an EIP is bound to the VM.

    You can download the CloudResetPwdAgent.zip package from:

    For 32-bit OSs: http://ap-southeast-1-cloud-reset-pwd.obs.ap-southeast-1.myhuaweicloud.com/linux/32/reset_pwd_agent/CloudResetPwdAgent.zip

    For 64-bit OSs: http://ap-southeast-1-cloud-reset-pwd.obs.ap-southeast-1.myhuaweicloud.com/linux/64/reset_pwd_agent/CloudResetPwdAgent.zip

  2. Run the following command to decompress CloudResetPwdAgent.zip:

    unzip -o -d Decompressed directory CloudResetPwdAgent.zip

    There is no special requirement for the directory that stores the decompressed CloudResetPwdAgent.zip. You can choose a directory as you need. If the directory is /home/PwdAgent/test, the command is as follows:

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

  3. Install the one-click password reset plug-in.
    1. Run the following command to open the CloudResetPwdAgent.Linux file:

      cd CloudResetPwdAgent/CloudResetPwdAgent.Linux

    2. Run the following command to add the execute permission for the setup.sh file:

      chmod +x setup.sh

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

      sudo sh setup.sh

    4. Run the following command to check whether the installation is successful:

      service cloudResetPwdAgent status

      If the status of CloudResetPwdAgent is not unrecognized service, the installation is successful. Otherwise, the installation failed.

      NOTE:

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

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback