File Permissions

Matt Mackall mpm at selenic.com
Mon Feb 11 15:58:22 CST 2008


On Mon, 2008-02-11 at 16:46 -0500, Luke Hoersten wrote:
> Permissions in a shared repo are being set too restrictive for access
> (0640 instead of 0660).
> 
> I'm working on a project with a team of about 7 people. We are using
> mercurial and in my home directory on a server which I do not maintain
> (it's maintained through my university), the push via ssh to the
> shared repo. They all have their own accounts on the server and we are
> all in the same group.
> 
> When they update files or push new files, the files are added with
> permissions like 0640 which doesn't allow anyone else in the group to
> modify that file then.
> 
> I've been pointed to a chmask extension which I will attempt to use
> but I'm wondering what other people do in this situation? How do I
> ensure the group bit will always be greater than or equal to 6?

Patches to inherit permissions from ".hg" are now in the crew repo which
will get merged into mainline shortly and show up in the 1.0 release
very soon.

In the meantime, you'll have to beat people into setting their umask
properly.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list