Admin user presented with bash shell cli when logging into an NSX Edge appliance.
book
Article ID: 390908
calendar_today
Updated On:
Products
VMware NSX
Issue/Introduction
When logging into the NSX Edge appliance using the "admin" account, the bash prompt is presented instead of the nsxcli prompt: Examples: admin@edge2-mgmt:~$
admin@edge2-mgmt:/root$
The expectation is for the nsxcli prompt to be displayed when logging in as the "admin" user: Example: edge2-mgmt>
Environment
VMware NSX
Cause
The "admin" user account default shell was changed from nsxcli to bash in the underlying OS configuration.
Resolution
Login to your Edge node as the "root" user using ssh or the VM console in the vSphere client
Run the following command to change the user default shell: chsh <username>
Input the following argument to set the nsxcli shell as the default for your user: /opt/vmare/nsx-cli/bin/scripts/nsxcli_passwd
Example: root@nsx-edge-01:~# chsh admin Changing the login shell for admin Enter the new value, or press ENTER for the default Login Shell [/bin/bash]: /opt/vmware/nsx-cli/bin/scripts/nsxcli_passwd root@nsx-edge-01:~#
Validate the change by logging out and logging back in as the "admin" user and confirm the change is correct.