I forgot the password in the typewriter from the closet. It doesn’t seem to be a problem - we change everything. But it won’t work that easily with the entertainers from SUSE: everything that usually works (and is described on the Internet) doesn’t work. Namely, there is no instruction for their distribution. Their own instructions also does not work. That’s why I wrote this one.
- In the GRUB menu, press
e
, at the end of the line withlinux
addinit=/bin/bash
, press `Ctrl+X'. - We are waiting for the download, then the
passwd
command to change the password, and thensync
to make sure that the changes are written to disk. - Turn off the power via the button (power management commands do not work with such a boot), turn it on again.
- In the GRUB menu, press
e
, at the end of the line with linux, addenforcing=0
, press `Ctrl+X'. - Waiting for the download, log in with a new password and type `restorecon -v /etc/shadow'.
- Now we can type
reboot
orCtrl+Alt+Del
for the final reboot.