To reset the root password for theFleet Management Appliance:
- Before proceeding with the steps below, take a snapshot of the Fleet Management Appliance.
- Caution: Do not skip this step
- Reboot the Fleet Management Appliance.
- After the Photon OS starts, press the e key to enter the GNU GRUB Edit Menu.
- Locate the line that begins with the word "Linux".
- Append these entries to the end of the line -
rw init=/bin/bash
- Press the F10 key to continue booting.
- Run the command -
mount -o remount,rw /
- Unlock the 'root' account using below command if it is already locked due to multiple logins with incorrect password.
/usr/sbin/faillock --user root --reset
- In the Command prompt, enter the command passwd and provide a new root password (twice for confirmation):
passwd
- Unmount the filesystem by running this command (yes, the unmount command is umount - it's not a spelling error):
umount /
- Reboot the vCenter Server Appliance by running this command:
reboot -f
- Verify access the vCenter Server Appliance using the new root password.
- Remove the snapshot taken initially if applicable.