Syncthing group doesn't include user?

Using Syncthing, I don’t want the files to be synchronized in /var/lib—I prefer to use a USB stick (/media/...).

When I specify the directories to use in Syncthing’s web interface, I get “permission denied” errors, indicating Syncthing can’t create the directories.

I solve this by manually creating the required directories (like .stfolder) via SSH.

For /var/lib, I see that both the user and group are set to syncthing, so I understand why I get the error.

However, I wonder why my user isn’t made part of the syncthing group when installing syncthing. It seems unlikely this is a mistake—there must be a reason for it. What is that reason?

1 Like

When pulling files from a peer to the Freedombox, Syncthing is trying to create a file, which gives permission error.

Set the ownership of directory on /media/…/syncthind_dir to syncthing:syncthing, and it works flawlessly.

Is this a bug, or is freedombox syncthing not intended to work with /media? In latter case, don’t make it possible to use /media when configuring Syncthing?