This KB provides the way to recover access to a vCenter Server Appliance with root account.
With the default settings, the vCenter Server Appliance's root user password expires after 90 days.
Process to Reset the Root Password in vCenter Server Appliance(VCSA):
To reset the root password for the vCenter Server Appliance:
rw init=/bin/bash
The line should look like the following screenshot:
mount -o remount,rw / pam_tally2 --user=root --reset/usr/sbin/faillock --user root --resetumount / reboot -fchage -I -1 -m 0 -M 99999 -E -1 rootchage -l rootchage -l rootLast password change : Aug 20, 2024Password expires : Nov 18, 2024Password inactive : neverAccount expires : neverMinimum number of days between password change : 0Maximum number of days between password change : 90Number of days of warning before password expires : 7
Additionally, to check the password details for the [email protected] (default SSO) account, run the following command from the vCenter SSH session:
chage -l sso-user
example:chage -l sso-user
Last password change : Feb 14, 2023 Password expires : May 15, 2023 Password inactive : May 15, 2023 Account expires : never Minimum number of days between password change : 1 Maximum number of days between password change : 90 Number of days of warning before password expires : 7
For 7.0 U1 and 6.7 U3j there are a few changes:
Changes in 8.0 U2 and above versions:
Reset vCenter Server Appliance root password without reboot (6.7u1 / 7.x / 8.x).