From a3e76f7afe894526ce125b47f202df2b474092ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Benitez?= Date: Wed, 7 Aug 2024 10:07:45 -0300 Subject: [PATCH 1/3] Update create-user.md --- create-user.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/create-user.md b/create-user.md index 1e73ed1..1671c74 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: From 26da368f5a719af9c4df88903b07ca1802dae2cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Benitez?= Date: Wed, 7 Aug 2024 16:25:15 -0300 Subject: [PATCH 2/3] Update create-user.md --- create-user.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/create-user.md b/create-user.md index 1671c74..68062bc 100644 --- a/create-user.md +++ b/create-user.md @@ -71,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 agala +``` From 5a86f33ae5fd6c2b1ab3b194038308c756ef5aa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Benitez?= Date: Wed, 7 Aug 2024 16:25:31 -0300 Subject: [PATCH 3/3] Update create-user.md --- create-user.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create-user.md b/create-user.md index 68062bc..0f0fc48 100644 --- a/create-user.md +++ b/create-user.md @@ -75,5 +75,5 @@ sudo systemctl restart nginx ## 6. Add user to Docker group (to execute docker commands) ```bash -sudo usermod -aG docker agala +sudo usermod -aG docker username ```