Re: LUKS password forgoten, any way how to change it?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/06/2010 01:12 AM, Marek Stopka wrote:
> Hi guys, I have forgotten password to my luks encrypted disk, I have
> lost no data (yet :) ), because system is still running with unlocked
> device, but problem is, that I have a scheduled hardware maintanance
> window quite soon, so I was wondering is it somehow easily possible to
> luksAddKey without knowing a password or recover password from memory
> or it will be much more easier to copy those data somewhere else and
> create a new encrypted disk? It is like 12TB of data so I would really
> prefer not to copy those data somewhere else, but if I will have to, I
> can pull that off...
> 
> But I am wondering since key need to be in a memory somewhere there
> could be a way... :)

If the encrypted device is active and you are root...

dmsetup table --showkeys

recode master key from the table (from hexa) into binary and store to file

cryptsetup luksAddKey --master-key-file <file above>

(with cryptsetup 1.1.0)

Milan

_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
http://www.saout.de/mailman/listinfo/dm-crypt

[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux