Multiple mounts on login via PAM

Bug #615657 reported by AlexanderFaucher
44
This bug affects 9 people
Affects Status Importance Assigned to Milestone
eCryptfs
In Progress
Wishlist
Unassigned

Bug Description

If you use Ubuntu 10.04's encrypted home directory with ecryptfs, you are unable to set up a second or more encrypted folders using ecryptfs that are automounted on login using PAM.

There are many uses cases for this, one common example would be an encrypted backup drive.

Revision history for this message
Tyler Hicks (tyhicks) wrote :

This would be a good feature to have. However, no one is stepping up to work on it, so marking it wishlist for now.

Changed in ecryptfs:
importance: Undecided → Wishlist
Revision history for this message
AlexGenaud (alexgenaud) wrote :

Another common use case: shared directory between multiple users

Is there a technical reason (aside from not-yet-implemented) why this should not be possible?

Dustin Kirkland said on 2010-12-27 in response to https://answers.launchpad.net/ecryptfs/+question/92089 :
It is not possible to mount more than one encrypted directory automatically at logon. That's simply not how the feature works.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Okay, so we're more than halfway there, to solving this bug now, as of revision r526.

This revision adds support to mount.ecryptfs_private.c to mount and unmount multiple user-configurable ecryptfs directories. The current commit adds support to mount.ecryptfs_private to take one (and only one) option argument, an "alias" for a configuration file in ~/.ecryptfs/alias.conf, and the signature, which is ~/.ecryptfs/alias.sig.

What's missing to solve the rest of this bug is:
 * support in mount.ecryptfs_private.c to loop over a list of argv arguments, doing each mount
 * support in pam_ecryptfs to call mount.ecryptfs_private with some list of alias arguments.

So we're not there yet, but we're closer. Patches welcome. Thanks.

Dustin

Changed in ecryptfs:
status: New → In Progress
Revision history for this message
Andrea V (andreakarimodm) wrote :

Wanted this feature as today I am repartitioning my drive.
Does this got any further?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.