Symptoms:
Unable to change a password for user root / vcf if any of it got expired . Even if a brand new password has been provided which is not used in the past gets rejected
VMware Cloud Foundation 4.x
The file "system-password" under /etc/pam.d is corrupted or any modification has been done . Also the order of the file matters . Example ,
Similar File structure that do not allow us to change password
> cat /etc/pam.d/system-password # 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 dcredit=-1 ucredit=-1 lcredit=-1 ocredit=-1 minlen=8 minclass=4 difok=4 retry=3 maxsequence=0 enforce_for_root password required pam_unix.so sha512 shadow try_first_pass password required pam_pwhistory.so enforce_for_root use_authtok remember=5 retry=3 # End /etc/pam.d/system-password
Similar File Structure that Allow us to change password
❯ cat /etc/pam.d/system-password # 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 password required pam_pwhistory.so enforce_for_root remember=5 retry=3 password required pam_unix.so sha512 shadow try_first_pass # End /etc/pam.d/system-password
Ensure you have taken a snapshot of the SDDC Manager VM before making any changes to the configuration files.
NOTE: There will be two file /etc/pam.d/system-password and /etc/pam.d/system-passwordr watch out for the "r"