In precedenza, avevo installato 10.10 con tre partizioni:sda1-/boot(ext2) sda2-/(btrfs) sda3- /home(btrfs) . E ho scelto la cartella home crittografata. Ora sulla stessa macchina ho installato 10.04 (LTS) con la scelta di new /boot sullo stesso sda1, / sullo stesso sda2 (ext4) e sda3(home) lasciato intatto dall'installazione precedente.
Il mio problema è che ora non posso accedere/montare la mia casa precedente con ecryptfs-mount-private
util con la passphrase dell'utente domestico precedente. Ecco l'ERRORE:La directory privata crittografata non è impostata correttamente.
Ho anche installato le utility btrfs.
Quindi ci sono soluzioni/soluzioni alternative per ottenere l'accesso a $home su una partizione diversa.
Risposta accettata:
Sei fortunato! Ho appena avuto lo stesso problema e ho scritto uno script che faciliterà il montaggio delle cartelle ecryptfs con FNEK.
sudo su -
Quindi apri nano/vim/il tuo editor preferito e crea un file ecryptfs-fnek-helper.sh
con i seguenti contenuti:
#!/bin/bash
# Thanks to https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/455709
#
echo "Where is the /home with the .ecryptfs mounted? (default=/mnt/home)"
read home_ecryptfs
if [ -z "$home_ecryptfs" ]; then
home_ecryptfs=/mnt/home
fi
home_ecryptfs=$home_ecryptfs/.ecryptfs
echo "Whose encrypted home would you like to mount?"
read user
if [ -z "$user" ]; then
echo "You have to enter a user!"
exit;
fi
echo "What is the user's password?"
read -s password
if [ -z "$password" ]; then
echo "You have to enter a password!"
exit;
fi
echo "Where would you like to mount it? (Default: /mnt/[username])"
read target
if [ -z "$target" ]; then
target=/mnt/$user
fi
target=$target/
mkdir -p $target
wrapped=$home_ecryptfs/$user/.ecryptfs/wrapped-passphrase
sig=$home_ecryptfs/$user/.ecryptfs/Private.sig
private=$home_ecryptfs/$user/.Private/
echo I will be mounting $private into $target.
echo "Clearing the keyring."
keyctl clear @u
keyctl list @u
echo "Unwrapping passphrase and inserting it into key:"
printf "%s" $password | ecryptfs-insert-wrapped-passphrase-into-keyring $wrapped -
keyctl list @u
echo -e "\e[0;92mPassphrase:"
echo -e '\e[1;92m'`printf "%s" $password | ecryptfs-unwrap-passphrase $wrapped - `'\e[0m'
echo -e "\e[0;96mFilename Encryption Key (FNEK) Signature:"
echo -e '\e[1;96m'`tail -n1 $sig`'\e[0m'
echo -e "Mounting now! Be sure to enable FNEK!"
mount.ecryptfs $private $target -o ecryptfs_cipher=aes,ecryptfs_key_bytes=16,key=passphrase
Questo scarterà la tua passphrase e la aggiungerà al portachiavi. Mostrerà anche il passhprase e la firma FNEK corretta, così puoi copiarli/incollarli quando richiesto da mount.ecryptfs.
Rendi il file eseguibile ed eseguilo mentre sei ancora in su:
chmod +x ecryptfs-fnek-helper.sh
./ecryptfs-fnek-helper.sh