If you’re unable to log into a UAG admin UI or through the CLI, follow the steps to reset the account.
If you can’t log into the root account in CLI:
- Open the UAG console and restart the VM
- When the Photon OS screen shows up, press the ‘E’ key
- In the GRUB interface, make the following change:
Remove everything after “$rootpartition” and add “rw init=/bin/bash”
Press F10 to boot the server - Run the following command in the CLI:
pam_tally2 –user root
*this will show if there are login failure for the root account
pam_tally2 –user root –reset
*This will unlock the root account
passwd
*This command will reset the root password
pam_tally2 –user root
*Run this command again to confirm there are no more failures
reboot -f
If you can’t log into the admin UI:
- Open the UAG console
- Log in as root
- Run the command adminpwd
- Enter the new password for the admin account

Leave a Reply