Hello everyone , I’m stuck and would like to ask for some help please:
I installed syncthing as a programm in my debain LXC as a system service. During installation I created a user “syncthing” instead of the root user.
But now I fear I have an issue with missing permissions - I get this error message, when trying to sync a folder:
Failed to create folder marker: mkdir /home/syncthing/Sync/syncHandyM/.stfolder: permission denied
I am a beginner and this is beyond my knowledge, but I belive there are two users one is “synchting” and one is “nouser” - how do I make sure that I get the required permissions?
It looks like whatever user is running Syncthing doesn’t have permissions to create that directory. If you can fix the permissions, great, otherwise this is addressed in the FAQ: FAQ — Syncthing documentation .
ok, thanks for your hint - you were absolutely right.
I fixed this issue and I was able to sync a folder from my andoid device to my linux syncthing instance. But it was only possible in the syncthing home directory (/home/syncthing/new folder)
when I tried to do sync another folder into a sub-folder directory it did not work (error message: “folder marker missing” ) . This is the subfolder I used: /home/syncthing/Sync/ABC/newfolder2 → can you / someone tell me why this is not possible? Thank you !
Take a look at FAQ — Syncthing documentation . The user running Syncthing on your device has the rights to write a folder marker in the Syncthing user’s home directory, but not in the other directories you want to sync.
The fix is to give the Syncthing user the appropriate write access to create the folder marker. If you pick another file to be the folder marker (also at the link above, just under “Usage”) you will probably run into problems where the Syncthing user cannot write new or changed files to those folders.