I forgot to check for home folder encryption at the time of installation.? So is there any safe way to do that. Thanks in advance.

1 Answer 1


First, install sudo apt-get install ecryptfs-utils cryptsetup. You'll need to encrypt your home folder while you are logged out, so u need to change account-it has to be account with sudo privileges.

Login to the other account.

Then run sudo ecryptfs-migrate-home -u user and replace user with name of your account (the one that you want to encrypt).

Ta-da! Your home folder is encrypted. Afterwards: 1.Login to your encrypted account immediately. (Do not reboot before that!) 2. Click *Run this action * to create passphrase

In installation process system encrypts also your swap partition, so to encrypt it use sudo ecryptfs-setup-swap.

That's everything. :)


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.