VMware Cloud Community
Shump
Contributor
Contributor

Root Password Not Recognized, Even After Change

Hello,

I have a VMware ESXi 6.5 host on which I cannot access the root account. Each time I attempt to login, either via the Web interface or via SSH, it tells me that the password is incorrect.

Fortunately, I do have another user with admin access on the machine, so I can still get in. If I log in as that user, and then reset the root user's password, it appears to work, but I am still unable to login as root. This is true whether I reset it via the Web interface or via the shell with the passwd command.

No matter what I do, it tells me that the password for the root account is incorrect.

Any suggestions?

Thanks.

2 Replies
tayfundeger
Hot Shot
Hot Shot

Hi,

You may have locked the account because you entered the password for ESXi 6.5 incorrectly. In this case, you can access the shell and run the following command.

pam_tally2 --user root --reset

After running this command, try logging in again.

It may also be trying to be a 3rd party product login to ESXi. Or, if the ESXi is open to the external network, brute force may be attempted. You need to check this out.

--
Blog: https://www.tayfundeger.com
Twitter: https://www.twitter.com/tayfundeger

vBlogger, vExpert, Cisco Champions

Please, if this solution helped your problem, "Helpful" if it solves your problem "Correct Answer" to mark.
NathanosBlightc
Commander
Commander

Check the /var/log/auth.log & vmkernel.log files, maybe there are some failed logins from any other backup or monitoring tools that try to log in to the ESXi host

Please mark my comment as the Correct Answer if this solution resolved your problem
0 Kudos