borgbase / vorta-docker

Run Vorta inside Docker and access over VNC
https://vorta.borgbase.com
GNU General Public License v3.0
21 stars 2 forks source link

Issue setting home folder permissions #3

Closed m3nu closed 2 years ago

m3nu commented 2 years ago

There's an issue when connecting to the Borg server using SSH key authentication, however. The issue is that the "app" user's home folder isn't being set correctly by export HOME=/config in startapp.sh. Or it might be that Vorta or the ssh client are reading the home folder in /etc/passwd instead of using the environment variable. A temporary fix is to change the user's home folder from inside the container while it's running using usermod. This works because it sets the home folder in /etc/passwd, but when the container is restarted the home folder reverts to /dev/null.

Do you have any thoughts on how to get Vorta/ssh to find the correct home folder or persist the change to the home folder across restarts?

Here's some discussion about the issue:

https://forums.unraid.net/topic/117021-support-smartphonelover-vorta-gui-for-borg-backup/?do=findComment&comment=1089085

m3nu commented 2 years ago

Good stuff! Thanks!