I'm not a C programmer, so I'm not sure exactly how to do what you want. Is this right (it compiles)? --- shell.c.orig 2006-05-15 16:01:37.000000000 -0400 +++ shell.c 2006-06-09 16:26:24.619808905 -0400 @@ -31,7 +31,7 @@ { char *prog; struct commands *cmd; - + umask(0022); /* We want to see "-c cmd args", and nothing else */ if (argc != 3 || strcmp(argv[1], "-c")) die("What do you think I am? A shell?"); I won't be able to report success or failure today. Martin's in Germany and I think he has a life. Mark Post -----Original Message----- From: Linus Torvalds [mailto:torvalds@xxxxxxxx] Sent: Friday, June 09, 2006 4:22 PM To: Post, Mark K Cc: Junio C Hamano; git@xxxxxxxxxxxxxxx Subject: RE: Git-daemon messing up permissions for gitweb On Fri, 9 Jun 2006, Post, Mark K wrote: > > Martin is using git over SSH. I have git-shell in /etc/passwd for his > account. Ahh. git-shell doesn't read .bashrc or anything like that. Does adding a "umask(0022)" to the beginning of main() in shell.c fix it for you? Linus - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html