I am using synthing on my qnap device and am wondering how to tweak the settings to prevent messing with the user permissions in their homefolder.
Thats how the homefolders look like:
-rw-rw-rw- 1 test everyone Somefile
Syncthing is running under admin:administrator and when a file is copied into testusers homedirectory:
-rw-rw-rw- 1 test everyone Somefile
drwxr-xr-x 5 admin administ NewFolder
-rw-r–r-- 1 admin administ SomeNewFile
Of course user “test” cannot modify those new files/folders created by syncthing in his homedirectory.
I dont want to mess around globally with umask as I dont know if this has impact on other systemservices of that qnap device.
How to deal with this situation? Is there a setting to define a user/group for each synced folder pair when writing new files?
If you set the umask inside the script which starts syncthing (I don’t know how you start it) it should only be set for syncthing.
Each user will still have his/her own home dir with his/her files. But the files created by syncthing will be owned by admin:adminst, As the users homedir will stil have the “normal” permissions, no one else should be able to look into it.