Encrypting your home directory
While encrypting your entire disk with LUKS provides comprehensive protection, you might prefer to encrypt only your home directory containing your personal files, configurations, and other sensitive data. Ubuntu offers a way to do this using eCryptfs, a file-based encryption system that operates transparently in the background.
How to encrypt your home directory
You can set up home directory encryption either during the initial installation of Ubuntu or afterward, using the eCryptfs tools. The following are the steps to manually encrypt your home directory on an existing system.
Install eCryptfs utilities
Open a terminal and install the necessary packages:
ken@monster:~$ sudo apt install ecryptfs-utils cryptsetup
Create a second user account
You can’t migrate your home directory data for a user account with a logged-in session. The simplest way to handle this is to create a temporary account with administrative access...