← 返回命令列表

Linux command

ecryptfs-setup-private 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Setup encrypted private directory

ecryptfs-setup-private

Setup with wrapped passphrase

ecryptfs-setup-private --wrapping

Setup without wrapped passphrase

ecryptfs-setup-private --noautomount

Force setup (overwrite existing)

ecryptfs-setup-private --force

说明

ecryptfs-setup-private creates an encrypted private directory for a user. It sets up ~/Private as an encrypted folder that is automatically mounted when the user logs in and unmounted on logout. The setup creates the necessary encryption keys and wrapper, storing them in ~/.ecryptfs. The mount passphrase is wrapped with the login password, enabling automatic decryption on login.

参数

--wrapping
Use login passphrase for wrapping.
--noautomount
Don't configure automount on login.
--nopwcheck
Don't verify login password.
--force
Overwrite existing configuration.
-u, --username _name_
Specify username (for root use).
-l, --loginpass _pass_
Login passphrase (insecure, for scripting).
-m, --mountpass _pass_
Mount passphrase (insecure, for scripting).

FAQ

What is the ecryptfs-setup-private command used for?

ecryptfs-setup-private creates an encrypted private directory for a user. It sets up ~/Private as an encrypted folder that is automatically mounted when the user logs in and unmounted on logout. The setup creates the necessary encryption keys and wrapper, storing them in ~/.ecryptfs. The mount passphrase is wrapped with the login password, enabling automatic decryption on login.

How do I run a basic ecryptfs-setup-private example?

Run `ecryptfs-setup-private` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --wrapping do in ecryptfs-setup-private?

Use login passphrase for wrapping.