Backtrack:  
 
by lunarg on December 9th 2019, at 15:45

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:

  1. Log on to the appliance management portal: https://ip-or-fqdn:5480/.
  2. In the Navigator, click on Access. On the right side (Access Settings), click on the Edit button.
  3. Tick the box next to Enable SSH Login for remote access, or if you rather prefer making the change through the VMRC, check the box Enable BASH Shell. Then click OK. The change is effective immediately.

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.

 
 
« November 2024»
SunMonTueWedThuFriSat
     12
3456789
10111213141516
17181920212223
24252627282930
 
Links
 
Quote
« Debating Windows vs. Linux vs. Mac is pointless: they all have their merits and flaws, and it ultimately comes to down to personal preference. »
Me