ecryptfs-setup-private(1)

✨ ecryptfs-setup-private(1) ✨

okay bestie, welcome to the eCryptfs corner of the manual πŸ’– this is ecryptfs-setup-private, and it's about to set you up with your very own private encrypted directory. no cap.


πŸŽ€ NAME πŸŽ€

ecryptfs-setup-private β€” setup an eCryptfs private directory.


πŸ¦‹ SYNOPSIS πŸ¦‹

ecryptfs-setup-private [-f|--force] [-w|--wrapping] [-b|--bootstrap]
[-n|--no-fnek] [--nopwcheck] [-u|--username USER] [-l|--loginpass
LOGINPASS] [-m|--mountpass MOUNTPASS]

πŸ’… OPTIONS πŸ’…

here's everything you can pass to ecryptfs-setup-private, and yes, we're going through all of them, no skipping πŸ™ˆ

  • -f, --force β€” Force overwriting of an existing setup. it's giving "idc, do it anyway" energy πŸ”₯
  • -w, --wrapping β€” Use an independent wrapping passphrase, different from the login passphrase. main character passphrase energy, separate from the login one ✨
  • -u, --username USER β€” User to setup, default is current user if omitted. yeah just say the name, or don't, and it'll assume it's you 🫢
  • -l, --loginpass LOGINPASS β€” System passphrase for USER, used to wrap MOUNTPASS, will interactively prompt if omitted. if you leave it out it will literally ask you πŸ’¬
  • -m, --mountpass MOUNTPASS β€” Passphrase for mounting the ecryptfs directory, default is 16 bytes from /dev/random if omitted. random 16 bytes, iconic 🎲
  • -b, --bootstrap β€” Bootstrap a new user's entire home directory. the whole home dir, bestie 🏠
  • --undo β€” Display instructions on how to undo an encrypted private setup. regret? we've all been there, here are the instructions πŸ”„
  • -n, --no-fnek β€” Do not encrypt filenames; otherwise, filenames will be encrypted on systems which support filename encryption. yes, the names of your files get encrypted too by default, unless you say no πŸ™ˆ
  • --nopwcheck β€” Do not check the validity of the specified login password (useful for LDAP user accounts). LDAP besties, this one's for you πŸ’œ
  • --noautomount β€” Setup this user such that the encrypted private directory is not automatically mounted on login. no auto-mounting, you'll do it yourself, periodt πŸ’…
  • --noautoumount β€” Setup this user such that the encrypted private directory is not automatically unmounted at logout. it just stays mounted, lowkey πŸ‘‘

🌸 DESCRIPTION 🌸

ecryptfs-setup-private is a program that sets up a private cryptographic mountpoint for a non-root user. you're getting your own little encrypted hideaway, fr fr.

Be sure to properly escape your parameters according to your shell's special character nuances, and also surround the parameters by double quotes, if necessary. Any of the parameters may be:

  1. exported as environment variables
  2. specified on the command line
  3. left empty and interactively prompted
🚨 THE USER SHOULD ABSOLUTELY RECORD THE MOUNT PASSPHRASE AND STORE IN A SAFE LOCATION. If the mount passphase file is lost, or the mount passphrase is forgotten, THERE IS NO WAY TO RECOVER THE ENCRYPTED DATA. no cap. not a vibe. write it down, put it somewhere safe, like actually 😭

Using the values of USER, MOUNTPASS, and LOGINPASS, ecryptfs-setup-private will:

  • Create ~/.Private (permission 700)
  • Create ~/Private (permission 500)
  • Backup any existing wrapped passphrases
  • Use LOGINPASS to wrap and encrypt MOUNTPASS
  • Write to ~/.ecryptfs/wrapped-passphrase
  • Add the passphrase to the current keyring
  • Write the passphrase signature to ~/.ecryptfs/Private.sig
  • Test the cryptographic mount with a few reads and writes

The system administrator can add the pam_ecryptfs.so module to the PAM stack which will automatically use the login passphrase to unwrap the mount passphrase, add the passphrase to the user's kernel keyring, and automatically perform the mount. See pam_ecryptfs(8). slay, it just handles itself ✨


🧚 FILES 🧚

  • ~/.ecryptfs/auto-mount
  • ~/.Private β€” underlying directory containing encrypted data
  • ~/Private β€” mountpoint containing decrypted data (when mounted)
  • ~/.ecryptfs/Private.sig β€” file containing signature of mountpoint passphrase
  • ~/.ecryptfs/Private.mnt β€” file containing path of the private directory mountpoint
  • ~/.ecryptfs/wrapped-passphrase β€” file containing the mount passphrase, wrapped with the login passphrase
  • ~/.ecryptfs/wrapping-independent β€” this file exists if the wrapping passphrase is independent from login passphrase

⭐ SEE ALSO ⭐


πŸ‘‘ AUTHOR πŸ‘‘

This manpage and the ecryptfs-setup-private utility was 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 and Ubuntu systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.


and that's the whole thing bestie 🫢 this page came from ecryptfs-utils, dated 2008-11-17, and it's literally the ecryptfs-setup-private(1) manual. go forth and encrypt πŸ’–πŸŒˆπŸ”