Help Center/ Bare Metal Server/ FAQs/ Key Pair and Password FAQ/ How Do I Change the OS Password of a BMS?
Updated on 2024-05-09 GMT+08:00

How Do I Change the OS Password of a BMS?

You are advised to reset the password on the console. Alternatively, you can log in to the BMS and change the password in its 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, enter the new password, and retype the new password.

  3. Enter exit to log out and use the new password to log in to the BMS to check whether you have changed the password 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, confirm the password, and click OK.

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