Version 4 (modified by 4 weeks ago) ( diff ) | ,
---|
Background
By default, only the git user can access Gitolite repositories, as they are created with strict permissions.
In our setup, however, the tracd service also needs read access to these repositories.
To enable this, we added the tracd user to the git group and configured Gitolite to allow group access by adjusting the default permissions for new repositories.
Change umask
On your Gitolite server:
- Switch to the Gitolite user directory:
cd /home/git
- Open the .gitolite.rc configuration file in your editor.
- Locate the UMASK setting and change it:
From:
$UMASK = 0077;
To:
$UMASK = 0027;
This change allows members of the git group — such as the tracd user — to read new repositories created by Gitolite.
Note: This change only affects new repositories created after updating the UMASK. Existing repositories will retain their current permissions unless manually adjusted. Even manually adjusted permissions will be reverted after guix system reconfigure, thus cloning or copying existing bare repos into /home/git/repositories will cause hard to track problems.