If you lost or forgot the root account password, you can reset it.

If you know the root account password and want to change it due to security or other reasons, see How do I change the root password.

Procedure

  1. In the vSphere Web Client, restart the guest operating system of the vCloud Usage Meter appliance.
  2. Click the console and wait for the Photon screen to appear.
  3. Press e to go to the GNU GRUB boot menu editor.
    The GNU GRUB menu remains on the screen for several seconds before it starts the boot sequence.
  4. Use the arrow keys to go to the line that begins with linux and append the rw init=/bin/bash string at the end of the line.
  5. To boot the system, press Ctrl+X or F10.
  6. To reset the root account password, enter the passwd commands in the console.
  7. Enter a new password, then reenter the same password to confirm the change.
    Note: The passwords for all user accounts must meet the following requirements.
    • Passwords must be at least eight characters long.
    • Passwords must contain at least one uppercase letter.
    • Passwords must contain at least one lowercase letter.
    • Passwords must contain at least one numeral from 0 through 9.
    • Passwords must contain at least one special character.
    • Passwords must contain at least four different characters in comparison to the old password.
    • Passwords must be different from the last five passwords.
    • Passwords must verified against the existing password dictionary list. For information, see How do I verify the password strength compliance.
  8. Restart the vCloud Usage Meter appliance by using the vSphere Web Client.

Results

You successfully changed the root account password of the vCloud Usage Meter appliance.