diff --git a/create-user.md b/create-user.md index 1e73ed1..0f0fc48 100644 --- a/create-user.md +++ b/create-user.md @@ -16,6 +16,10 @@ If you need the new user to have administrative privileges, add the user to the `sudo usermod -aG sudo newusername` This command adds the user to the sudo group, which grants administrative permissions. +- Give user permissions for deployments: + `sudo sudo chown -R agala: /var/www/static /var/www/apps` + This command gives the user access to the deployment folders so scp file upload is posible + ## 3. Configure SSH Access - Switch to the New User: @@ -67,3 +71,9 @@ gpasswd -a www-data username ```bash sudo systemctl restart nginx ``` + +## 6. Add user to Docker group (to execute docker commands) + +```bash +sudo usermod -aG docker username +```