ecryptfs(7)
π« eCryptfs, bestie π«
okay so this is the manual page for ecryptfs(7) β yes, section 7, the whole eCryptfs situation, and I am so excited to walk you through it π«Ά
β¨ NAME β¨
eCryptfs β an enterprise-class cryptographic filesystem for linux. yes, lowercase linux, we respect the original. periodt.
πΈ SYNOPSIS πΈ
mount -t ecryptfs [SRC DIR] [DST DIR] -o [OPTIONS]
that's the whole vibe. mount it, point it at dirs, hand it options. slay.
π¦ DESCRIPTION π¦
okay bestie, listen. eCryptfs is a POSIX-compliant enterprise-class stacked cryptographic filesystem for Linux. it's derived from Erez Zadok's Cryptfs, which was implemented through the FiST framework for generating stacked filesystems. so like, it has lineage. main character energy fr fr.
and then eCryptfs extends Cryptfs to bring advanced key management and policy features on top. β¨
here's the part that lowkey changes your life: eCryptfs stores cryptographic metadata in the header of each file written. which means encrypted files can be copied between hosts, and the file will still be decryptable with the proper key. you don't have to keep track of any additional information aside from what is already in the encrypted file itself. the file carries its own receipts, honestly iconic.
think of eCryptfs as a sort of "gnupgfs." that's the official vibe check. π
π OPTIONS π
π₯ KERNEL OPTIONS
parameters that apply to the eCryptfs kernel module. the kernel-side girlies.
ecryptfs_sig=(fekek_sig)β specify the signature of the mount wide authentication token. heads up: the authentication token has to already be in the kernel keyring before the mount is performed. you can use ecryptfs-manager or the eCryptfs mount helper to construct the authentication token and add it to the keyring prior to mounting.ecryptfs_fnek_sig=(fnek_sig)β specify the signature of the mount wide authentication token used for filename crypto. and again, that authentication must be in the kernel keyring before mounting. no keyring, no mount, sorry bestie.ecryptfs_cipher=(cipher)β specify the symmetric cipher to be used on a per file basis.ecryptfs_key_bytes=(key_bytes)β specify the keysize to be used with the selected cipher. if the cipher only has one keysize, you don't need to specify it. convenience πecryptfs_passthroughβ allows non-eCryptfs files to be read and written from within an eCryptfs mount. this option is turned off by default.no_sig_cacheβ do not check the mount key signature against the values in the user's~/.ecryptfs/sig-cache.txtfile. this is useful for things like non-interactive setup scripts, so the mount helper does not stop and prompt the user in the event that the key sig is not in the cache. automation girlies, this one's for you πecryptfs_encrypted_viewβ this option provides a unified encrypted file format of the eCryptfs files in the lower mount point. currently, it is only useful if the lower mount point contains files with the metadata stored in the extended attribute. upon a file read in the upper mount point, the encrypted version of the file will be presented with the metadata in the file header instead of the xattr. β οΈ files cannot be opened for writing when this option is enabled. that's a hard no on writes, fr fr.ecryptfs_xattrβ store the metadata in the extended attribute of the lower files rather than the header region of the lower files.verboseβ log ecryptfs information to/var/log/messages.
π¨ do not run eCryptfs in verbose-mode unless you are doing so for the sole purpose of development, since secret values will be written out to the system log in that case. like, actual secrets. in a log. no cap, do not.
π MOUNT HELPER OPTIONS
parameters that apply to the eCryptfs mount helper.
key=(keytype):[KEY MODULE OPTIONS]β specify the type of key to be used when mounting eCryptfs.ecryptfs_enable_filename_crypto=(y/n)β specify whether filename encryption should be enabled. if not, the mount helper will not prompt the user for the filename encryption key signature. that's the default.verbosity=0/1β ifverbosity=1, the mount helper will ask you for missing values (default). otherwise, ifverbosity=0, it will not ask for missing values and will fail if required values are omitted. so it's either "please fill this in bestie" or "nope, failing, bye" π
π§ KEY MODULE OPTIONS
parameters that apply to individual key modules have the alias for the key module in the prefix of the parameter name. key modules are pluggable, and which key modules are available on any given system is dependent upon whatever happens to be installed in /usr/lib*/ecryptfs/. so like, check your own system, iykyk.
passphrase_passwd=(passphrase)β the actual password is passphrase. since the password is visible to utilities (likepsunder Unix), this form should only be used where security is not important. π yeah.pssees everything.passphrase_passwd_file=(filename)β the password should be specified in a file withpassphrase_passwd_file=(passphrase). it is highly recommended that the file be stored on a secure medium such as a personal usb key. πpassphrase_passwd_fd=(file descriptor)β the password is specified through the specified file descriptor.passphrase_salt=(hex value)β the salt should be specified as a 16 digit hex value.openssl_keyfile=(filename)β the filename should be the filename of a file containing an RSA SSL key.openssl_passwd_file=(filename)β the password should be specified in a file withopenssl_passwd=(openssl-password). again, highly recommended that the file be stored on a secure medium such as a personal usb key. πopenssl_passwd_fd=(file descriptor)β the password is specified through the specified file descriptor.openssl_passwd=(password)β the password can be specified on the command line. since the password is visible in the process list, it is highly recommended to use this option only for testing purposes. testing only, bestie, please π
π EXAMPLE π
the following command will layover mount eCryptfs on /secret with a passphrase contained in a file stored on secure media mounted at /mnt/usb/.
mount -t ecryptfs -o
key=passphrase:passphrase_passwd_file=/mnt/usb/file.txt /secret /secret
where file.txt contains the contents "passphrase_passwd=[passphrase]". cute, contained, encrypted. obsessed. π
β SEE ALSO β
mount(8)/usr/share/doc/ecryptfs-utils/ecryptfs-faq.htmlhttp://ecryptfs.org/
π NOTES π
do not run eCryptfs in verbose-mode unless you are doing so for the sole purpose of development, since secret values will be written out to the system log in that case. (yes we said it before, we're saying it again, because it matters.)
make certain that your eCryptfs mount covers all locations where your applications may write sensitive data. in addition, use dm-crypt to encrypt your swap space with a random key on boot, or see ecryptfs-setup-swap(1). don't leave the swap out, that's where the drama lives π
also, passphrases have a maximum length of 64 characters. so like, keep it iconic but keep it under 64. π
π BUGS π
please post bug reports to the eCryptfs bug tracker on Launchpad.net: https://bugs.launchpad.net/ecryptfs/+filebug.
for kernel bugs, please follow the procedure detailed in Documentation/oops-tracing.txt to help us figure out what is happening. receipts help everybody π«Ά
π AUTHOR π
this manpage was (re-)written by Dustin Kirkland <kirkland@ubuntu.com> for Ubuntu systems (but may be used by others). permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation.
on Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
and that's the whole page, bestie!! this came to you from ecryptfs-utils, dated 2009-03-24, and it lives at ecryptfs(7). go forth and encrypt responsibly πβ¨π
π¦ where this page comes from
- alpine 3.24: ecryptfs-utils-doc 111-r19 Β· GPL-2.0-or-later
- arch rolling: ecryptfs-utils 111-9 Β· GPL
- debian bookworm: ecryptfs-utils 111-6 Β· GPL-2.0-or-later
- debian trixie: ecryptfs-utils 111-8 Β· GPL-2.0-or-later
- opensuse-leap 16.0: ecryptfs-utils 111-bp160.1.12 Β· GPL-2.0-only
- opensuse-leap 16.0: ecryptfs-utils 111-bp160.1.12 Β· GPL-2.0-only
- opensuse-leap 16.0: ecryptfs-utils 111-bp160.1.12 Β· GPL-2.0-only
- opensuse-leap 16.0: ecryptfs-utils 111-bp160.1.12 Β· GPL-2.0-only
- ubuntu jammy: ecryptfs-utils 111-5ubuntu1 Β· GPL-2.0-or-later
- ubuntu noble: ecryptfs-utils 111-6ubuntu3 Β· GPL-2.0-or-later
- ubuntu questing: ecryptfs-utils 111-8
- ubuntu resolute: ecryptfs-utils 111-8build2 Β· GPL-2.0-or-later
- ubuntu stonking: ecryptfs-utils 111-8build2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms