Root password expired on NSX Manager
search cancel

Root password expired on NSX Manager

book

Article ID: 408091

calendar_today

Updated On:

Products

VMware NSX VMware vSphere ESXi

Issue/Introduction

  • NSX Manager root password is expired and needs to be reset. 
  • Direct SSH login to the NSX manager appliance node prompts a new password to be set, showing "You are required to change your password immediately (password expired)."
  • When trying to switch from admin to root shell the following message appears
    <nsx-manager> st en
    % Cannot enter the root shell if the root user's password has expired, invoke the following command to change root's password:
    set user root password
  • If the expired password is for an Edge node, please refer to NSX Edge root password expired

Environment

VMware NSX

Resolution

  • The password for root can be set from the admin login by using the command below. This works if the admin login is accessible and the root password is known.
    set user root password <new-password> old-password <old-password> 
  • If the root password and admin password are unknown then to reset the root password of NSX manager, follow the steps described in Resetting the Passwords of an Appliance


In case if the password do not get synced across the other NSX manager nodes, follow the KB here NSX credentials are not being synchronized between NSX Managers after manual password reset.

Additional Information

  • Post resetting the root/admin password via GRUB boot menu, the password expiry can be extended from default 90 days to 9999 days, login to the NSX manager as admin via SSH as per below command:
    set user <username> password-expiration 9999
    • For example for root and admin users:
      set user root password-expiration 9999
      set user admin password-expiration 9999
  • Or password expiration can be disabled using the below commands, login to the NSX manager as admin via SSH and run the following commands:
    clear user <username> password-expiration
    • For example for root and admin users:
      clear user root password-expiration
      clear user admin password-expiration

Note: Please see Modifying the Default Admin Password Expiration and NSX CLI Guide for details.

Reference document to reset the password via Grub Boot Menu: Resetting the passwords of an Appliance

To enable the ssh and root login on the NSX appliance: Enable ssh root access for NSX appliances 

"For management of local accounts, see Download Broadcom products and software for the latest NSX releases."

You may want to try logging in as root on the VM's console first. Be sure to click the "Enforce US Keyboard layout" button. If root password is expired you should still be able to use the expired password on the console as the expiration is for ssh access.