{"thread":{"id":"29614","subject":"Setting up a Git server (+ gitweb) with .htaccess files HOWTO","startedAt":"2012-02-13T16:34:43Z","lastAt":"2012-02-14T08:59:49Z","messageCount":3,"participants":["Matthieu Moy","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"184573","messageId":"vpqbop266ak.fsf@bauges.imag.fr","threadId":"29614","inReplyTo":null,"subject":"Setting up a Git server (+ gitweb) with .htaccess files HOWTO","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2012-02-13T16:34:43Z","receivedAt":"2012-02-13T16:34:43Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Hi,\n\nI've set up a Git server on a machine on which I have a webspace,\npermission to run CGI scripts, but no shell or root access. Good news:\nit worked :-).\n\nI've documented the process here in case anyone's interested:\n\n  http://www-verimag.imag.fr/~moy/?Host-a-Git-repository-over-HTTP-S\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"184586","messageId":"7v1upyft1b.fsf@alter.siamese.dyndns.org","threadId":"29614","inReplyTo":"vpqbop266ak.fsf@bauges.imag.fr","subject":"Re: Setting up a Git server (+ gitweb) with .htaccess files HOWTO","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2012-02-13T19:10:56Z","receivedAt":"2012-02-13T19:10:56Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:\n\n> I've set up a Git server on a machine on which I have a webspace,\n> permission to run CGI scripts, but no shell or root access. Good news:\n> it worked :-).\n>\n> I've documented the process here in case anyone's interested:\n>\n>   http://www-verimag.imag.fr/~moy/?Host-a-Git-repository-over-HTTP-S\n\nAfter seeing the section that runs \"git init\" in a throw-away CGI script,\nI started wondering what the point of this site in forbidding a shell\naccess in the first place.\n\nAfter all, if you changed that example with a script that feeds its input\nto a shell, you would have enough \"shell access\" to do anything you need.\n\nSo...\n\nWell, my reaction at this point was \"why bother?\", but then I realized\nthat that reaction is meant for the administrator of that hosting site,\nnot a user of that site, i.e. you.\n\nThanks for an amusing read, anyway.\n"},{"id":"184645","messageId":"vpq7gzpx01m.fsf@bauges.imag.fr","threadId":"29614","inReplyTo":"7v1upyft1b.fsf@alter.siamese.dyndns.org","subject":"Re: Setting up a Git server (+ gitweb) with .htaccess files HOWTO","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2012-02-14T08:59:49Z","receivedAt":"2012-02-14T08:59:49Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Junio C Hamano <gitster@pobox.com> writes:\n\n> After seeing the section that runs \"git init\" in a throw-away CGI script,\n> I started wondering what the point of this site in forbidding a shell\n> access in the first place.\n\nThe sysadmin trusts users enough to allow running arbitrary CGI there.\nNot giving shell access greatly limits the accidental mis-uses of the\nserver, or silly attacks by incompetent users (i.e. \"students\" ;-) ). A\nfew years ago, people had shell access on most servers, and they were\nusing it to run seti@home & other heavy stuff there.\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"}]}