From 2cdca9f1360c6c6e7e920a8f47b883061d8af190 Mon Sep 17 00:00:00 2001 From: Aaron Marshall Date: Sun, 3 Jan 2021 11:50:29 -0600 Subject: [PATCH] set password and permissions (#338) --- _articles/hosting/install-on-premise.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/_articles/hosting/install-on-premise.md b/_articles/hosting/install-on-premise.md index 8583f94c..74e61cb8 100644 --- a/_articles/hosting/install-on-premise.md +++ b/_articles/hosting/install-on-premise.md @@ -85,27 +85,32 @@ Bitwarden recommends configuring your Linux server with a dedicated `bitwarden` ``` sudo adduser bitwarden ``` -2. Create a docker group: +2. Set password for bitwarden user (strong password): + + ``` + sudo passwd bitwarden + ``` +3. Create a docker group (if it doesn’t already exist): ``` sudo groupadd docker ``` -3. Add the bitwarden user to the docker group: +4. Add the bitwarden user to the docker group: ``` sudo usermod -aG docker bitwarden ``` -4. Create a bitwarden directory: +5. Create a bitwarden directory: ``` sudo mkdir /opt/bitwarden ``` -5. Grant full permissions for the `/opt/bitwarden` directory: +6. Set permissions for the `/opt/bitwarden` directory: ``` sudo chmod -R 700 /opt/bitwarden ``` -6. Grant the bitwarden user ownership of the `/opt/bitwarden` directory: +7. Set the bitwarden user ownership of the `/opt/bitwarden` directory: ``` sudo chown -R bitwarden:bitwarden /opt/bitwarden @@ -122,7 +127,7 @@ Bitwarden provides a shell script for easy installation on Linux and macOS (Bash {% icon fa-linux %} {% icon fa-apple %} Bash curl -Lso bitwarden.sh https://go.btwrdn.co/bw-sh \ - && chmod +x bitwarden.sh + && chmod 700 bitwarden.sh {% icon fa-windows %} PowerShell