VMware Cloud Foundation 4.5
The password reset issue was caused by a misconfiguration in the /etc/pam.d/system-password file which was either absent or incorrectly set up. This resulted in the failure of the password change command.
Perform the following steps to reset the ownership, permissions, and content of the /etc/pam.d/system-password file.
/etc/pam.d/system-password file:cp /etc/pam.d/system-password /home/vcf/# Begin /etc/pam.d/system-password
# use sha512 hash for encryption, use shadow, and try to use any previously
# defined authentication token (chosen password) set by any prior module
password requisite pam_cracklib.so ucredit=-1 lcredit=-1 dcredit=-1 difok=4 minlen=8 ocredit=-1 enforce_for_root
password requisite pam_pwhistory.so enforce_for_root use_authtok retry=3 remember=5
password required pam_unix.so sha512 shadow try_first_pass
# End /etc/pam.d/system-passwordchown root:root /etc/pam.d/system-password && chmod 644 /etc/pam.d/system-password