VMware

This Question is Answered

1 2 Previous Next 22 Replies Last post: May 13, 2009 9:13 AM by Texiwill  

root account lockout posted: May 9, 2009 5:16 PM

Click to view lldmka's profile Hot Shot 127 posts since
Jan 15, 2006
After a power outage at our DR site I wasn't able to login to the ESX console (via iLO) or SSH as root. The login process accepted the user name and prompted for the password, after which it hung for a while and bounced back to the login prompt.

We use kerberos for authentication with AD and because the hosts had powered up before the SAN, our disks weren't available at this stage - so all VMs were powered off (including DNS and domain controllers).

Now I fully expected not to be able to login with my local account, but never expected the root account to be locked out, otherwise I wouldn't have implemented kerneros authentication in the first place... and the VMware manual clearly states that root access will always be available.

I was actually able to change the root pasword via single user mode, which got me in until a reboot, when I was locked out again. I've checked AD and there is no root account. I did find an old (2006) reference in a Red Hat document to a bug that caused this same behaviour, but it was marked as resolved.

Has anyone had this issue??

Re: root account lockout

1. May 9, 2009 6:06 PM in response to: lldmka
Click to view Troy Clavell's profile Guru 6,238 posts since
Oct 12, 2007
I have heard of lockdown mode for ESXi, but not for ESX. If it was ESXi, that is what I would point to but.....

The only other thing I can think of is that is it possible you didn't type in the root password correctly? And after you reset the root password you were able to successfully log in


you may want to check /var/log/messages

Re: root account lockout

2. May 9, 2009 9:50 PM in response to: lldmka
Click to view AndreTheGiant's profile Guru 5,916 posts since
Aug 28, 2008
>We use kerberos for authentication with AD

I think that the lockdown processes is inside AD (policy dependent), not ESX.
Also check the status of you root user (if you have a second user or sudo credential) with

chage -l root


Andrea
**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Re: root account lockout

4. May 10, 2009 2:08 AM in response to: lldmka
Click to view tom howarth's profile Guru 7,346 posts since
Jul 25, 2005

Verify time synchronisation for your Hosts


If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points


Tom Howarth VCP / vExpert
VMware Communities User Moderator
Blog: www.planetvm.net
Contributing author for the upcoming book "VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment”. Currently available on roughcuts

Re: root account lockout

6. May 10, 2009 3:05 AM in response to: lldmka
Click to view tom howarth's profile Guru 7,346 posts since
Jul 25, 2005
It is a possibility, Kerberos is very sensitive to time diferences.


If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

Tom Howarth VCP / vExpert
VMware Communities User Moderator
Blog: www.planetvm.net
Contributing author for the upcoming book "VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment". Currently available on roughcuts

Re: root account lockout

7. May 10, 2009 4:23 AM in response to: lldmka
Click to view Lightbulb's profile Virtuoso 1,391 posts since
Aug 15, 2008
Weird issue. If you can at some point you might want to evacuate all the VMs off one of the hosts and isolate it from the AD network and reboot.

Does the same issue occur? If yes there is something up with your kerb setup. If the issue does not reoccur it may have been a one time confluence of circumstances.

Re: root account lockout

9. May 10, 2009 9:31 PM in response to: lldmka
Click to view AndreTheGiant's profile Guru 5,916 posts since
Aug 28, 2008
>Can someone tell me where I need to place the ignore_root parameter mentioned above (file and line)?
From this site: http://blog.baeke.info/blog/_archives/2006/10/13/2414173.html

  • If you create a user in AD with account name root, you can logon as root
    with its AD password.
  • If you don't want AD authentication for root, you can edit
    /etc/pam.d/system-auth. On the line that starts with auth and also includes
    pam_krb5.so, add this to the end: minimum_uid=1. Authentication for root (uid=0)
    will now be done locally only.
  • If you want the AD user to have the same rights as root, you can set the
    user's UID to 0 (usermod -u 0 -c username). Of course, if you have used
    minimum_uid, that won't work.
  • Alternatively, use sudoers to allow users to use sudo to execute specific
    tasks as root.

Andrea
**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Re: root account lockout

11. May 10, 2009 10:20 PM in response to: lldmka
Click to view AndreTheGiant's profile Guru 5,916 posts since
Aug 28, 2008
>Would swapping these lines around avoid that?
The order is corret, if you swap it the is required the Unix auth.

When you have used the esxcfg-auth, do you add also the --enablecache parameter?

Andrea
**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Re: root account lockout

13. May 10, 2009 11:50 PM in response to: lldmka
Click to view AndreTheGiant's profile Guru 5,916 posts since
Aug 28, 2008
>I don't use --enablecache... wouldn't it be a security risk to cache root logins?
Yes is a security risk. But just to check if the problem is with the AD comunications.
DNS and time are fine?

Andrea
**if you found this or any other answer useful please consider allocating points for helpful or correct answers

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities