Hi everybody. I have installed the syncthing/syncthing container on my OMV5 machine by the following procedure:
-> docker pull syncthing/syncthing:latest
-> docker create --name=syncthing --network=host \
-e PUID=1005 -e PGID=100 -e TZ=Europe/Rome \
-v /srv/dev-disk-by-label-DATA/:/DATA \
--restart unless-stopped syncthing/syncthing:latest
-> docker start syncthing
I use UID and GID of the 'docker' account (an account specifically created to run the syncthing service that have r/w/x permission on all the shared folder to be syncronize in order to use the same service/container to sync the shares of the different users which have the same permission on the respective folders).
The permission are like this docker user rwx on Folder1 and Folder2 and user1 rwx on Folder1 & no access on Folder2 | user2 no access on Folder1 & rwx on Folder2
The problem is that every file created by the syncthing service in the shared folder of the specific user (e.g. 'file' on Folder1) it's owned by docker account and it's not anymore editable by the user1 (unless going every time in the omv web gui and restore the permission on every subfolder of Folder1 again).
To fix this issue i edit the PUID variable setting it at 0 (root account) and everything work fine but the syncthing service tell me that running the container as root shouldn't be done.
So what I have to do? I have to run a specific syncthing container for every user to avoid permission problems or can I leave the container running as root without issues?
I hope i have explained the problem correctly.