aboutsummaryrefslogtreecommitdiff
path: root/tw
diff options
context:
space:
mode:
authorTimo Wilken2023-12-15 22:12:33 +0100
committerTimo Wilken2023-12-15 22:12:33 +0100
commit5a835ccf3027eab6d552256dd5db326b55a9bed0 (patch)
treec3aa7b6d843a1a5d7443ddb21a0c6d6b91aa6243 /tw
parentda0431d68a31e87149aebae16f3d0da86a2c715c (diff)
Use restricted git shell for git user
Diffstat (limited to 'tw')
-rw-r--r--tw/system/lud.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/tw/system/lud.scm b/tw/system/lud.scm
index a7fe67db..b66bc4ac 100644
--- a/tw/system/lud.scm
+++ b/tw/system/lud.scm
@@ -15,7 +15,7 @@
#:use-module (tw system))
(use-package-modules acl admin bash certs databases linux man php python rsync
- shells tls tor video)
+ shells tls tor version-control video)
(use-service-modules certbot cgit databases file-sharing mcron monitoring
networking pm ssh syncthing version-control vpn web)
@@ -278,7 +278,8 @@ innodb_io_capacity = 4000
(name "git")
(comment "Git hosting service")
(group "git")
- (home-directory "/srv/git"))
+ (home-directory "/srv/git")
+ (shell (file-append git "/bin/git-shell")))
%server-base-user-accounts))
;; Groups are NOT implict from the user-accounts that mention them.