VMware
 

Knowledge Base

Search the Knowledge Base:

Products:
Search In:
 

Changing root password on ESX host

Purpose

For security reasons, it may be necessary to change the password for the user "root " on an ESX host after installation. This article provides steps to change the root password.

Resolution

To change the ESX host root password:

  1. Log in to the ESX host service console, either via SSH, or via the physical console.
  2. If you did not log in as root, you must acquire root privileges. Run the  su - command.

    Enter the current root password when prompted.

  3. Change the root password. Run the passwd root command.

  4. Type the new root password, and press Enter. Type the new root password again and press Enter to verify.  You are warned about, but not prevented from using bad passwords.

    If you make a mistake when typing or re-typing the new root password, you must start over. For example:

    # passwd root
    Changing password for user root.
    New UNIX password:
    Retype new UNIX password:
    Sorry, passwords do not match
    New UNIX password:
    Retype new UNIX password:
    passwd: all authentication tokens updated successfully.
    #

Note: If you have forgotten or don't know the password for the root user on an ESX host, you cannot recover the original password. You can, however, change the root password. For more information, see How do I change a forgotten root password on my ESX Server Host? (1317898) .

Additional Information

See http://www.vmware.com/resources/techresources/726  for more information on security best practices.

Feedback

Rating: 1 - Lowest 2 3 4 5 - Highest (1 Ratings)   

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (2000 or fewer characters)
Submit
Rating: 1 - Lowest 2 3 4 5 - Highest (1 Ratings)   
Actions