This topic describes how to reset the logon password of an ECS instance. The following information includes a Linux instance running CentOS 6.8 and a Windows instance running Windows Server 2008.

Issues to note

  • Before modifying the logon password in an instance, you need to connect to the instance first. For more information, see 连接方式导航.
  • After the logon password is modified in the instance, you need to restart the instance in the console to activate the password. Therefore, we recommend that you perform the operation in the console directly.

Modify the logon password in a Linux instance

  1. Log on to the target instance.
  2. Run the command passwd user name (for example passwd root).
  3. Enter a new password.
  4. Enter the new password again to allow the password change to take effect.

Modify the logon password in a Windows instance

  1. Log on to the target instance.
  2. Click Start > Run, enter compmgmt.msc, and then press the Enter key.
  3. In the Computer Management window, click System Tools > Local Users and Groups > Users.
  4. Right-click the user name to be modified (for example Administrator).
  5. Click Set Password.
  6. In the Set Password for Administrator dialog box, click Proceed. In the displayed dialog box, enter a new password in the New password and Confirm password fields, and then click OK for the password change to take effect.