When attempting to change a user password (including root) on an ESXi host, the task fails with a critical error. This occurs when the password complexity requirements defined in the PAM configuration or Advanced System Settings are syntactically incorrect.
passwd results in: pam_passwdqc: Error parsing parameter "min=N0,N1,N2,N3": Invalid parameter value.passwd: Critical error - immediate abort/etc/pam.d/passwd do not persist after a reboot.The pam_passwdqc.so module requires the min parameter to contain exactly five positional integer values (e.g., min=N0,N1,N2,N3,N4), representing different character class requirements. Providing fewer than five values, or using invalid characters/spaces, causes a parsing failure.
Do not manually edit /etc/pam.d/passwd, as these changes are not persistent. Instead, use the ESXi Advanced System Settings.
Security.PasswordQualityControl.min parameter has five comma-separated values.retry=3 min=disabled,disabled,disabled,disabled,15retry=3 min=disabled,disabled,disabled,7,7passwd command from the ESXi CLI.