How to reset root password on VMware 6 without reinstall VMware
I used this solution:
Make sure VMware disk is connected and available
Used Kali Linux Live Boot USB
Located and mounted available partitions until I found the one with the packages on it.
Located the state.tgz
# cp [location]/state.tgz /temp
# tar -xf state.tgz
# tar -xf local.tgz
# cp /temp/etc/shadow /temp
Used “vi”
# vi shadow
Remove “x command” the encrypted string between the colons “:” until you have a “::” there, save using ESC followed by “:wq”
Then copy back the newly modified “shadow” file
# cp /temp/shadow [location]/etc/
Then compress the local:
# tar -cf local.tgz etc/
# tar -cf state.tgz local.tgz
This will overwrite the original state.tgz
Now unmount partitions, reset the system and login from Console
Thanks for joining me!
Good company in a journey makes the way seem shorter. — Izaak Walton
