In my home lab, I want to deactivate the password expiration of the NSX-T local management user accounts on both, NSX-T Manager and Edges. There are three local users: root, admin, and audit. The default password expiration is set to 90 days.

This short post documents how to disable the passwords of the three local users.

The procedure is as follows:

Login to all NSX-T Manager nodes and Edges nodes as admin user (console or via SSH).
Run the following command for all usernames (admin, root, audit): clear user password-expiration

clear user admin password-expiration
clear user root password-expiration
clear user audit password-expiration

Verify the password expiration with the command get user password-expiration, e.g:

nsx1a> get user admin password-expiration
Password expiration not configured for this user

If you want to set the password for a user (maybe because it is already expired), run the following command to reclaim it (as admin user): set user <username> password

Note: Disabling password expiration is not recommended in a production environment.
And it could lead to problems in a VCF environment. Here it would be wiser to set the expiration to the maximum allowed days rather than to expire it, i.e.: set user <username> password-expiration 9999