this post was submitted on 10 Oct 2023
60 points (98.4% liked)
Linux
48003 readers
937 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
https://wiki.archlinux.org/title/ECryptfs
ECryptfs is the most common solution.
Edit: LUKE can also used:
https://wiki.archlinux.org/title/Dm-crypt/Device_encryption
https://wiki.archlinux.org/title/Systemd-homed
http://www.lpenz.org/articles/luksfile/
Yes, until you've to build it from the source because... https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928956
Unfortunately ECryptfs seems to be only one that supports inotify as the other popular solutions (gocryptfs, encfs, cryfs) are all FUSE based and it doesn't seem to play very well with inotify. And cryptomator is another FUSE joke that will lead to data loss.
I had forgotten about LUKE, have you tried it?
I need something that is able to encrypt single files - not an entire disk / partition / volume or a disk image. I'm using Syncthing on those encrypted files so having them as a partition or single file doesn't work out.
On a folder level that is how I work both in Linux and windows.
For single use encryption the is also GPG.
https://devconnected.com/how-to-encrypt-file-on-linux/
Edit2:
With
Syncthing
there is options to use a / partition / volume or a disk image. I am assuming you are using a linux desktop.You can use tools like LUKE with Systemd-homed, where the home folder is encrypted, that get mount at login, and Syncthing service get started after mount.
Unless I'm missing something, what I need is something that I can point to a folder and say "this is encrypted" and it will mount an unencrypted version of that somewhere. What ECryptfs does is that it encrypts any file I place on the foder individually / doesn't create a single block of data that is hard to sync. GPG is file by file manually.