Install libpam-encfs by entering the following commands in the terminal:
sudo apt update sudo apt install libpam-encfs
PAM module to automatically mount encfs filesystems on login
This PAM module integrates encfs and PAM, so home directories are automatically mounted on login. EncFS provides an encrypted filesystem in user-space, this PAM module easily allow each user to have an encrypted home, and mount it automatically using its login password as encfs password.