Reset password in Silverblue

I just moved, turned on my pc and i seem to have forgotten the password somehow.

Any way i can reset a user/root pw in Silverblue?

1 Like

I booted, pressed E and added: rw init=/bin/bash, then the bash opened. I then entered:
mount -o remount,rw / and changed the password with passed username.

I cant execute touch /.autorelabel.

Any way i can change the password?

Those steps should apply to Silverblue too: Access Recovery :: Fedora Docs

Sadly won’t work in silverblue. :frowning:

Yeah, it’s likely single is broken on Silverblue. Instead of /.autorelabel, use the instructions here: Add some troubleshooting steps for access recovery by jlebon · Pull Request #48 · coreos/fedora-coreos-docs · GitHub. (This used to be the contents of “Access Recovery” before we moved to single.)

1 Like

Salvation! This is how you recover a password in Silverblue:

  1. Boot
  2. Press e when you can chose the different Ostrees
  3. Add: rw init=/bin/bash at the end of the line starting with linux
  4. Once in the bash console enter: /sbin/load_policy -i.
  5. chance your password passwd username
  6. /sbin/restorecon -v /etc/passwd
  7. /sbin/restorecon -v /etc/shadow
  8. reboot with /sbin/reboot -f
1 Like