(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
- 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
- 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
- Install the one-click password reset plug-in.
- Run the following command to open the CloudResetPwdUpdateAgent.Linux file:
cd CloudResetPwdAgent/CloudResetPwdUpdateAgent.Linux
- Run the following command to add the execute permission for the setup.sh file:
chmod +x setup.sh
- Run the following command to install the plug-in:
- 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.
- Run the following command to open the CloudResetPwdUpdateAgent.Linux file:
Last Article: Configuring Cloud-Init
Next Article: Configuring NetworkManager
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.