git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Setting up Password protected repositories?

From
Jon Loeliger <jdl@jdl.com>
Date
Sep 17, 2006, 16:22 UTC
Message-ID
<E1GOzP9-0001Fn-G8@jdl.com>
In-Reply-To
<20060917022013.GA7512@spearce.org>
So, like, the other day Shawn Pearce mumbled:
> > > 
> > > Or am I missing something deeper?
Hmmm... Maybe _I_ am!...
Show 5 quoted lines
> > I want git-daemon to serve up the repository.
> > I just want to have it served to people who can
> > supply a password or have an ssh key in place.
> 
> Don't use git-daemon.
Say that again?  It sounded like you said "Don't use git-daemon."
> Instead create UNIX accounts for the people who need access and if
> you don't want them to actually be able to login set their shell
> to be `git-sh`.  This is a special shell-like thing that only lets
> the user push or fetch to any repository they have access to.

Yeah, I think I'm getting it now. Don't use git-daemon, and instead set up UNIX accounts with git-sh as their shell. That will let them push and fetch from a repository they can access.

> The URL is a 'git+ssh' style URL and they will use SSH to connect.
Ahhh...  Straight ssh to git-sh, no git daemon or HTTP in the mix.
> Access is controlled by standard UNIX user/group read/write access
> and ACLs if your OS/filesystem support them.  You can also control
> pushing with an update hook.

OK. I seem to recall a recipe down this line somwhere... Is there a current "Best Practices" write up somewhere with these details outlined in it?

So slowly we are clued...

Thanks, jdl

Previous: Shawn PearceNext: J. Bruce Fields
Message 6 of 7 in “Setting up Password protected repositories?”
  1. Jon LoeligerSep 17, 2006
  2. Junio C HamanoSep 17, 2006
  3. Jon LoeligerSep 17, 2006
  4. Junio C HamanoSep 17, 2006
  5. Shawn PearceSep 17, 2006
  6. Jon LoeligerSep 17, 2006
  7. J. Bruce FieldsSep 17, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.