#1142103 Enables syncthing for system users

Package:
syncthing
Source:
syncthing
Description:
decentralized file synchronization
Submitter:
Guido Günther
Date:
2026-11-04 08:39:02 UTC
Severity:
normal
Tags:
#1142103#5
Date:
2026-07-15 10:58:24 UTC
From:
To:
Hi,

syncthing is enabled for users on install which is convenient, however
it also does so for root and system users (like the ones running the
display manager) which is a security risk. I tried to convince upstream

https://github.com/syncthing/syncthing/pull/10792

to disable it by default but they don't agree but hopefully we can at least
do better in Debian?

Cheers and thanks for maintaining syncthing in Debian,
 -- Guido

#1142103#10
Date:
2026-11-04 08:36:18 UTC
From:
To:
Dear maintainer,

This suggests adding
ConditionUser=!@system
to the user syncthing.service unit.

Please do that in the package. I spend three hours of debugging
yesterday until I found out that the syncthing daemon that my syncthing
tray applet was happily talking to and looked like having lost its
configuration was actually the one belonging to sddm and not to my user.
After "fixing" the configuratoin it took me some time to notice that my
files were actually not getting synced (because the syncthing daemon was
happily syncing into /var/lib/sddm).

Greetings
Marc

#1142103#13
Date:
2026-11-04 08:36:18 UTC
From:
To:
Dear maintainer,

This suggests adding
ConditionUser=!@system
to the user syncthing.service unit.

Please do that in the package. I spend three hours of debugging
yesterday until I found out that the syncthing daemon that my syncthing
tray applet was happily talking to and looked like having lost its
configuration was actually the one belonging to sddm and not to my user.
After "fixing" the configuratoin it took me some time to notice that my
files were actually not getting synced (because the syncthing daemon was
happily syncing into /var/lib/sddm).

Greetings
Marc