Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steps for resetting a lost root password not working #1595

Open
sidharthsurana opened this issue Feb 27, 2025 · 1 comment
Open

Steps for resetting a lost root password not working #1595

sidharthsurana opened this issue Feb 27, 2025 · 1 comment
Labels

Comments

@sidharthsurana
Copy link

Describe the bug

Steps described in https://github.com/vmware/photon/blob/master/docs/photon_troubleshoot/resetting-a-lost-root-password.md and even the release branch are not working

Reproduction steps

Follow the steps in the documentation till the final step of reboot -f
However, the command fails. See below screenshot

Image

Image

Expected behavior

System to reboot and root password reset

Additional context

$ cat /etc/os-release
NAME="VMware Photon OS"
VERSION="5.0"
ID=photon
VERSION_ID=5.0
PRETTY_NAME="VMware Photon OS/Linux"
ANSI_COLOR="1;34"
HOME_URL="https://vmware.github.io/photon/"
BUG_REPORT_URL="https://github.com/vmware/photon/issues"
@dcasota
Copy link
Contributor

dcasota commented Feb 27, 2025

Hi @sidharthsurana,
/proc/ is not mounted seems to be an indication. How did you configure your system? (vhw,efi/secureboot, physical scsi device/vmdk, serial port/network mounted disk image, filesystem/...)
Password reset on an ova setup works flawlessly. Tested e.g. on photon-hw15-5.0-dde71ec57.x86_64.ova vanila setup.

Btw. on the docs page the account unlock chapter is old, sbin/faillock --reset --user root works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants