Folder permissions wenn running a Docker image

Hi there,

I am running syncthing v1.27.12 as Docker container on an openmediavault-NAS. I created the user syncthing (id 1003) and added it to the group users (id 100). Also I created a folder on my NAS /share/sync with the permissions rwxrws- - - that belongs to root:users.

The docker container is running with PUID 1003 and PGID 100, /share/sync is mounted als volume /var/syncthing. When I start to sync a folder my laptop the shared folder is created on my NAS but with the permissions rwx- -S- - - syncthing:users → other users cannot access this folder.

The ACL mask for /share/sync is rwx, also the ACL default mask. But the ACL mask of the created folder is - - - → group permissions are ignored.

Can anyone help me with this problem to get access to the folder for all members of the group users?

Thanks

One additional information: I removed the ACL permissions and retried syncing a folder from my laptop. Result is the same: syncthing does not set group permissions.

Is the umask set correctly?

Hi @AudriusButkevicius, thanks for your response. I use the Docker image syncthong/syncthing from Docker Hub. I did not change anything. umask inside the container returns 0022. Umask on my NAS returns also 0022? What would be the correct umask values?

I don’t know by heart. I’m sure the internet has the answer.