you can change root password by using this KB
What I could not understand was, why I still could log into the appliance but not change the password.
As a sidenote:
I used the Console in the ESXi UI. It is really a nuisance, when the keyboard layouts for languages are different / wrong. Even the german keyboard layout is not really german. "y" and "z" are still misplaced. German layout in the console places the "/" on the key labelled "#" etc. Also the input seems hypersensitive. Hitting a key once can result in a double input. That is especially bad since you cannot see, what you entered as password. When the login did not accept the password after 3 times, i resorted to just type 6 times "a" as password and the change the password after being able to enter the configuration page.
1 person found this helpful
I had this same problem and fixed it by SSHing into the vCenter appliance
I found the new password I was using was too similar. I reset it to a completly different one then used the passwd command to reset it back to the right one.
I was then able to disable password expiry via the option in the web UI
Hi, how did you fix it through SSH, if i type password.update and enter and confirm the password I get, "Error in method: Could not update the password. (code com.vmware.applmgmt.err_set_password_failed_update)
Have tried difference passwords with same results.
Can't upgrade because of expired/expiring password and can't change or set it to never expire, vmware!
I am in the same situation. The root password shows expired 1970. I cannot change it from the gui and when I ssh to the appliance and attempt to change it with user.update.password I get the error
Error in method: Could not update the password. (code
4 people found this helpful
I figured it out.
You can enable Bash. Then SSH to the Appliance. Enter the command "shell"
Then normal linux command "passwd" for the new password.
Log back into the gui and you can then disable the password expiration and then proceed with the appliance update.
Issue:- Resetting Appliance (vCenter, vRA,etc.) password
Troubleshooting Steps #
1. Apply KB # 196 (VMware Knowledge Base) for Repeated characters when typing in remote console
2. Reboot appliance and Go to grub >>>Type e
3. Scroll to the second line displaying the kernel boot parameters >>> Type e >>> Type init=/bin/bash >>> Enter >>> Type b
4. System boots to a shell # >>> Type passwd >>> change new password
5. Unlock root account - pam_tally --user root --reset or faillog -u root -r >>> Reboot .
Use above troubleshooting steps and issue will get resolve
1 person found this helpful
Had the same issue today, really mind boggling. Was lucky enough to have SSH enabled, so I logged on via SSH
Then I needed to enter "bash" via bash command and there changed the password via passwd - Needs to be sure to maintain complexity.
After a while the UI accepted the new password and password expiration was set in the future. I also could change the password via GUI and set password expiration to "NO" ... which solves all possible future problems.
Also, if You want to update vCenter via GUI and have an expired password, the update won't work ... This is really kinda "wtf" issue.
And to the "verified response" - really the KB you posted is for resetting a FORGOTTEN password, not this specific issue... You suggested a required reboot procedure, while the solution for OP's problem was not really that complex. I recommend your devs setting password expiration requirement to "OFF" by default ...