On 23/11/2024 01:11, Michael Kjörling wrote:
On 22 Nov 2024 12:40 -0500, from e...@gmx.us:

Boot off rescue media, mount the victim's / partition somewhere, then edit
<mount_point>/etc/shadow to change the second field (deliminated by colons)
to the null string.[...]
If what you are talking about is instead a LUKS passphrase, then a
very different piece of advice applies: DO NOT REBOOT THE SYSTEM UNDER
ANY CIRCUMSTANCES.

I have realized that every Debian manual has a note on resetting root password, but the topic is more extensive. E.g. there may be grub password besides LUKS.

init=/bin/sh kernel command line:
<https://www.debian.org/doc/manuals/debian-reference/ch04.en.html#_securing_the_root_password>
<https://www.debian.org/doc/manuals/debian-handbook/unix-services.en.html#sect.systemd>
<https://www.debian.org/doc/manuals/securing-debian-manual/ch12.en.html#idm4894>


Reply via email to