How can a specific directory on a filesystem be encrypted?

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

Issue

  • We want to encrypt any writes into a specific directory and decrypt the data on read. What can be used for this? Cryptsetup? LUKS? eCryptfs?

Resolution

Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.