Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]frage zu cryptsetup-luks und -d
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
vitae
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2004
Posts: 134
Location: Germany

PostPosted: Fri Apr 07, 2006 9:51 am    Post subject: [solved]frage zu cryptsetup-luks und -d Reply with quote

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
View user's profile Send private message
AnubisTheKing
Apprentice
Apprentice


Joined: 13 Oct 2002
Posts: 166

PostPosted: Fri Apr 07, 2006 12:14 pm    Post subject: Reply with quote

schau dir das hier mal an http://wiki.volker-boehme.de/doku.php?id=wiki:cryptsetup-luks

du musst also einer luks Partition immer eine passwd geben und kannst dann aber keyfiles als weitere keys hinfzufügen
_________________
http://www.volker-boehme.de
Back to top
View user's profile Send private message
vitae
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2004
Posts: 134
Location: Germany

PostPosted: Fri Apr 07, 2006 12:18 pm    Post subject: Reply with quote

danke dir. hat mir sehr geholfen.

schönes wochenende noch
Back to top
View user's profile Send private message
AnubisTheKing
Apprentice
Apprentice


Joined: 13 Oct 2002
Posts: 166

PostPosted: Fri Apr 07, 2006 12:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum