Read-only config file gets overwritten
Author: sargCreated Aug 12, 2026Updated Sep 21, 2026
Labelsbugneeds-triage
What happened?
I have a static syncthing configuration managed by guix home (https://guix.gnu.org/manual/1.5.0/en/html_node/Networking-Home-Services.html). The config file is installed as a symlink pointing to a read-only file in /gnu/store.
Syncthing ignores the config file permissions and overwrites it. Next time I reconfigure my home, guix replaces the rogue config, leaving a backed up file behind.
I have implemented a tiny fix that logs a warning instead of overwriting read-only config file. https://github.com/sarg/syncthing/commit/67f23d840fe4e0297c45640d43741899fbf69e73
Syncthing version
v2.1.2
Platform & operating system
Linux x86_64
Browser version
No response
Relevant log output
Source: syncthing/syncthing