Syncthing file permission challenge

Good Day Syncthing Gurus

Thanks for the brilliant solution you have created.

I have installed syncthing as part of my owncloud customer solutions to backup data.

The data of the users resides in the /var/www/html/owncloud/data/johan/files dir.

The path is owned by the www-data user and group.

How can I configure the syncthing service to be able to sync data to this folders.

I really want to keep my install as clean a possible with not to many components.

Can syncthing assign permissions like bindfs in its service file?

Thanks in advance for your support.

# mount-bindfs systemd service file

[Unit]
Description=Remount directories with different permission
After=mountall.service

[Service]
Type=forking
ExecStart=/bin/sh -c "/usr/bin/bindfs -o perms=0777 /path/to/share /path/to/share"

[Install]
WantedBy=multi-user.target

The same way you would give any other process access to the files, really - run it as a user or group with access. It sounds like that means www-data in your case, or in a group for the purpose (with the files/dirs group writable, then).

I don’t know what this means. Probably the answer is no. Unless you mean to do some magic to rewrite the permissions using bind mounts? If that works, go for it I guess. Syncthing doesn’t have anything built in for the purpose at least.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.