Help Center> Bare Metal Server> FAQ> Key Pair and Password FAQs> How Do I Change the Password of a BMS in Its OS?

How Do I Change the Password of a BMS in Its OS?

This section describes how to change the password of a BMS in its OS.

You are advised to reset the password on the console. If the password cannot be reset on the console, change the password in the BMS OS.

Change the Password for Logging In to a Linux BMS

CentOS 7.5 is used as an example.

  1. Remotely log in to the BMS.
  2. Run the passwd root command and enter the new password twice.

  3. Enter exit to log out and use the new password to log in to the BMS to check whether the password is changed successfully.

Change the Password for Logging In to a Windows BMS

Windows Server 2012 R2 is used as an example.

  1. Log in to the BMS remotely using MSTSC.
  2. Click in the lower left corner, choose Windows PowerShell and enter compmgmt.msc to open Computer Management.
  3. Choose System Tools > Local Users and Groups > Users, right-click the target username, for example, Administrator in the following figure.

  4. Select Set Password.

  5. Click Continue.

  6. Enter the new password twice to confirm it. Then, click OK.

  7. Press Ctrl+Alt+Delete to lock the BMS screen. Then unlock the screen and use the new password to log in.