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

You are advised to install CloudResetPwdAgent on the ECS that is used to create an image. This plug-in allows you to reset the password of each ECS created from the image with a few clicks.

Procedure

  1. Download the CloudResetPwdAgent software package.

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

    You can download the CloudResetPwdAgent.zip package from the following link:

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

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

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

    There is no special requirement for the directory that stores the decompressed CloudResetPwdAgent.zip. You can customize the directory.

    unzip -o -d Decompressed directory CloudResetPwdAgent.zip

    For example:

    If the decompressed directory is /home/linux/test, the command is as follows:

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

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

      cd CloudResetPwdAgent/CloudResetPwdUpdateAgent.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 commands to check whether the installation is successful:

      service cloudResetPwdAgent status

      service cloudResetPwdUpdateAgent status

      If the status of CloudResetPwdAgent and CoudResetPwdUpdateAgent is not unrecognized service, the installation is successful. Otherwise, the installation fails.

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