1

I have two writeable directories branch1 and branch2 tied together with AUFS on Debian 8 to the mount point union.

Mount options: br=branch1=rw:branch2=rw

branch1 and branch2 each contain a subdirectory dir with permissions 700. When I change the permissions with chmod 755 union/dir, only the first directory branch1/dir is altered, branch2/dir ramains as it is.

Problem: Group and other users can't access union/dir even after setting chmod 755 because branch2/dir is still chmod 700.

Is there a way to make AUFS apply changed permissions to all directories in the union or is it always limited to the topmost one?

4
  • What is the unserlying filesystem used? aufs reportedly has problems dealing with btrfs. Commented Jun 6, 2015 at 12:48
  • @Ned64 It is ext4. Commented Jun 6, 2015 at 13:24
  • There is a mount option dirperm1 that works around the problem. Commented Jun 7, 2015 at 13:51
  • Apparently this behavior is by design: sourceforge.net/p/aufs/bugs/21/#1293 and dirperm1 is necessary. Commented Jun 7, 2015 at 17:08

1 Answer 1

1

It sounds to me like you have done everything right, so I would suggest filing a bug against aufs.

PS: Kontrollfreak has done that already, and the fix is to use the dirperm1 mount option, according to http://sourceforge.net/p/aufs/bugs/21/#1293 . Thanks for your research @Kontrollfreak .

1
  • I compiled a new kernel 3.19.8 with aufs 3.19 to verify this is not a bug in the Debian package and it isn't. So I filed a bug report at aufs.sourceforge.net. Thanks for bringing me on the right track. Commented Jun 7, 2015 at 13:50

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.