linux

Wheezy – Encrypting the home folder after installation

1 min read

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

text
apt-get install ecryptfs-utils

load the module

text
modprobe ecryptfs

run the encryption:

text
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

text
ecryptfs-unwrap-passphrase

and keep the key it gives you somewhere safe and away from prying eyes 🙂 If everything is fine, delete the folder indicated, usually: <username>.<randomstring>

#debian#encryption