From f24f9f1fc77b58b679886e5a3a4eaabd52690f35 Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Wed, 5 Nov 2025 19:31:37 +0000 Subject: [PATCH] content: creating a deploy user --- zk/Create_a_deploy_user.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/zk/Create_a_deploy_user.md b/zk/Create_a_deploy_user.md index ec2d628..5f9489e 100644 --- a/zk/Create_a_deploy_user.md +++ b/zk/Create_a_deploy_user.md @@ -57,3 +57,22 @@ deployment functions on the server from any client. Next need to add deploy user's key to Forgejo eolas-api repo and test the action again + +## Rewrite later: + +This: + +``` +sudo chown -R deploy:deploy /data/sqlite/eolas +sudo chmod -R 770 /data/sqlite/eolas + +``` + +Doesn't require the user to be specified in the chmod because the preceding +chown makes him the owner. + +This invites a problem though - what if you need multiple owners each with +certain permissions. This is when you would use a group. + +In this scenario, the data will only need to be accessed by `deploy` so it is +sufficient to make him the sole owner.