Root password change on an ESX host

Every now and then, there comes a time when you have to change the “root” password on an ESX host.  It might be because someone has left the company or could simply be an event when a problem required the root password to be revealed to people other than the “gods”.

One of the common misconceptions about changing password on an ESX host is that you have to go into single-user mode to change it.  That is simply not true.  If the password is known but just need changing, all you need to do is:

  1. Gain console access to ESX as root (best practice would suggest you use “su -“)
  2. Type “passwd root” and hit Enter
  3. Type new password and confirm by retyping, when asked
  4. Message returns: “passwd: all authentication tokens updated successfully”

That’s it!  Sometimes the concern is that it would cause the ESX Server to lose contact with the cluster (as root password is required when adding the host to the cluster).  This is also not true because the root password is only required to deploy the vpxa agent, which uses its own random password – automatically reset periodically.

It’s a different matter altogether if you’ve forgotten the password, in which case, you do need to go into single-user mode and this article explains the process:  http://kb.vmware.com/kb/1317898 – and yes, it does mean that anyone with physical access to the ESX host, can gain root access to it.  That said, if someone has gained physical access to any of your machines, you can considered yourself hacked anyway!

So, if you ever wanted to change the root password on ESX hosts while they are running services and were too afraid, fear not – it should work.  I hope this will go some way in reducing anxiety when faced with this scenario.

By | 2010-04-09T11:13:15+00:00 April 9th, 2010|ESX, Virtualization|10 Comments

About the Author:

10 Comments

  1. all my sons moving and storage June 6, 2014 at 2:12 AM - Reply

    all my sons moving and storage

    Ather Beg’s Useful Thoughts – Root password change on an ESX host

  2. bandage dresses uk sale October 8, 2014 at 3:38 PM - Reply

    bandage dresses uk sale

    Ather Beg’s Useful Thoughts – Root password change on an ESX host

  3. fake tanning products October 13, 2014 at 6:11 AM - Reply

    fake tanning products

    Ather Beg’s Useful Thoughts – Root password change on an ESX host

  4. willem dafoe son October 13, 2014 at 7:48 PM - Reply

    willem dafoe son

    Ather Beg’s Useful Thoughts – Root password change on an ESX host

  5. celebrity dress up by i dress up October 14, 2014 at 8:44 PM - Reply

    celebrity dress up by i dress up

    Ather Beg’s Useful Thoughts – Root password change on an ESX host

  6. Boca Raton liberty CPA supplies October 15, 2014 at 3:23 PM - Reply

    Boca Raton liberty CPA supplies

    Ather Beg’s Useful Thoughts – Root password change on an ESX host

  7. spray tanning health care equipment and supplies

    Ather Beg’s Useful Thoughts – Root password change on an ESX host

  8. laser light therapy for pain October 18, 2014 at 4:11 AM - Reply

    laser light therapy for pain

    Ather Beg’s Useful Thoughts – Root password change on an ESX host

  9. social media marketing a strategic approach pdf

    Ather Beg’s Useful Thoughts – Root password change on an ESX host

  10. frame snare drum sound October 24, 2014 at 9:27 AM - Reply

    frame snare drum sound

    Ather Beg’s Useful Thoughts – Root password change on an ESX host

Leave A Comment