Disk and filesystem encryption are important security measures for working with sensitive data. The eCryptfs software package provides data encryption at the filesystem level for targeted data encryption. A thorough understanding of how to create and work with encrypted disks and filesystems is required for advanced security certification exams such as the LPIC 303-200 exam.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Install eCryptfs on the Provided System
- Run the following command:
sudo apt-get install ecryptfs-utils
- Accept the defaults at the prompts.
- Run the following command:
- Configure `/opt/protected` as an Encrypted Mount
- Run the following command:
sudo mount -t ecryptfs /opt/protected /opt/protected
- Type
supersecret!
at the passphrase prompt. - Accept all default options at the configuration prompts.
- Answer "yes" to all prompts.
- Run the following command:
- Copy the Contents of `/etc/profile.d` into `/opt/protected`
- Run the following command:
sudo cp /etc/profile.d/* /opt/protected/
- Run the following command:
- Re-encrypt `/opt/protected` and Verify that the Contents of the Directory Are Unreadable
- Run the following command:
umount /opt/protected
- Attempt to view the contents of one of the files in the
/opt/protected
directory using thecat
command.
- Run the following command: