Certain file permissions break when mounting the bind mounts to a non-user owned folder (e.g. /srv) and using peerstash commands without sudo.
peerstash setup fails to generate the restic password without sudo
peerstash restore cannot restore into the /mnt/peerstash_restore folder without sudo
peerstash restore cannot delete the /tmp/peerstash/restore folder if it was previously run with sudo
peerstash mount cannot mount into /tmp/peerstash_mnt folder without sudo
peerstash unmount does not complete without sudo
PR #52 aims to fix these issues.
Certain file permissions break when mounting the bind mounts to a non-user owned folder (e.g.
/srv) and usingpeerstashcommands withoutsudo.peerstash setupfails to generate the restic password without sudopeerstash restorecannot restore into the/mnt/peerstash_restorefolder without sudopeerstash restorecannot delete the/tmp/peerstash/restorefolder if it was previously run with sudopeerstash mountcannot mount into/tmp/peerstash_mntfolder without sudopeerstash unmountdoes not complete without sudoPR #52 aims to fix these issues.