correct file permissions for trac and git user to access gitolite server repos
- by klemens
hi,
sounds like a stupid questions (to me), but i couldn't find any info.
on 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 whats the best permissions setup (chown, chmod) for the git repositories (/home/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.
regard,
klemens