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

Re: Restricted git push ?

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
Jul 19, 2011, 10:05 UTC
Message-ID
<CAMK1S_jsv-pFy6bNPG=EK=4YsJOh3GUZ+_DAq6n36ajWuhyNaQ@mail.gmail.com>
In-Reply-To
<20110719150637.596b9791@shiva.selfip.org>
On Tue, Jul 19, 2011 at 3:06 PM, J. Bakshi <joydeep@infoservices.in> wrote:
> Hello list,
>
> I have installed git repo based on http://  protocol and both read+write access is based on a htpasswd based authentication. The git repo is "bare" so that push is possible. But I like to have push from a limited users only, not from all. For the rest, only pull should be possible. Is there any way to achieve this type of ACL ?

man git-http-backend has an example config described thus: "To enable anonymous read access but authenticated write access...". It certainly sounds like what you want.

Not sure what sort of http access you have setup but ideally you should have used that one to setup your server. If you did, changing it to work this way should be easy now.

Previous: J. BakshiNext: J. Bakshi
Message 2 of 7 in “Restricted git push ?”
  1. J. BakshiJul 19, 2011
  2. Sitaram ChamartyJul 19, 2011
  3. J. BakshiJul 19, 2011
  4. J. BakshiJul 19, 2011
  5. J. BakshiJul 19, 2011
  6. Sitaram ChamartyJul 19, 2011
  7. J. BakshiJul 19, 2011

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.