Linux command
ecryptfs-setup-swap 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Setup encrypted swap
ecryptfs-setup-swap
Setup with specific
ecryptfs-setup-swap [/dev/sda2]
说明
ecryptfs-setup-swap configures encrypted swap space using dm-crypt with a random key. This prevents sensitive data from being recoverable from swap after shutdown. The script modifies /etc/fstab and /etc/crypttab to enable encrypted swap on boot. A random key is generated each boot, so swap contents are unrecoverable after restart. Encrypted swap is important when using encrypted home directories, as unencrypted swap could leak decrypted data.
FAQ
What is the ecryptfs-setup-swap command used for?
ecryptfs-setup-swap configures encrypted swap space using dm-crypt with a random key. This prevents sensitive data from being recoverable from swap after shutdown. The script modifies /etc/fstab and /etc/crypttab to enable encrypted swap on boot. A random key is generated each boot, so swap contents are unrecoverable after restart. Encrypted swap is important when using encrypted home directories, as unencrypted swap could leak decrypted data.
How do I run a basic ecryptfs-setup-swap example?
Run `ecryptfs-setup-swap` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more ecryptfs-setup-swap examples?
This page includes 2 examples for ecryptfs-setup-swap, plus related commands for nearby Linux tasks.