What is eCryptfs-utils?

What is eCryptfs-utils?

ecryptfs cryptographic filesystem (utilities) eCryptfs is a POSIX-compliant enterprise-class stacked cryptographic filesystem for Linux. It provides advanced key management and policy features. The kernel module component of eCryptfs is part of the Linux kernel since 2.6.

How do I encrypt a folder with eCryptfs?

Setup Your Encrypted Private Directory

  1. Install ecryptfs-utils. sudo apt-get install ecryptfs-utils.
  2. Setup your private directory. ecryptfs-setup-private.
  3. Enter your login password, and either choose a mount pass phrase or generate one.
  4. Logout, and Log back in to establish the mount.

How to auto Mount HDD within encrypted / home partition?

However, during installation of Ubuntu (17.10), I chose to create a separate /home partition and apply the default ( ecryptfs) encryption. This appears to be preventing the HDD from auto-mounting as desired from the entry I’ve created in fstab. However, the drive happily auto-mounts to un-encrpyted directories.

How do I mount an external hard drive to my home folder?

Mount the drive external to your home folder and use a symbolic link to join the drive to your home folder. If this is not a personal or physically secured system, then other security considerations come into play. Thanks for contributing an answer to Unix & Linux Stack Exchange!

How to auto mount a disk in systemd?

Note the StopWhenUnneeded=true line: this will make systemd stop the unit (including running the luksClose operation) automatically when the disk is unmounted. Create another systemd unit with the mountpoint for /mnt/data, and save it as /etc/systemd/system/mnt-data.mount.

Where do I find the name of my encrypted partition?

First, check the name of your encrypted partition. In this example, my encrypted partition is sdb1, depending on the configuration of your system, this name may be different Next, obtain the UUID of the encrypted device. The format of the entry in /etc/crypttab is as follows. sdb1 is the name of the encrypted device.