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?
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?
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.
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
.)
Salvation! This is how you recover a password in Silverblue:
rw init=/bin/bash
at the end of the line starting with linux
/sbin/load_policy -i
.passwd username
/sbin/restorecon -v /etc/passwd
/sbin/restorecon -v /etc/shadow
/sbin/reboot -f