aboutsummaryrefslogtreecommitdiffstats
path: root/posts
diff options
context:
space:
mode:
authorFran├žois Kooman <fkooman@tuxed.net>2019-08-08 14:18:22 +0200
committerFran├žois Kooman <fkooman@tuxed.net>2019-08-08 14:18:22 +0200
commitf4ff26cf5a6d9a4e1fdc03b3cbb6741fed6220bf (patch)
tree0fc52cc5fe10e6d9e4537efb0ef16b9b5f62b535 /posts
parentcbcec212743394f170ffc8df0b0f5267c518f56d (diff)
downloadwww.tuxed.net-f4ff26cf5a6d9a4e1fdc03b3cbb6741fed6220bf.zip
www.tuxed.net-f4ff26cf5a6d9a4e1fdc03b3cbb6741fed6220bf.tar.gz
www.tuxed.net-f4ff26cf5a6d9a4e1fdc03b3cbb6741fed6220bf.tar.xz
make sure permissions in /var/lib/git are correct
Diffstat (limited to 'posts')
-rw-r--r--posts/git_server_centos.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/posts/git_server_centos.md b/posts/git_server_centos.md
index 6b9059c..26a2027 100644
--- a/posts/git_server_centos.md
+++ b/posts/git_server_centos.md
@@ -1,7 +1,7 @@
---
title: Running a Git server on CentOS
published: 2018-05-24
-modified: 2019-07-22
+modified: 2019-08-08
---
This should really be easier. I guess that is why so many software exists to
@@ -87,6 +87,11 @@ be able to read the `/var/lib/git/.ssh/authorized_keys` file:
Modifying the policy this way will make sure it also "survives" a relabling of
the filesystem.
+Make sure the file permissions of `/var/lib/git` are correct for cgit to access
+them:
+
+ $ sudo chmod 0711 /var/lib/git
+
Change the shell for the `git` user now:
$ sudo chsh -s /bin/git-shell git