You can disable password expiration from the command-line when logging on using SSH or by enabling the Bash shell. Note that you will need root privileges (i.e. root account) to make this change.
If shell access is not enabled, you need to enable it first:
Log on to the shell using either SSH (using PuTTY or another application) or the VMRC. Note that you will first be logged in to a limited CLI. The prompt will display Command>.
Enter the BASH shell by typing and then pressing Enter:
A regular BASH shell prompt will appear: root@hostname [ ~ ]#
At the command-line, type in the following and press Enter:
chage -M -1 -E -1 root
If the change is successful, you will not get any output and the prompt will appear again. If your password is already expired, you will be prompted that you need to change your password:
You are required to change your password immediately (root enforced)
In that is the case, change the password at the shell:
You will be prompted twice to enter the new password. Note that you won't see any output when typing, but if done correct, you will see a message telling you the password was updated successfully.