Changing the Login Password on an ECS
Scenarios
This section describes how to change the password for logging in to an ECS when the password is about to expire, the password is forgotten, or you are logging in to the ECS for the first time. It is a good practice to change the initial password upon the first login.
You are advised to reset the ECS login password on the management console by referring to Resetting the Password for Logging In to an ECS on the Management Console.
Prerequisites
The ECS can be logged in.
Background
Table 1 shows the ECS password complexity requirements.
Parameter |
Requirement |
Example Value |
---|---|---|
Password |
|
YNbUwp!dUc9MClnv
NOTE:
The example password is generated randomly. Do not use it. |
Windows
- Log in to the ECS.
For details, see Logging In to a Windows ECS.
- Press Win+R to start the Run dialog box.
- Enter cmd to open the command-line interface (CLI) window.
- Run the following command to change the password (the new password must meet the requirements described in Table 1):
net user Administrator New password
Linux
- Use the existing key file to log in to the ECS as user root through SSH.
For details, see Login Using an SSH Key.
- Run the following command to reset the password of user root:
passwd
To reset the password of another user, replace passwd with passwd username.
- Enter the new password as prompted. Ensure that the new password meets the requirements described in Table 1.
New password: Retype new password:
If the following information is displayed, the password has been changed:passwd: all authentication tokens updates successfully
Passwords FAQs
- How Can I Change the Password for Logging In to a Linux ECS?
- What Is the Default Password for Logging In to a Linux ECS?
- How Can I Set the Validity Period of the Image Password?
- Changing the Login Password on an ECS
- Resetting the Password for Logging In to a Windows ECS Without the Password Reset Plug-in Installed
- Resetting the Password for Logging In to a Linux ECS Without the Password Reset Plug-in Installed
- What Should I Do If the System Displays a Message Indicating that the Password Is Incorrect When I Remotely Log In to My ECS?
- What Should I Do If I Cannot Log In to My ECS Using the Initial Password After I Use It for a Period of Time?
- Why Does Login to My ECS Using the Reset Password Fail?
- Why Am I Seeing the Message Indicating That the Port Is Used by a One-Click Password Reset Plug-in?
- Why Does the One-Click Password Reset Plug-in Use Too Much VIRT and SHR?
- Disabling SELinux
- What Should I Do If the One-Click Password Reset Plug-ins Installed on a Linux ECS Fail to Be Started?
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.
Chatbotmore