Advertisement
metalx1000

Linux Directory/Folder Encryption

Mar 27th, 2017
863
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.54 KB | None | 0 0
  1. #https://www.howtoforge.com/tutorial/how-to-encrypt-directories-and-partitions-with-ecryptfs-on-debian/
  2. sudo apt install ecryptfs-utils
  3. sudo mount -t ecryptfs <folder> <folder>
  4.  
  5. ##############output################
  6. Select key type to use for newly created files:
  7. 1) tspi
  8. 2) passphrase
  9. Selection: <-- 2
  10. Passphrase: <-- Enter a secure password
  11. Select cipher:
  12. 1) aes: blocksize = 16; min keysize = 16; max keysize = 32
  13. 2) blowfish: blocksize = 8; min keysize = 16; max keysize = 56
  14. 3) des3_ede: blocksize = 8; min keysize = 24; max keysize = 24
  15. 4) twofish: blocksize = 16; min keysize = 16; max keysize = 32
  16. 5) cast6: blocksize = 16; min keysize = 16; max keysize = 32
  17. 6) cast5: blocksize = 8; min keysize = 5; max keysize = 16
  18. Selection [aes]: <-- Press ENTER
  19. Select key bytes:
  20. 1) 16
  21. 2) 32
  22. 3) 24
  23. Selection [16]: <-- Press ENTER
  24. Enable plaintext passthrough (y/n) [n]: <-- Press ENTER
  25. Enable filename encryption (y/n) [n]: <-- Press ENTER
  26. Attempting to mount with the following options:
  27. ecryptfs_unlink_sigs
  28. ecryptfs_key_bytes=16
  29. ecryptfs_cipher=aes
  30. ecryptfs_sig=bd28c38da9fc938b
  31. WARNING: Based on the contents of [/root/.ecryptfs/sig-cache.txt],
  32. it looks like you have never mounted with this key
  33. before. This could mean that you have typed your
  34. passphrase wrong.
  35. Would you like to proceed with the mount (yes/no)? : <-- yes
  36. Would you like to append sig [bd28c38da9fc938b] to
  37. [/root/.ecryptfs/sig-cache.txt]
  38. in order to avoid this warning in the future (yes/no)? : <-- yes
  39. Successfully appended new sig to user sig cache file
  40. Mounted eCryptfs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement