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:
shell
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:
passwd
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.
« ‹ | December 2024 | › » | ||||
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |