วันอาทิตย์ที่ 6 สิงหาคม พ.ศ. 2566

reset esxi root password

 https://www.youtube.com/watch?v=0L-lFCbOVgk


sudo su -

mkdir /temp

mount /dev/sda5 /boot

cd /boot

cp state.tgz /temp

cd /temp

tar -xf state.tgz 

tar -xf local.tgz 

rm *.tgz

cd etc

nano shadow

cat shadow

root::18355


cd ..


you are in /temp

 

tar -cf local.tgz etc/

tar -cf state.tgz local.tgz

mv state.tgz /boot

umount /boot

reboot


set a new password