View previous topic :: View next topic |
Author |
Message |
vitae Tux's lil' helper

Joined: 26 Mar 2004 Posts: 134 Location: Germany
|
Posted: Fri Apr 07, 2006 9:51 am Post subject: [solved]frage zu cryptsetup-luks und -d |
|
|
Ich mal wieder
nach etlichem durchlesen von howtos und faqs bin ich nun soweit mir auch meine verschlüsselte partition anzulegen. allerdings gibt es da ein kleines problem.
ich möchte mein passwort gerne in einer datei speichern und nicht jedesmal per hand eintippen müssen. nun habe ich diesen wundervollen befehl
Code: | /bin/cryptsetup -c aes-cbc-essiv:sha256 -d /password -s 256 luksFormat /dev/hda5 |
und eine nicht ganz so tolle meldung
Code: | WARNING!
========
This will overwrite data on /dev/hda5 irrevocably.
Are you sure? (Type uppercase yes): YES
Enter LUKS passphrase: |
im man steht drinnen, dass man mit der -d option eine keyfile nehmen kann. macht er aber nicht, wie man sieht. er verlangt nach einem passwort.
nach weiterem suchen habe ich im forum folgenden post gefunden.
Quote: | > # echo $KEY >cache
Try "echo -n $KEY > cache"
as noted in the man page, password reading from a file descriptor are
chopped of after \0 or \n. Hence, you have
$ echo kuh | hexdump -C
00000000 6b 75 68 0a |kuh.|
00000004
as key, but read
$ echo -n kuh | hexdump -C
00000000 6b 75 68 |kuh|
00000003
from the terminal/file descriptor. There is no way to enter a line break
via terminal or an fd. You have to set a key without a line break to be
able to open a LUKS partition. A key including \0 or \n must be
delivered to cryptsetup as binary key via "-d".
Please forward this message to the respective bug/forum threads. |
https://forums.gentoo.org/viewtopic-t-425423-highlight-dmcrypt.html
allerdings werde ich daraus nicht schlau, da ich kein informatik studiert habe.
was ich möchte ist einfach, dass ich einen durch zufallswerte generierte keydatei als passwort für das cryptsetup-luks habe.
Last edited by vitae on Fri Apr 07, 2006 6:13 pm; edited 1 time in total |
|
Back to top |
|
 |
AnubisTheKing Apprentice

Joined: 13 Oct 2002 Posts: 166
|
|
Back to top |
|
 |
vitae Tux's lil' helper

Joined: 26 Mar 2004 Posts: 134 Location: Germany
|
Posted: Fri Apr 07, 2006 12:18 pm Post subject: |
|
|
danke dir. hat mir sehr geholfen.
schönes wochenende noch |
|
Back to top |
|
 |
AnubisTheKing Apprentice

Joined: 13 Oct 2002 Posts: 166
|
Posted: Fri Apr 07, 2006 12:41 pm Post subject: |
|
|
wenn du es damit hinbekommen hast, dann setz das topic bitte noch auf [solved]
dir auch ein schönes Wochenende
anubistheking _________________ http://www.volker-boehme.de |
|
Back to top |
|
 |
|