Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm struggling to get gitosis deny read access to a repository. Basically I want only one user to have read and write access to it. At the moment everyone can clone the tree and this is precisely what I don't want. Cheers!

share|improve this question

If you've got this sort of question it helps to post your configuration. Gitosis doesn't grant any access to a repository other than what you've explicitly configured. A really simple gitosis.conf might look like this:

[group gitosis-admin]
members = lars
writable = gitosis-admin

[group myproject]
members = lars
writable = myproject

This allows someone identified as "lars" read/write access to the "admin" and "myproject" repositories, and grants no access to anyone else. If you've got something like this and it's not working as you expect, add the following:

loglevel = DEBUG

This will cause gitosis to log verbosely when you interact with it. Post your gitosis.conf and the output of the DEBUG logging from Gitosis and we can probably give you a better answer.

share|improve this answer
What happened is I overlooked daemon = yes option in my gitosis.conf. I've now removed it and deleted git-daemon-export-ok file and everything is working as I want it to. Cheers! – tkane Feb 14 '11 at 23:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.