LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ecryptfs

stacked cryptographic filesystem

TLDR

Mount encrypted directory
$ sudo mount -t ecryptfs [/encrypted] [/mnt/decrypted]
copy
Setup encrypted private directory
$ ecryptfs-setup-private
copy
Mount user's private directory
$ ecryptfs-mount-private
copy
Unmount private directory
$ ecryptfs-umount-private
copy
Add passphrase to keyring
$ ecryptfs-add-passphrase
copy
Recover encrypted directory
$ ecryptfs-recover-private
copy

SYNOPSIS

mount -t ecryptfs source dest [-o options]

DESCRIPTION

eCryptfs is a stacked cryptographic filesystem for Linux. It encrypts files at the filesystem level, storing encrypted data in a lower directory while presenting decrypted files through a mount point.Unlike block-level encryption, eCryptfs encrypts individual files, allowing encrypted and unencrypted files to coexist. Metadata is stored in file headers, making backup and recovery straightforward.

PARAMETERS

ecryptfs_cipher cipher

Encryption cipher (aes, blowfish, des3_ede).
ecryptfs_key_bytes bytes
Key size in bytes (16, 24, 32).
ecryptfs_passthrough yes|no
Allow unencrypted files.
ecryptfs_enable_filename_crypto yes|no
Encrypt filenames.
ecryptfs_sig sig
Mount signature for key.
ecryptfs_fnek_sig sig
Filename encryption key signature.
no_sig_cache
Don't cache signature.

SETUP EXAMPLE

$ # Create directories
mkdir /encrypted /decrypted

# Mount with interactive setup
sudo mount -t ecryptfs /encrypted /decrypted

# Answer prompts for cipher, key size, plaintext passthrough
copy

CAVEATS

Filename encryption requires additional setup. Performance overhead compared to block encryption. Key management requires understanding of kernel keyrings. Deprecated in favor of fscrypt for ext4. Not recommended for new deployments.

HISTORY

eCryptfs was developed by IBM and first included in the Linux kernel in 2006. It was used by Ubuntu for encrypted home directories. The project has been largely superseded by fscrypt (native ext4/F2FS encryption) but remains available for legacy use.

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid