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 HNd5n_pwIZ0z for ; Wed, 2 Nov 2011 08:31:49 +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:31:49 +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 AFEAB1404001 for ; Wed, 2 Nov 2011 08:31:49 +0100 (CET) Date: Wed, 2 Nov 2011 08:31:49 +0100 From: Arno Wagner Message-ID: <20111102073149.GC14998@tansi.org> References: <20111102031430.GA15717@dentifrice> <20111102072529.GA14998@tansi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111102072529.GA14998@tansi.org> 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:25:29AM +0100, Arno Wagner wrote: > You have to go trough master key recovery. No way around that. > > But you do not need to create a new header, you can use > something like "cryptsetup luksAddKey --master-key-file ..." > to set a new passphrase. (In this case you have to go the > manual route.) Update: Not true, the script just does all steps except the creation of the new header (or adding a new passphrase). Fixed in the FAQ. Arno > I am currently adding this to the FAQ, > may take a few minutes to try it out. > > Arno > > On Wed, Nov 02, 2011 at 04:14:30AM +0100, mike dentifrice wrote: > > Hey there, > > > > I managed to forget the passphrase for a server (it is very rarely > > rebooted). > > > > It it still running, the LUKS device is opened, and the filesystem > > laying on top of it is mounted. > > > > So, I do have a fresh backup, and can keep on trying to remember the > > passphrase with `cryptsetup luksAddKey /dev/mapper/foobar` > > > > However, it would be a lot of hasle to re-install the system entirely, > > as the services cannot suffer a long downtime. > > > > Is there a way to recover the passphrase or add a new keyslot while the > > system's running, the crypto device mounted, the fs opened? > > > > Or do I necessarily have to jump towards the "How do I recover the > > master key from a mapped LUKS container?" FAQ entry? > > > > Thanks in advance for your answer, > > > > -- > > mike dentifrice > > > > _______________________________________________ > > 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 > _______________________________________________ > 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