Linux Security: Disk Encryption with eCryptfs

Install eCryptfs on the Provided System

sudo apt-get install ecryptfs-utils

Configure ‘/opt/protected’ as an Encrypted Mount

sudo mount -t ecryptfs /opt/protected /opt/protected
# Use "supersecret1" as passphrase
# Accept defaults fot all prompts

Copy the Contents of ‘/etc/profile.d’

sudo cp /etc/profile.d/* /opt/protected/

Re-encrypt ‘/opt/profile.d/* /opt/protected/

umount /opt/protected

Full Video