How to reset or unlock root user on PhotonOS

First Reboot the appliance, and during boot process press “e”

Add the highlighted part in like below

press F10 to boot

Unmount the / partition

umount /

Now to reset password execute the command below and enter new password

passwd root

If you need to unlock the account

/sbin/pam_tally2 --reset --user root

Leave a Reply

Your email address will not be published. Required fields are marked *

37 − = 36