This KB provides instructions for regaining access to the root account on a vCenter Appliance.
By default, the vCenter Appliance root password expires every 90 days.
Note: Resetting the vCSA password can be done without a reboot, provided the SSO administrator account is known. Refer to Reset vCenter Server Appliance root password without reboot (6.7u1 / 7.x / 8.x)
Change the vCenter root password for the vCenter Appliance, using the steps here: Change the Password and Password Expiration Settings of the Root User
Reset the vCenter root password for the vCenter Appliance using GRUB:
Note:
Before proceeding with the steps below, take a backup and a snapshot of the vCenter Appliance. If the vCenter is part of an Enhanced Linked Mode (ELM) replication setup, also take a backup or an offline (powered-off) snapshot of all replicating vCenter ELM nodes.
If the vCenter Appliance is on an ESXi host, it manages and connects directly to that host to perform these steps.
rw init=/bin/bash
mount -o remount,rw / pam_tally2 --user=root --resetpam_tally2 is deprecated in Photon 4, use faillock instead: /usr/sbin/faillock --user root --resetpasswdumount /reboot -fOptional:
chage -I -1 -m 0 -M 99999 -E -1 rootchage -l rootchage -l rootLast password change : [example date]Password expires : [example date]Password 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 : [example date] Password expires : [example date] Password inactive : [example date] 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