|
Literature
Africa |
FSCryptFSCrypt enables users to encrypt directories within a filesystem.
The > mkdir /mnt/scratch/brooks/example
> fscrypt encrypt /mnt/scratch/brooks/example
The following protector sources are available:
1 - Your login passphrase (pam_passphrase)
2 - A custom passphrase (custom_passphrase)
3 - A raw 256-bit key (raw_key)
Enter the source number for the new protector [2 - custom_passphrase]:
Enter a name for the new protector: passphrase
Enter custom passphrase for protector "passphrase":
Confirm passphrase:
"/mnt/scratch/brooks/example" is now encrypted, unlocked, and ready for use.
After that you can lock and unlock that folder:
> fscrypt lock /mnt/scratch/brooks/example
"/mnt/scratch/brooks/example" is now locked.
> fscrypt unlock /mnt/scratch/brooks/example
Enter custom passphrase for protector "passphrase":
"/mnt/scratch/brooks/example" is now unlocked and ready for use.
While locked, no-one will be able to view the contents or names of files in the encrypted directory. When unlocked - normal file permissions apply. Admin users will be able to see while unlocked. After a shutdown the key will be forgotten and data will be fully encrypted. AdminNote that the pam_passphrase has not been configured yet.
Filesystem wide config is in To set up, first there needs to be a system-wide setup with |