Create home directory with 0700 permissions

This commit is contained in:
Greizgh 2019-09-09 21:45:16 +02:00
parent a29a39591f
commit 101380b195

3
debian/postinst vendored
View File

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
adduser --system --home /var/lib/bitwarden_rs bitwarden DIR_MODE=0700 adduser --system --home /var/lib/bitwarden_rs bitwarden
chmod 700 /var/lib/bitwarden_rs
chmod 600 /etc/bitwarden_rs/config.env chmod 600 /etc/bitwarden_rs/config.env
chmod 600 /etc/bitwarden_rs/Rocket.toml chmod 600 /etc/bitwarden_rs/Rocket.toml