

If your user is the only existing user account on your computer, you'll need to create another user (with administrator rights) account. You'll need to login to an admin account (user2) that's different from the user whose home directory you want to encrypt (user1). Sudo apt install ecryptfs-utils cryptsetupĢ.

Install the required encryption packages on your Ubuntu 20.10, 20.04 or 18.04 system: To make this guide easy to follow, the user for which we'll encrypt the home directory will be called "user1", while the user account that runs the migration will be called "user2".ġ. There are separate sections for how to encrypt the home folder for an existing user, how to encrypt the home folder for a new user account, and how to encrypt the swap (with this last part being recommended but not mandatory).Įncrypt the home folder for an existing user account on Ubuntu

If despite this you still want to encrypt your home folder using eCryptfs, you'll find instructions below for Ubuntu 20.10, 20.04 and 18.04. This option was removed from the Ubuntu installer because it uses eCryptfs, which is considered " buggy, under-maintained", and the recommended alternative is a full disk encryption using LUKS.įor per-directory encryption, like the home folder, it's recommended to use fscrypt, which as far as I can tell doesn't support encrypting the home directory unless it's on a separate partition. Ubuntu 18.04 LTS and newer Ubuntu versions no longer include an option in the installer to encrypt the home directory.
