Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id egir-AuSsA_N for ; Wed, 2 Nov 2011 08:30:39 +0100 (CET) Received: from v4.tansi.org (ns.km33513-03.keymachine.de [87.118.94.3]) by mail.saout.de (Postfix) with ESMTP for ; Wed, 2 Nov 2011 08:30:39 +0100 (CET) Received: from gatewagner.dyndns.org (84-74-163-71.dclient.hispeed.ch [84.74.163.71]) by v4.tansi.org (Postfix) with ESMTPA id ACDA91404001 for ; Wed, 2 Nov 2011 08:30:39 +0100 (CET) Date: Wed, 2 Nov 2011 08:30:39 +0100 From: Arno Wagner Message-ID: <20111102073039.GB14998@tansi.org> References: <20111102031430.GA15717@dentifrice> <4EB0EFF5.2060808@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4EB0EFF5.2060808@redhat.com> Subject: Re: [dm-crypt] password recovery for a luksOpened device? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On Wed, Nov 02, 2011 at 08:23:33AM +0100, Milan Broz wrote: > On 11/02/2011 04:14 AM, mike dentifrice wrote: > > Or do I necessarily have to jump towards the "How do I recover the > > master key from a mapped LUKS container?" FAQ entry? > > You can run that script mentioned there (it will generate master-key-file > from active mapping). > > And then (instead of format) just run > > cryptsetup luksAddKey --master-key-file= I thought so. Very good, added to the FAQ. Arno > and add new arbitrary passphrase. > > (If cryptsetup there doesn't support this option, you can do it on LUKS > header clone outside of server and copy it back with new keyslot.) > > Without using dictionary or brute force attack you cannot recover original > passphrase though. > > In any case, save "dmsetup table --showkeys" output, it will allow to map > device even if you destroy LUKS header. > > Milan > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt > -- Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F ---- Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans If it's in the news, don't worry about it. The very definition of "news" is "something that hardly ever happens." -- Bruce Schneier