In my server I host some git repositories via gitolite, and have a trac for every repository.
I have a user called git to push/pull from server (
git clone git@server:repo). and trac is a apache vhost with mod_wsgi. this runs with the www-data user.
So what riddles me (maybe because I have not much of a clue about file-permissions at all) is what's the best permissions setup (chown, chmod) for the git repositories (
www-data (or trac) needs to at least read permissions (i think). and git (or gitolite) needs obviously read/write permissions to push changesets.
I tried a little bit around (i.e. adding www-data and/or git to the www-data/git group), but didn't got it right. at least one of the two don't work (git or trac).
any suggestions are highly appreciated.