Contribute to Centos wiki

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'd like to edit the HowTo/EncryptedFilesystem page the note on how to  
create a valid keyfile.  This is not a trivial action.

Creating a plaintext file in vim does not qualify as a valid  
password.  Instead, a valid keyfile is created by doing the following:

echo -n "password" > keyfile.key

which explicitly creates the file with password on the first line with  
an explicit newline at the end of the file.

This is because cryptsetup needs a newline at the end of the keyfile.   
Just using a text editor like vim does not create a valid keyfile that  
cryptsetup can equate with a key for an encrypted volume.  This  
addition is (at least) worth six hours of my time, so hence may be  
worth about that much to anyone who may read this valuable addition.   
This limitation on cryptsetup and crypttab is not mentioned in the  
crypttab nor cryptsetup manuals at all.

UserName is VaheOughourlian.


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Users]     [CentOS Virtualization]     [Linux Media]     [Asterisk]     [Netdev]     [X.org]     [Xfree86]     [Linux USB]     [Project Hail Cloud Computing]

  Powered by Linux