Controlling permissions

Brad Schick schickb at gmail.com
Thu Aug 16 18:37:53 CDT 2007


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