git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Setting up a Git server (+ gitweb) with .htaccess files HOWTO
@ 2012-02-13 16:34 Matthieu Moy
  2012-02-13 19:10 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Matthieu Moy @ 2012-02-13 16:34 UTC (permalink / raw)
  To: git

Hi,

I've set up a Git server on a machine on which I have a webspace,
permission to run CGI scripts, but no shell or root access. Good news:
it worked :-).

I've documented the process here in case anyone's interested:

  http://www-verimag.imag.fr/~moy/?Host-a-Git-repository-over-HTTP-S

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Setting up a Git server (+ gitweb) with .htaccess files HOWTO
  2012-02-13 16:34 Setting up a Git server (+ gitweb) with .htaccess files HOWTO Matthieu Moy
@ 2012-02-13 19:10 ` Junio C Hamano
  2012-02-14  8:59   ` Matthieu Moy
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2012-02-13 19:10 UTC (permalink / raw)
  To: Matthieu Moy; +Cc: git

Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:

> I've set up a Git server on a machine on which I have a webspace,
> permission to run CGI scripts, but no shell or root access. Good news:
> it worked :-).
>
> I've documented the process here in case anyone's interested:
>
>   http://www-verimag.imag.fr/~moy/?Host-a-Git-repository-over-HTTP-S

After seeing the section that runs "git init" in a throw-away CGI script,
I started wondering what the point of this site in forbidding a shell
access in the first place.

After all, if you changed that example with a script that feeds its input
to a shell, you would have enough "shell access" to do anything you need.

So...

Well, my reaction at this point was "why bother?", but then I realized
that that reaction is meant for the administrator of that hosting site,
not a user of that site, i.e. you.

Thanks for an amusing read, anyway.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Setting up a Git server (+ gitweb) with .htaccess files HOWTO
  2012-02-13 19:10 ` Junio C Hamano
@ 2012-02-14  8:59   ` Matthieu Moy
  0 siblings, 0 replies; 3+ messages in thread
From: Matthieu Moy @ 2012-02-14  8:59 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Junio C Hamano <gitster@pobox.com> writes:

> After seeing the section that runs "git init" in a throw-away CGI script,
> I started wondering what the point of this site in forbidding a shell
> access in the first place.

The sysadmin trusts users enough to allow running arbitrary CGI there.
Not giving shell access greatly limits the accidental mis-uses of the
server, or silly attacks by incompetent users (i.e. "students" ;-) ). A
few years ago, people had shell access on most servers, and they were
using it to run seti@home & other heavy stuff there.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-14  9:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-13 16:34 Setting up a Git server (+ gitweb) with .htaccess files HOWTO Matthieu Moy
2012-02-13 19:10 ` Junio C Hamano
2012-02-14  8:59   ` Matthieu Moy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).