Resetting the VCF Usage Meter root password.
search cancel

Resetting the VCF Usage Meter root password.

book

Article ID: 324882

calendar_today

Updated On:

Products

VMware Usage Meter

Issue/Introduction

This article provides steps to reset the VCF Usage Meter root password.


Environment

VCF Usage Meter 9.x

Cause

Unable to log into VCF Usage Meter with root account and need to reset password.

Resolution

To reset the VCF Usage Meter root password:

  1. In the vSphere Web Client, restart the guest operating system of the VCF Usage Meter appliance.

  2. Click the console and wait for the Photon OS splash 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. To confirm the change, enter a new password, then reenter the same password.

  8. Restart the VCF Usage Meter appliance by executing the command reboot -f

 

Additional Information

If the root account is locked, follow the below steps to unlock it

  1. In the vSphere Web Client, restart the guest operating system of the VCF Usage Meter appliance.
  2. Click the console and wait for the Photon OS splash 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. Check Lockout status with command:
    faillock --user root

    This will display the number of failed attempts and the time of the last failure.

  7. Unlock the root account by running the below command

    faillock --reset --user root
  8. Restart the VCF Usage Meter appliance by executing the command
    reboot -f


Password Requirements for the VCF Usage Meter User Accounts