apache repository setup

Matt Mackall mpm at selenic.com
Tue Aug 9 16:35:59 CDT 2005


On Tue, Aug 09, 2005 at 04:08:02PM -0500, John Evans wrote:
> very much appreciate the help Andrew,
> so right now in summary I have to:
> 1) chmod 777 all the repository
> 2) have to push with only the original user ("je" in this case)

What you want to do is create a new group by adding a line to
/etc/group:

repo-sharers:x:12345:je,guest,foo,bar

Then change the group ownership of the repo:

$ chgrp -R repo-sharers repo

Then change the permissions so that the group can read and write:

$ chmod -R g+rw repo

Then use setgid to make all new files owned by the group:

$ find repo -type d | xargs chmod g+s

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list