I have installed syncthing and have succesfully synced data from my server into a folder under /home/default-user/android-storage . That data is an Obsidian vault and the data is owned by default-user (inspected by ssh-ing into the device).
Then I installed the Obsidian Android app and it can open and display the notes in the vault. However it cannot change them, and when I create a new note it is inserted it at outside of the vault.
The note created on the phone has ownership 510041.510041 instead of default_user, so I assume Obsidian runs as a different user (which is not in /etc/passwd)
I haven’t found a user with that uid or group with that gid ( 510041 , otherwise ls -l
would not show the number). I also haven’t found a way to set/change the user as which Obsidian is running, which I assume is a security feature not allowing the app to access data of the default_user.
I would like to be able to edit the files in the synced folder so syncthing will also push the changes to the server. Should I try to syncthing
as user with uid 510041? Where does that uid get set (and does it never change)? Or is there a better way to get this to work?
( Sailfish OS 4.5.0.19 on Sony Xperia 10 III )