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 six characters long.
    • Passwords must contain at least one numeral from 0 to 9.
    • Passwords must contain at least one lowercase letter.
    • Passwords must contain at least one uppercase letter.
    • Passwords must contain at least one special character.
  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.