Ubuntu Forums Archive Viewer

[SOLVED] Mount eCryptfs directory automatically with PAM

Archived thread 1006360 from Security. Markdown source: Security/thread_1006360_[SOLVED]_Mount_eCryptfs_directory_automatically_wi.md

Original URL About this archive
#1

Hi *,

I am trying to mount an eCryptfs-encrypted directory automatically using the PAM module as described in http://ecryptfs.sourceforge.net/README.

But when rebooting my PC, I must still enter the encryption type and password *before* logging in, similar to *mount -t ecryptfs*.

If I understand the description in http://ecryptfs.sourceforge.net/README correctly, the directory should be mounted *after* login and the password should be derived from the login password:

You can use the PAM module to automatically use a key based on your login passphrase, which can then be used to perform an eCryptfs mount non-interactively.

I attached a file with all the commands I have executed.

Does anyone have an idea what to do to mount the directory automatically?

Thanks a lot in advance!

#2

It was a missing "noauto" in the README file for the /etc/fstab options.

#3

Vlc, thank you for your help!

Does anyone know how I can avoid the message "Could not find key with description..."

Thanks,