Help Center > > FAQs> Passwords and Key Pairs> Passwords> How Can I Change the Password for Logging In to a Linux ECS?

How Can I Change the Password for Logging In to a Linux ECS?

Updated at: Jun 18, 2020 GMT+08:00

Solution

  1. Use the existing key file to log in to the Linux ECS as user root.
  2. Run the following command to reset the password of user root:

    passwd

    To reset the password of another user, replace passwd with passwd username.

  3. Enter the new password as prompted.
    New password:
    Retype new password:
    If the following information is displayed, the password has been reset:
    passwd: password updated successfully

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel