Comments on How to Encrypt Directories with eCryptfs on Ubuntu 16.04
This tutorial shows how to use eCryptfs to encrypt a directory on Ubuntu 16.04. eCryptfs is a POSIX-compliant enterprise-class stacked cryptographic filesystem for Linux. You can use it to encrypt partitions and also directories that don't use a partition of their own, no matter the underlying filesystem, partition type, etc.
7 Comment(s)
Comments
How does this differ from luks filesystem encryption? I've been using that for years - since it replaced what I was using before. I guess my point is that I hope this doesn't simply replace luks - since it's a pain in the ass to lose and encrypted filesystem container when you upgrade your system. My luks fs has happily survived multiple upgrades for several years now.
It is just an alternative filesystem encryption. Luks has not been discontinued, as far as I know. So if you use Luks, stay with that :)
Can this encrypted directory structure be backed up ie cp /home/secure /xyz ?
Thanks for this! It was just what I needed. Not too much detail or long explanation; just enough do the thing.
Just wanted to mention somwehere on the internet, because myself I could not find such case - I was usign ecrypfs to encrypt home directory on xubuntu 18 LTS, but my laptop dell vostro 5481 kept turning off randomly. And even power button did not react until I plug out charging cable. It did not happen without ecryptfs, and now I removed this home directory encryption. I now encrypted only Private directory. Few days it works fine. Hopefully it will. At first it looked like hardware problem but if it is not reproducable without encrypting home, it is software problem. But still weird that even power button did not react - can this be controlled with software?
I had more drive space added to my server for testing encryption by our Windows techs. Do I have to mount that first as an unencrypted, normal drive and then mount it again as an ecryptfs drive? When I mount it just as an ecryptfs drive is only, it seems to work as expected, but only sees a small portoin of the drivespace shown in fdisk.
Great tutorial. I got this to work but tried to add it to my fstab file so I could automount it. But it does not work. Any sugesstions.