CNA-Tech / PKS-Ninja

Other
134 stars 162 forks source link

NSX Manager passwords expire on Feb 14 - 2020 #714

Open burkeazbill opened 4 years ago

burkeazbill commented 4 years ago

In the PKS-Ninja-T1-NsxtInstalled-0.1-RC2 and probably other "T1" templates, the root, audit, and admin passwords will expire on Feb 14, 2020. The usual "chage" linux command only appears to work for a few moments, then the expiration reverts back to Feb 14.

Thanks to the VMware NSX Livefire team for the following resolution steps: SSH to your NSX Manager as root and issue the following:

su admin
set user root password-expiration 9999
set user admin password-expiration 9999
set user audit password-expiration 9999
# Now confirm one or all the users:
get user root password-expiration
# All done !
exit

Once you've completed the steps above, the following command should reflect the new expiration date for the account specified:

root@nsxmgr01a-1: chage -l root
Last password change                                    : Nov 16, 2019
Password expires                                        : Apr 02, 2047
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 9999
Number of days of warning before password expires       : 7