I’m using DietPi for some time and it works very well. Today I installed Syncthing (via DietPi-Software)to sync some data. Installation went well, I can connect via web interface but when I’m adding folder to sync I receive:
Failed to create folder marker: mkdir /mnt/m2/.stfolder: permission denied
As I understood the problem is with folder permissions. I already found that Syncthing uses dietpi user by default and it’s ok for me. But how can I add dietpi user to be able read and write in /mnt/m2 without changing privilages of other users?
ok, I guess I know what you are trying to do. You are trying to save DietPi backup via Syncthing. Correct?
This might not be working on a default setup because Syncthing is executed as user dietpi and will not have access to folders that are accessible by user root only, like the root user home directory.
Something I’m not recommending is to execute Syncthing as root user. As well Syncthing themselves will complain about it
2021-08-25 22:03:41: Syncthing should not run as a privileged or system user. Please consider using a normal user account.