Hello - and thank you for your help (in advance). I didn’t see anything like this, I apologize if this is a duplicate request.
We have an ignition application where “screens/files” reside in /usr/local/bin/ignition/sub/folders. I am trying to use syncthing to coordinate the replication and then from a master system… do a schedule push to github for source control. However, forget the github situation.
Rights for /usr/local/bin are normal linux rights (owned / group = root). However, ignition/sub/folders are all owned and grouped by our standard user/group. This is recursive and permissions are 755 across the board for the folders. I have processes for github copying objects in with these permissions without issues. I’ve used lsyncd with these folders without issue… however, lsyncd doesn’t fit the bill for the end goal. The SAME user/group is used across the board for these objects files for those processes as well. My guess is it has something to do with /usr/local/bin … but not sure why the permissions of ignition and beyond aren’t being honored when the other applications honor them.
With syncthing, something is keeping it from creating the files/folders on my test system. I keep getting (actual folder information removed): 2021-07-14 18:31:32 Puller (folder “stuff” (folderid), item “com/win/Sec”): syncing: creating parent dir: mkdir /usr/local/bin/ignition/sub/folders/stuff/com: read-only file system
For sure, the objects should be able to be created. I have the system.d service running as the mentioned standard user → systemd file below (sudo vi /etc/systemd/system/syncthing@.service):
[Unit] Description=Syncthing - Open Source Continuous File Synchronization for %I Documentation=man:syncthing(1) After=network.target [Service] User=%i ExecStart=/usr/local/bin/syncthing -no-browser -no-restart -logflags=0 Restart=on-failure SuccessExitStatus=3 4 RestartForceExitStatus=3 4 ProtectSystem=full PrivateTmp=true SystemCallArchitectures=native MemoryDenyWriteExecute=true NoNewPrivileges=true [Install] WantedBy=multi-user.target ~
I Started the service with: sudo systemctl start firstname.lastname@example.org sudo systemctl enable email@example.com
I Can sync using other folders without issue (ie /home/user)… but I really need these folders to sync between systems at the above mentioned folders due to the application. I need permissions to stay the same during replication as well. lsyncd worked great for all the above… but I need all changes on all systems to be replicated to and from each other. I hope I can get syncthing to work. FYI… moving folders is not an option.
thank you for your help.