How Can I Set the Validity Period of the Image Password?
If an ECS cannot be logged in because of expired image password, you can contact the administrator for handling.
If the ECS can still be logged in, you can perform the following operations to set the password validity period.
Procedure
The following operations use EulerOS 2.2 as an example.
- Log in to the ECS.
- Run the following command to check the password validity period:
The value of parameter PASS_MAX_DAYS is the password validity period.
- Run the following command to change the value of parameter PASS_MAX_DAYS:
chage -M 99999 user_name
99999 is the password validity period, and user_name is the system user, for example, user root.
You are advised to configure the password validity period as needed and change it at a regular basis.
- Run command vi /etc/login.defs to verify that the configuration has taken effect.
Figure 1 Configuration verification
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