Linux command
ecryptfs 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Mount encrypted directory
sudo mount -t ecryptfs [/encrypted] [/mnt/decrypted]
Setup encrypted private directory
ecryptfs-setup-private
Mount user's private directory
ecryptfs-mount-private
Unmount private directory
ecryptfs-umount-private
Add passphrase to keyring
ecryptfs-add-passphrase
Recover encrypted directory
ecryptfs-recover-private
说明
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.
参数
- 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.
FAQ
What is the ecryptfs command used for?
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.
How do I run a basic ecryptfs example?
Run `sudo mount -t ecryptfs [/encrypted] [/mnt/decrypted]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does ecryptfs_cipher _cipher_ do in ecryptfs?
Encryption cipher (aes, blowfish, des3_ede).