Comment 9 for bug 50568

Revision history for this message
Joerg Bornschein (j.bornschein) wrote : Re: 'bzr push' does not preserve sgid bit on newly created directories

I solved this whole problem using (Posix1.e) filesystem ACLs:

1) Activate ACLs on your filesystem: edit /etc/fstab and add "acl" where appropriate. Run "mount / -o remount,acl" for immediate effect.

2) Allow developer group to rwx the base directory an make sure all newly created files inherit that ACL:

  $ setfacl -m group:developer:rwx /bzr
  $ setfacl -m default:group:developer:rwx /bzr

3) Proceed as descibed in the shared repository tutorial: run "bzr init-repo /bzr" and upload projects to that directory via sftp.

All newly created files will inherit hat ACL. That even solves umask problems on linux, because the umask is not used t mask out ACL permissions.

Seems to work fine for me...