This article provides instructions on how to reset the vcf and root user accounts for SDDC manager.
rw init=/bin/bash/usr/sbin/pam_tally2 -u root -r/usr/sbin/pam_tally2 -u vcf -r/usr/sbin/faillock --user root --reset/usr/sbin/faillock --user vcf --resetpasswd vcfpasswd rootreboot -fecho "" >/etc/security/opasswd VCF: chage -M 999 vcfRoot: chage -M 999 root
17. Make sure that the vCenter's root password is not set to 'never expire' or '-1': 'chage -l root' (or check the password status within the vCenter's VAMI page).
Root: chage -M 999 root
--------------------
Sometimes we might get additional error when implementing point 13, even when pw was changed in previous steps (below example for root):
vcf@vcenter01 [ ~ ]$ su root
Password:
Your account has expired; please contact your system administrator.
su: User account has expired
Even though you changed the password in the console, the system still "remembers" that the account was expired. When you see su: User account has expired, it means the OS is blocking the login based on the account's aging policy before it even checks if your password is correct.
You'll need to go back into that GRUB / bash shell one more time to force the account to be "unexpired."
Reboot into the bash shell (Step 8/9 of the KB) and run these specific commands to clear the expiration flags:
1. Force the account to "never" expire (temporarily): This resets the timers that are currently blocking your login.
chage -I -1 -m 0 -M 99999 -E -1 root
2. Ensure the account isn't locked from the "Authentication failure" shown in your screenshot:
For VCF 5.1+: faillock --user root --reset
For VCF 4.x - 5.0: pam_tally2 -u root -r
3. Verify the status: Run this command and look at the "Password expires" line. It should no longer show a date in the past.
chage -l root
4. Final Reboot:
reboot -f