
Reset or Unlock a Photon OS Root Account
For authorized Photon OS administration. VMware/Broadcom appliances can have product-specific recovery requirements that override generic OS steps.
A forgotten password, an expired password, a locked account and disabled remote root login are different problems. Photon OS does not have a universal rule that root is locked by default. First identify the OS/appliance release and the authentication failure you are trying to recover.
Use an existing privileged session when possible
Keep console access available. If another approved administrative path works, inspect password status and the configured lockout mechanism before rebooting:
passwd -S root
chage -l root
command -v faillock
command -v pam_tally2
Use only the lockout utility actually configured by that release. On systems using pam_faillock, an authorized reset can take this form:
faillock --user root
faillock --user root --reset
Older appliances using pam_tally2 have a different command:
pam_tally2 --user root
pam_tally2 --user root --reset
Do not run both blindly. Resetting a failed-login counter does not reset a password, remove expiry or enable root over SSH. Those settings need separate review, and appliance accounts such as an SSO administrator are not necessarily the local OS root account.
Use the approved console password-reset procedure
For a supported appliance, start with its vendor recovery instructions and a recoverable backup. Where that procedure explicitly uses the Photon GRUB method, open the console, interrupt boot with e, and append rw init=/bin/bash to the kernel line. Protected bootloaders or encrypted disks still require their authorized recovery credentials.

Boot the temporary entry with F10 or Ctrl+X as appropriate. In the recovery shell, the core password-reset steps are:
mount -o remount,rw /
passwd root
sync
Supply the new password interactively and honor the releaseโs password policy. If the account is also locked, use the release-specific counter-reset operation from its documentation. Finish using the applianceโs required reboot sequence. Do not assume that unmounting the active root filesystem will succeed, or that a forced reboot without first flushing writes is harmless.
Verify normal access and investigate the cause
After a normal boot, verify the intended management interface and local authentication. Check whether a stale saved credential is repeatedly triggering the lockout. Keep remote root access disabled where the product policy requires it, and update the approved credential store after a reset. For RHELโs different initramfs recovery workflow, use the RHEL root-password guide.
References
- Broadcom: product-specific Photon appliance password and lockout recovery
- Broadcom: legacy and current PAM lockout tools
- Photon OS administration documentation