git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "Shawn O. Pearce" <spearce@spearce.org>
To: Mihamina Rakotomandimby <mihamina@gulfsat.mg>
Cc: git@vger.kernel.org
Subject: Re: simplest git deamon?
Date: Mon, 12 Apr 2010 07:22:03 -0700	[thread overview]
Message-ID: <20100412142203.GB6313@spearce.org> (raw)
In-Reply-To: <20100412164740.740050cb@pbmiha.malagasy.com>

Mihamina Rakotomandimby <mihamina@gulfsat.mg> wrote:
> Manao ahoana, Hello, Bonjour,
> 
> I would like to setup a git repository, on a Debian machine.
> I would like to access it only with git:// (no http://, no ssh://,...)
> 
> How to implement read/write restriction when just wanting to use
> "git://" without dealing with SSH?
> 
> http://www.kernel.org/pub/software/scm/git/docs/everyday.html, at it's
> bottom tlak about this but it requires SSH.
> https://help.ubuntu.com/community/Git talks about gitosis, but it
> requires keys.
> 
> I have the GIT repository setup, with the "git://"-only access scheme, 
> but anyone may push into this.
> 
> I expected just a flat file the SVN way (But I dont want to use SVN):

Git isn't SVN.

The git:// daemon is *anonymous*.  It has no authentication
capability, nor will it probably ever learn how to authenticate
users.  Consequently you can't do what you want with it.

Instead of reinventing the wheel poorly, Git relies on external
servers to perform the authentication.  So if you want authenticated
access, you will need to use either SSH or HTTP.

If you use SSH, lots of people get by with Gitosis, as its fairly
simple to configure.  Another option is to use something much more
complex like Gerrit Code Review[1] that contains its own SSH server.

If you use HTTP, use the newer git-http-backend[2] that was
introduced in Git 1.6.6 (or later), running behind an Apache
HTTP server.

[1] http://code.google.com/p/gerrit/
[2] http://www.kernel.org/pub/software/scm/git/docs/git-http-backend.html
 
-- 
Shawn.

  reply	other threads:[~2010-04-12 14:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-12 13:47 simplest git deamon? Mihamina Rakotomandimby
2010-04-12 14:22 ` Shawn O. Pearce [this message]
2010-04-12 14:23 ` Tomas Carnecky
2010-04-12 14:24 ` Matthieu Moy
2010-04-12 23:22 ` Ilari Liusvaara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100412142203.GB6313@spearce.org \
    --to=spearce@spearce.org \
    --cc=git@vger.kernel.org \
    --cc=mihamina@gulfsat.mg \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).