How Do I Change a Password Without Restarting the Corresponding Instance?
When managing cloud resources (such as ECSs and BMSs), you can use the public script provided by COC to change the password of the host account without restarting the instance (to prevent service interruption). Currently, ECSs and BMSs are supported. The operation logic is as follows:
When running a public script on COC, you can select an instance only when the following conditions are met:
The resource instance information has been synchronized to COC. For details, see Synchronizing Resources.
The UniAgent has been installed for the instance and is running properly.
To install the UniAgent on an instance, you need to provide the administrator account and password of the instance. If UniAgent is not installed on the resource instance and you forget the password, UniAgent cannot be installed and the public script for changing the password cannot be executed.
A Linux ECS is used as an example to describe how to change the password of user root.
- Log in to COC.
- In the navigation pane on the left, choose Resource O&M > Automated O&M.
- In the Routine O&M area, click Script Management.
- On the Public Scripts tab page, locate the script for changing password of the administrator account and click Execute in the Operation column.
- Enter a new password. (The password must meet the password rule, for example, the password must contain 8 to 30 characters, including uppercase letters, digits, and special characters.)
- Add the target ECS.
- Click OK. The system remotely delivers the script to the instance and automatically runs the script. You do not need to log in to the instance terminal during the process.
After the script is executed, you can use the new password to log in to the instance using SSH. The instance is in operation during the entire process.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot