The root entry should be root:x:0:0:root:/root:/bin/appliancesh. If this entry does not contain /root:/bin/appliancesh review the /root/.bash_history file to see if an invalid shell was set with this command:
less /root/.bash_history
For example:
#1468577177 chsh -s "/bin/bosh" root
Note: In the example above the root user was incorrectly set the shell to "/bin/bosh". The line above is the timestamp of this event in epoch format.
To resolve this issue, set the default shell for the user to bash:
Set the default Shell to BASH by running this command:
chsh -s /bin/bash root
Restart the appliance with the command:
reboot
Additional Information
You experience these additional symptoms:
You are returned to the login screen.
Logging in to the VAMI (https://VC_IP:5480) using same credentials is successful.
Using the virtual machine console to log in fails with the error:
Invalid Shell
Note: This error is only displayed briefly.
In the /var/log/messages.log file, you see entries similar to:
2016-07-15T10:49:51.021176+00:00 vc sshd[23037]: User root not allowed because shell /bin/bosh does not exist