I thought an union file system would be better in my case cause I need my users to be able to access a merged shared folders via ftp, sftp and a web file manager app. Plus, when users and apps add files to their shared folder the ownerships/permissions are set by default.
And I also thought 1 symlink was not able to point multiple folders exactly like they were merged (that's what I read). But idk I'm a newbie... I tried to use them at the beginning, but rapidly abandon them for bind mounts.
Bind mounts work perfectly and are very easy for that : no need to manage permissions/ownership or anything else in my case. Users can directly read only other users files via ftp/sftp/web apps, any modification on one side is immediately reflected on the other side. But each user needs 1 mount point for each other user.
So I would need something that acts exactly like a bind mount but with the capability to display the contents of several directories (like they were merged) from only 1 mount point. That's why I thought an union file system would be the easiest way to achieve this.
Edit :
I forgot that my own user (lets say user1) had a bind mount to another user's home sub-folder :
Code:
mount --bind /home/user2/sub/ /home/user1/sub/user2Sub
I'm wondering if a bind mount pointing the parent folder of an aufs mount could cause the problem ?
I'll dismount the mount bind, then remount all aufs ones to see if the problem still occurs in the next days/weeks.