Folder permissions: win to linux

Right, so since you know where you put syncthing.service (and you must know, because you followed the guide and therefore manually put it in an appropriate place), why are you asking me?

You are right… sorry.

[Unit]
Description=Syncthing - Open Source Continuous File Synchronization for %I
Documentation=http://docs.syncthing.net/
After=network.target

[Service]
User=%i
Environment=STNORESTART=yes
ExecStart=/usr/bin/syncthing -no-browser -logflags=0
Restart=on-failure
SuccessExitStatus=2 3 4
RestartForceExitStatus=3 4
umask=0002

[Install]
WantedBy=multi-user.target

I put umask 0002 in but it hadn’t any effect. I restarted syncthing but folders are still created with the wrong rights.

It’s ‘UMask’, but I don’t know that it makes any difference…

Its working now! Thanks! Wouldn’t it be an idea to document this in the autostart section?

Not sure - we don’t want to duplicate systemd’s documentation, but a little “btw, you can set the UMask” probably won’t hurt.

1 Like

Be the good citizen and do it, given the time people invested to walk you through it.

done

1 Like