correct file permissions for trac and git user to access gitolite server repos
Posted
by
klemens
on Server Fault
See other posts from Server Fault
or by klemens
Published on 2010-12-20T13:50:23Z
Indexed on
2011/01/14
14:55 UTC
Read the original article
Hit count: 294
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
© Server Fault or respective owner