Re: Lost password need help!
On 22 Nov 2024 12:40 -0500, from eben@gmx.us:
>> We have been using the debian 3.2.0-4-686-pae for our company. We
>> are moving to another state and we forgot the password. Is there
>> anyway to recover this without losing data? Thank you.
>
> 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.
That, of course, assumes that what's being talked about is a user
account password.
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.
_Given root_, the volume key can be extracted on a running system
where the container is unlocked and either used directly or to create
a corresponding LUKS header with a known passphrase; but once the
container is locked (either by luksClose, or by rebooting), that
possibility is lost and the data becomes inaccessible without a valid
container passphrase.
So: _exactly_ which "password" are you referring to?
--
Michael Kjörling
🔗 https://michael.kjorling.se
Reply to: