I’ve try to add the user syncthing to the group multimedia, with little hope, but no difference.
I think I could add the user syncthing to the group root, but it does not seems right.
I’ll wait for your feedback before breaking anything.
I have found the solution. In your case it would be something like this setfacl -Rmb g:groupName:rwX,d:g:groupName:rwX,u:userName:rwX,d:u:userName:rwX /home/yunohost.multimedia/thomas
But it’s unfortunate that you gave up using Syncthing I’m enjoing it by now. Yeah I give you the point that it takes somtime to get used to it.
And another hint for you: I created an extra group on the server just for folders that mulitple users have read/write access to it.
Have you been able to enjoy syncthing with no problem since then?
I am trying to use the /home/yunohost.multimedia/share folder to create a shared file zone that is shared among the users.
I am very new to the ACL file permissions, so I looked at the man page to understand better.
So here where I ended up:
$ id syncthing
uid=993(syncthing) gid=993(syncthing) groups=993(syncthing)
$ sudo setfacl -Rmb g:syncthing:rwX,d:g:syncthing:rwX,u:syncthing:rwX,d:u:syncthing:rwX /home/yunohost.multimedia/share/
setfacl: Option -m: Invalid argument near character
$ sudo setfacl -Rb g:syncthing:rwX,d:g:syncthing:rwX,u:syncthing:rwX,d:u:syncthing:rwX /home/yunohost.multimedia/share/
setfacl: g:syncthing:rwX,d:g:syncthing:rwX,u:syncthing:rwX,d:u:syncthing:rwX: No such file or directory
I don’t see any particular change int he behavior, any help would be very welcome.
I am not sure what I have done is the proper way of doing it, but here is what I found to be functional.
The basic idea is to adapt the group members to allow the modifications by nextcloud, syncthing, and later any other program of file sharing.
Then to allow syncthing to traverse these directories without altering existing permissions, you can add execute permissions specifically for the syncthing user using ACLs.
For /home/yunohost.backup:
sudo setfacl -m u:syncthing:x /home/yunohost.backup
For /home/yunohost.multimedia:
sudo setfacl -m u:syncthing:x /home/yunohost.multimedia
For /home/yunohost.multimedia/admin:
sudo setfacl -m u:syncthing:x /home/yunohost.multimedia/admin