roms

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by roms

  1. 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 ).
  2. For a workaround in "entreprise", we can sync first some directory then we can apply ACL using setfacl utility on Linux and apply groups permissions on folders. Folders in the applied ACL will get the same groups rights of the parent folder. Finally, we can make a cron job to re-apply ACL once a day (if need). That is what I will do and I will test on 2-3 shared folders over samba.