The goal is to sync a common directory structure over multiple sites.
Permissions on server
useradd -g office -d /home/common -c "btsync service" -m btsync
- Don’t use a sticky bit, or sync will not be able to delete files
- Make sure all contributors to
/home/common
have primary group office
and umask=002
- This will mean that they all have read/write access to the common files
- Recommended to use the SGID bit to lock all new files with group
office
and prevent this changing
chgrp -R office /home/common
chmod g+s /home/common #just to top directory (assume no sub-directories)
chmod -R g+w /home/common
- Note that if a user creates a new file, when btsync replicates it on other systems it will lose ownership information (and be owned by btsync). But because it will have group
office
it will be editable.
First time setup