Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1488
  • Last Modified:

Changing ESX root password

How to change ESX root password of multiple server using script.
0
riteshpandey
Asked:
riteshpandey
  • 3
3 Solutions
 
sk_raja_rajaCommented:
login as root
type:

passwd <username>
prompted for new password
prompted to verify password

When you are typing the password in the cursor does not move or display any characters.
0
 
sk_raja_rajaCommented:
1.You can use something like putty.
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
It gives you options to script access to ESX so with this you can script connecting to ESX servers change the password disconnect and move on to the next.

2.Ref the comment from Texiwell on thisvmware forum,
http://communities.vmware.com/thread/135724
0
 
riteshpandeyAuthor Commented:
Here is what I did... But this is limited to a single ESX only. I am still looking for a script which will do the same in multiple ESX Host at one time.
1. Shutdown and Reboot your VMware ESX Server
2. Press "a" to modify the kernel arguments
3. Enter single user mode
4. Now, change the root password using the passwd command. You will need to enter the new root password twice.
5. Once you have reset the root password, reboot the server to go back into multi-user mode
6. Verify the new password
7. Resetting the VMware ESX Server root password is not difficult but you will have to bring down the server, enter single user mode, use the passwd command, and reboot to get the task completed.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now