* [dm-crypt] Major Problem with luksAddKey
@ 2011-03-09 2:12 Rookcifer
2011-03-09 10:27 ` Milan Broz
2011-03-09 10:32 ` Jonas Meurer
0 siblings, 2 replies; 3+ messages in thread
From: Rookcifer @ 2011-03-09 2:12 UTC (permalink / raw)
To: dm-crypt
I am using LUKS/dm-crypt to encrypt a storage drive I have (sdb). I
wanted to change the LUKS passphrase on this volume, so I ran the
following command:
cryptsetup luksAddKey /dev/sdb1
I was prompted for my passphrase and slot 0 was unlocked. Then I went
to enter the new passphrases, so I entered it and was asked to verify.
I entered it again. It gave me a prompt that the passwords did not
match. No big deal, right? I must have mistyped. So I went through
the process again, but this time I was not able to unlock the master
key! I am now locked out of my volume completely and I have no idea
what to do.
Is this a bug or did I do something wrong? I should not be locked out
of my volume after failing to change the pass phrase!
--
--Waiting on ECC
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dm-crypt] Major Problem with luksAddKey
2011-03-09 2:12 [dm-crypt] Major Problem with luksAddKey Rookcifer
@ 2011-03-09 10:27 ` Milan Broz
2011-03-09 10:32 ` Jonas Meurer
1 sibling, 0 replies; 3+ messages in thread
From: Milan Broz @ 2011-03-09 10:27 UTC (permalink / raw)
To: Rookcifer; +Cc: dm-crypt
On 03/09/2011 03:12 AM, Rookcifer wrote:
> I am using LUKS/dm-crypt to encrypt a storage drive I have (sdb). I
> wanted to change the LUKS passphrase on this volume, so I ran the
> following command:
>
> cryptsetup luksAddKey /dev/sdb1
>
> I was prompted for my passphrase and slot 0 was unlocked. Then I went
> to enter the new passphrases, so I entered it and was asked to verify.
> I entered it again. It gave me a prompt that the passwords did not
> match. No big deal, right? I must have mistyped. So I went through
> the process again, but this time I was not able to unlock the master
> key! I am now locked out of my volume completely and I have no idea
> what to do.
>
> Is this a bug or did I do something wrong? I should not be locked out
> of my volume after failing to change the pass phrase!
Of course it should work. But you have not specified important info:
cryptsetup version? cryptsetup with the --debug output? which distro?
some erors in syslog? (io errors?)
if it is broken now, also luksDump of the partition.
cryptsetup should never touch original keyslot area, so even if
adding new fails, the old must always stay the same.
Milan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dm-crypt] Major Problem with luksAddKey
2011-03-09 2:12 [dm-crypt] Major Problem with luksAddKey Rookcifer
2011-03-09 10:27 ` Milan Broz
@ 2011-03-09 10:32 ` Jonas Meurer
1 sibling, 0 replies; 3+ messages in thread
From: Jonas Meurer @ 2011-03-09 10:32 UTC (permalink / raw)
To: Rookcifer; +Cc: dm-crypt
[-- Attachment #1: Type: text/plain, Size: 1055 bytes --]
Hello,
On 08/03/2011 Rookcifer wrote:
> I am using LUKS/dm-crypt to encrypt a storage drive I have (sdb). I
> wanted to change the LUKS passphrase on this volume, so I ran the
> following command:
>
> cryptsetup luksAddKey /dev/sdb1
>
> I was prompted for my passphrase and slot 0 was unlocked. Then I went
> to enter the new passphrases, so I entered it and was asked to verify.
> I entered it again. It gave me a prompt that the passwords did not
> match. No big deal, right? I must have mistyped. So I went through
> the process again, but this time I was not able to unlock the master
> key! I am now locked out of my volume completely and I have no idea
> what to do.
Maybe the reason is as simple as the Caps Lock key pressed by incident?
greetings,
jonas
> Is this a bug or did I do something wrong? I should not be locked out
> of my volume after failing to change the pass phrase!
For me, luksAddKey works as expected with cryptsetup 1.0.2. Which
version of cryptsetup do you use?
greetings,
jonas
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-09 10:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-09 2:12 [dm-crypt] Major Problem with luksAddKey Rookcifer
2011-03-09 10:27 ` Milan Broz
2011-03-09 10:32 ` Jonas Meurer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.