Bug : Fix folder creation permission and inheritance


roms

Recommended Posts

From time now (at least 1.0.134 and up to 1.1.27), folders created with btsync does not get correct permission on Linux.

All new folders get permission like this :

  • user running btsync : rwx
  • groups : rx

can you fix this and honor the inheritance of ACL.

For example, with 2 hosts ( A and B ), the created folder's on A : ACL are OK (of course) and are these :

Host A :

-------------------------------------

# file: btshare/test

# owner: roms

# group: admins

# flags: -s-

user::rwx

group::rwx

group:btsync:rwx

group:admins:rwx

group:g_test:rwx

mask::rwx

other::---

default:user::rwx

default:group::rwx

default:group:btsync:rwx

default:group:admins:rwx

default:group:g_test:rwx

default:mask::rwx

default:other::---

-------------------------------------

On host B the created folder's have this permission (this ACL is not correct and BtSync did not honor the inheritence) :

-------------------------------------

# file: btshare/test

# owner: btsync

# group: admins

user::rwx

group::rwx #effective:r-x

group:btsync:rwx #effective:r-x

group:admins:rwx #effective:r-x

group:g_test:rwx #effective:r-x

mask::r-x

other::---

default:user::rwx

default:group::rwx

default:group:btsync:rwx

default:group:admins:rwx

default:group:g_test:rwx

default:mask::rwx

default:other::---

-------------------------------------

Expected result :

-------------------------------------

# file: btshare/test

# owner: btsync

# group: admins

user::rwx

group::rwx

group:btsync:rwx

group:admins:rwx

group:g_test:rwx

mask::rwx

other::---

default:user::rwx

default:group::rwx

default:group:btsync:rwx

default:group:admins:rwx

default:group:g_test:rwx

default:mask::rwx

default:other::---

-------------------------------------

Like you can see, group mode of folders are not inherited.

For files creation, ACL are like this :

On host A :

-------------------------------------

# file: btshare/test/bgrun.wsf

# owner: roms

# group: admins

user::rwx

group::rwx

group:btsync:rwx

group:admins:rwx

group:g_test:rwx

mask::rwx

other::---

-------------------------------------

On host B :

-------------------------------------

# file: btshare/test/bgrun.wsf

# owner: btsync

# group: btsync

user::rwx

group::rwx

group:btsync:rwx

group:admins:rwx

group:g_test:rwx

mask::rwx

other::r--

-------------------------------------

Expected result on Host B :

-------------------------------------

# file: btshare/test/bgrun.wsf

# owner: btsync

# group: btsync

user::rwx

group::rwx

group:btsync:rwx

group:admins:rwx

group:g_test:rwx

mask::rwx

other::---

-------------------------------------

Some post said to try umask but that does not work (I have tried umask 0000 / 000 / etc ).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.