Photon OS, resetting root password.

This procedure can be done on all VMware appliances running Photon OS. #PasswordReset #Root

  • Reboot you appliance
  • After the Photon OS starts, press the e key to enter the GNU GRUB Edit Menu

  1. Locate the line that begins with the word Linux
  2. Append these entries to the end of the line: rw init=/bin/bash

  1. Press F10 to continue booting.
  2. On the root prompt, run the command:

mount -o remount,rw / 

  1. Next change root password by running the command:

passwd

  1. Unmount the filesystem by running this command:

umount /

  1. Reboot the applaince by running this command:

reboot -f

 

If you have a questions, let’s chat on Twitter: https://twitter.com/AngrySysOps

Visit my FB page: https://www.facebook.com/AngrySysOps

Subscribe to my YouTube channel: https://www.youtube.com/channel/UCRTcKGl0neismSRpDMK_M4A

Please leave the comment