/etc/shadow
file is manually edited or modified via scripts to change the ESXi root password, the changes do not persist./etc/shadow
file is restored to its earlier state.VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
Modifying the ESXi root password by manually editing the /etc/shadow
file is not a supported method.
To change the ESXi root password, please use one of the supported approaches listed below:
Through the Direct Console User Interface (DCUI)
Using the passwd
command via SSH
Via the ESXi Host Client