Controlling permissions

Brad Schick schickb at gmail.com
Thu Aug 16 19:19:43 CDT 2007


I should note that I'm concerned about the files inside the actual
repository under .hg not the working directory (since the wd isn't used).

Also, that was supposed to say "Short *of* changing". But maybe that's
the best solution. For example, adding "umask" setting to config files.

I guess I could run a hook after changegroups, that does 'chmod -R
g-rwx,o-rwx *' on the entire repo.  Seems ugly.

-Brad


Brad Schick wrote:
> I have a repo setup at a hosting company that is accessed through https
> (push and pull). CGIWrap [1] is used to run hgweb.cgi as the user that
> owns the hosted account, and I would like only that user to have access
> to the repo files.
>
> But mercurial is creating files and directories with a umask of 022.
> Because this is coming through Apache (and then cgiwrap to switch user
> accounts), my shell umask of 077 is probably not getting loaded.
>
> Short changing mercurial code, is there a way to specify the umask hg
> should use?
>
> [1] http://cgiwrap.sourceforge.net/
>
>
> -Brad
>
>   


More information about the Mercurial mailing list