~fkooman/www.tuxed.net

f4ff26cf5a6d9a4e1fdc03b3cbb6741fed6220bf — François Kooman 1 year, 10 months ago cbcec21
make sure permissions in /var/lib/git are correct
1 files changed, 6 insertions(+), 1 deletions(-)

M posts/git_server_centos.md
M posts/git_server_centos.md => posts/git_server_centos.md +6 -1
@@ 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