I want to have different mounts that are seen only by a specific process or user. One use case I am thinking about is when I want to mount a unionfs or aufs that will be available for one user. So I can have multiple mounts on the same mount point that are different for different users.

link|improve this question

80% accept rate
1  
I don't care to look it up right now, but I think the pam_namespace can do this...also something with cgroups should be possible but I haven't done this yet. – Server Horror Nov 3 '11 at 22:22
Awesome. Please make it an answer so I can accept it. – Mircea Vutcovici Nov 4 '11 at 13:28
Based on your answer I've found an article about mount namespaces: ibm.com/developerworks/linux/library/l-mount-namespaces/… and the man page: manpages.ubuntu.com/manpages/hardy/man8/pam_namespace.8.html – Mircea Vutcovici Nov 4 '11 at 13:30
I don't consider that info much of an answer. But If you provide some outline on how to do it I'll upvote yours. Answering your own question seems perfectly fine to me (and I still don't have to look it up) :) – Server Horror Nov 9 '11 at 14:00
feedback

1 Answer

Why not just mount at ~/specificmountpoint. Set the permissions accordingly. Every user will have the same (almost) mout point.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.