passwd
morgano wrote:Just wondering: Is there a simple way to disable the "add init=/bin/sh to the kernel command line" trick?
doktor5000 wrote:FWIW, a repair-install isn't required. At the bootloader, simply add init=/bin/sh to the kernel command line after pressing F3 and selecting Default, and at the prompt change the root password via passwd command.
reboot
shutdown -Fr now
init 6
plspls wrote:never lose password or you lose access to the computer and have to reinstall completely to get access again of course all data is lost
What one really should be careful with is any data encryption keys
sudo cryptsetup luksHeaderBackup --header-backup-file=sdf1 /dev/sdf1
cryptsetup luksHeaderRestore --header-backup-file=sdf1 /dev/sdf1
cryptsetup luksDump <your luks dev>
search for a line
Payload offset: <payloadnumber>
Now to backup your metadata - that is everything before the payload - run
dd if=<your luks dev> of=<destination, see below> bs=<payloadnumber> count=1
To restore the metadata, reverse "of=" and "if=" in the command above.
Return to The magician suggests...
Users browsing this forum: Google [Bot] and 1 guest