Wheezy – Encrypting the home folder after installation
To encrypt the home folder after installation on Debian Wheezy, follow these steps:
Log out the user whose home folder you want to encrypt
Log in as root, for example after switching to a console with CTRL+F2, and then install the ecryptfs-utils package
apt-get install ecryptfs-utilsload the module
modprobe ecryptfsrun the encryption:
ecryptfs-migrate-home -u <username>It will ask for the user’s password
After the data is encrypted, follow the steps shown, in particular logging in as the user whose folder was encrypted before rebooting the computer, and check that all the data is still accessible. In a console, run the command
ecryptfs-unwrap-passphraseand keep the key it gives you somewhere safe and away from prying eyes 🙂 If everything is fine, delete the folder indicated, usually: <username>.<randomstring>