The following procedure applies to NSX Manager, NSX Edge, and Cloud Service Manager appliances.
If you have an NSX Manager cluster, resetting the password for any of the local users on one automatically resets the password for the other NSX Managers in the cluster. The synchronization of the password can take a few minutes.
If you have renamed the local user, use the new name in the following procedures.
When you reboot an appliance, the GRUB boot menu does not appear by default. Before you perform this procedure, you must configure GRUB so that the GRUB boot menu displays. For more information about configuring GRUB and changing the GRUB root password, see "Configure an Appliance to Display the GRUB Menu at Boot Time" in the NSX Installation Guide.
If you know the password for root but have forgotten the password for your local users, you can reset it using the following procedure:
- Log in to the appliance as root.
- To stop the server:
- For NSX Edge, run the command /etc/init.d/nsx-edge-api-server stop.
- Otherwise, run the command /etc/init.d/nsx-mp-api-server stop.
- (Optional) To reset the password for admin, run the command passwd admin.
- (Optional) To reset the password for audit, run the command passwd audit.
- (Optional) To reset a guest user password, run the command passwd guestusername.
- Run the command touch /var/vmware/nsx/reset_cluster_credentials.
- To restart the server:
- For NSX Edge, run the command /etc/init.d/nsx-edge-api-server start.
- Otherwise, run the command /etc/init.d/nsx-mp-api-server start.
If you have forgotten the root user's password, you can reset it using the following procedure. You can then use the above procedure to reset the password for all local users.