no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | mount_ecryptfs [2011/02/12 09:51] (current) – angelegt brot | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | FIXME | ||
+ | |||
+ | ROOT=/ | ||
+ | TARGET=/ | ||
+ | |||
+ | # ROOT should be the parent of the .ecryptfs and .Private folders | ||
+ | |||
+ | sudo mkdir -p $TARGET | ||
+ | cd $ROOT | ||
+ | |||
+ | echo Type your password: | ||
+ | PASS=$(ecryptfs-unwrap-passphrase .ecryptfs/ | ||
+ | SIG1=$(head -n1 .ecryptfs/ | ||
+ | SIG2=$(tail -n1 .ecryptfs/ | ||
+ | |||
+ | echo Passphrase: | ||
+ | echo $PASS | ||
+ | echo Signatures: | ||
+ | echo $SIG1 | ||
+ | echo $SIG2 | ||
+ | |||
+ | echo Should be empty: | ||
+ | sudo keyctl clear @u | ||
+ | sudo keyctl list @u | ||
+ | |||
+ | echo Do not type anything: | ||
+ | echo $PASS | sudo ecryptfs-add-passphrase --fnek | ||
+ | |||
+ | echo Sould have signatures: | ||
+ | sudo keyctl list @u | ||
+ | |||
+ | echo Mounting $ROOT on $TARGET... | ||
+ | sudo mount -t ecryptfs -o key=passphrase, | ||