blob: c3f91b809a5deb981cbcbb0f2db843a7b24aad5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
{% meta %}
title: Change Ubunut Passphrase
{% endmeta %}
{% block content %}
{% filter rst %}
Change Ubunut Passphrase
------------------------
About
=====
This is a short howto on changing the harddrive passphrase on your ubuntu system.
It was successfully tested on
* Ubuntu Gutsy
Where is your encrypted partition?
==================================
* Have a look into '/dev/mapper/'. There should be an entry called '..._crypt', usually its 'sda5_crypt'.
* Whenever I use "sda5" later on, replace it by whatever '..._crypt' says in your setup.
Changing the passphrase
=======================
* You can't change the passphrase directly, add another passphrase and remove the old one.
* Passphrases are stored in "slots". So your first password is in "slot 0", the second will be in "slot 1" and so on.
* Be sure *never* to delete your *last passphrase*, or your data will be inaccessible forever.
Adding an additional passphrase
===============================
* Open a 'terminal', and type:
::
cryptsetup luksAddKey /dev/sda5
* enter the current passphrase
* enter the new/additional passphrase
Removing a passphrase
=====================
*Warning:* Do NOT delete the last available passphrase, or your data will be lost forever!
* To delete the first passphrase (BE SURE THERE IS A SECOND ONE! TEST THE SECOND PASSPHRASE BEFORE DELETING THE FIRST!):
cryptsetup luksDelKey /dev/sda5 0
* To delete the passphrase in the second slot (BE SURE THERE IS STILL ANOTHER PASSPHRASE PRESENT!):
cryptsetup luksDelKey /dev/sda5 1
Links
=====
* `dm-crypt wiki: Encrypted Devices Using LUKS <http://www.saout.de/tikiwiki/tiki-index.php?page=EncryptedDeviceUsingLUKS>`_
* `UKS - Linux Unified Key Setup <http://luks.endorphin.org/>`_
errors / ideas / contact
========================
* This page is not available for public editing.
* If you find an error, or want to make any contribution to this page, please contact us.
{% endfilter %}
{% endblock %}
|