Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Ubuntu offers the ability to automatically mount/unmount the home directory using encFS when the user logs in or out.

How can this be applied to a truecrypt volume using only a keyfile (no password) residing in the home directory? The home directory must be decrypted first on login so that the keyfile is readable and then the truecrypt volume (/dev/sdb) should be mounted. The reverse occurs on logout where the volume should be dismounted (though order is less relevant).

The user in question has sudo powers but the mount should be automatic without password prompt (which permissions need to be set in order to avoid interactive sudo? Should an entry be made in /etc/fstab?)

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.