dionysius / vaultwarden-deb

clean(er) debian packaging for vaultwarden
MIT License
30 stars 2 forks source link

Permissions for /var/lib/vaultwarden/data missing #3

Closed 0xErnie closed 1 year ago

0xErnie commented 1 year ago

When starting vaultwarden the first time it throws an error, after trying to save the newly created key in /var/lib/vaultwarden/data.

It would help to change the owner of this folder to the vaultwarden user.

dionysius commented 1 year ago

Hmmm, technically its set to readwrite by systemd: https://github.com/dionysius/vaultwarden-deb/blob/main/debian/vaultwarden.service#L43

Let me check the systemd documentation

dionysius commented 1 year ago

And technically this should be the home folder of the vaultwarden user through https://github.com/dionysius/vaultwarden-deb/blob/main/debian/vaultwarden.postinst#L5