Bug 1069595 - luksChangeKey needs to ask for the new password twice
Summary: luksChangeKey needs to ask for the new password twice
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cryptsetup
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Milan Broz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-25 11:12 UTC by James Heather
Modified: 2014-03-07 06:40 UTC (History)
4 users (show)

Fixed In Version: cryptsetup-1.6.4-1.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-07 06:40:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description James Heather 2014-02-25 11:12:36 UTC
Description of problem:

I just changed the LUKS key for my Fedora system, using

  cryptsetup luksChangeKey <dev>

and it was a very scary experience. I typed in the old password, and then the new password, and it made the change without getting me to verify the new password. Fortunately, I typed in the new password correctly, but if I'd made an error, I'd have been screwed.

Version-Release number of selected component (if applicable):

cryptsetup-1.6.3-1.fc20.x86_64

How reproducible:

100%

Steps to Reproduce:
1. cryptsetup luksChangeKey <luks-dev>

Actual results:

New password only requested once.

Expected results:

New password requested twice, to check for typos.

Comment 1 Milan Broz 2014-02-27 15:46:47 UTC
Yes, IIRC was intended to verify it for new passphrase.

I fixed it in upstream 1.6.4 now, update will be built shortly.

Anyway, you can always use -y, --verify-passphrase to force passphrase verification.

Thanks.

Comment 2 Fedora Update System 2014-02-27 15:50:53 UTC
cryptsetup-1.6.4-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/cryptsetup-1.6.4-1.fc20

Comment 3 Fedora Update System 2014-02-28 18:33:48 UTC
Package cryptsetup-1.6.4-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cryptsetup-1.6.4-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-3201/cryptsetup-1.6.4-1.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-03-07 06:40:28 UTC
cryptsetup-1.6.4-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.