I’m trying to setup a really basic two user Syncthing node using just one syncthing instance (FreeNAS). I am aware that there are discussion in place on how to sync permission flags, and I’m also aware that I could run multiple instances of Syncthing. My setup is really simple so I’m hoping to do it in this way.
To simplify, I have 2 “clients” (Mac/Win) and one “server”. On the server I have 3 users:
syncthing. Not surprising is that Syncthing is running (in a jail) under the user
I created 2 folders,
setgid set and owned by
user2:user2group respectively. The user
syncthing is part of
The permissions are
770 and Syncthing is set to ignore permissions.
The syncthing folders are created in
In my mind this should work: Syncthing, since is in the groups
user2group has full access to
Sync/User*/ folders. When it creates a file, that file will be owned by
syncthing, but, since
setgid flag is set, the group will be set to
userx can also have access (locally or via smb).
But in the real world Syncthing says: permission denied. The funny part is that if I
su - syncthing I can write in the folder as expected.
What I’m doing wrong? Maybe Syncthing needs to be the owner? But why? Can the FreeBSD jail be the problem?
Thanks in advance for your help