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

Re: setup gitosis on Fedora 11

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
Jul 18, 2009, 01:44 UTC
Message-ID
<2e24e5b90907171844o11eb6699m929e3c0df621ef67@mail.gmail.com>
In-Reply-To
<1247867114.2384.15.camel@brizlyMobil>

On Sat, Jul 18, 2009 at 3:15 AM, brizly vaan van Ulciputz<brizly@freenet.de> wrote:

Show 16 quoted lines
> i tried to setup gitosis on a Fedora 11 system,
> since i dont seem to be the only person having trouble here,
> i am asking here now.
>
> someone pasted that:
> http://paste.org/pastebin/view/9154
> and that's just the way i did it and the way i end in :-(
>
> with the only difference i was using another 'tutorial'
> http://www.shakthimaan.com/installs/gitosis.html
>
> i tried a bit an sometimes ended in the prompt to enter password for
> gitosis@server after "git push..." No idea what to do.
>
> I asked #git and #fedora on freenode, was referred to this list.
> So can anyone gimme a hint?
line 12 in the first pastebin (and there's no need to use pastebins for a few
lines on the mailing list; it's on #git that is really needed!) says
    ERROR:gitosis.serve.main:Repository read access denied

This means you got past ssh issues, which is further along than most people who come to #git with gitosis problems :-)

This error could mean one of the following:

(1) you're using the wrong key/repo pair. Of course your key *is* in gitosis.conf but the repo you're trying to push to isn't, or doesnot list you as one of the valid users

(2) your gitosis.conf is all correct, but you forgot the "chmod" somewhere above, and the post-update hook never ran, so the real gitosis.conf (which gitosis uses -- this is ~git/.gitosis.conf) doesn't have the same data

I also don't like that howto; it appears to be doing everything on one machine, with the same userid, so people who don't grok ssh very well will still have trouble even after all this is done to translate that knowledge to a real deployment.

Bottom line: here's what should match for that error to go away:
  - the public key corresponding to the private key your client-side ssh is
    using
  - must match *exactly* one of the public keys in the server-side
    ~git/.ssh/authorized_keys

[this is probably OK in your case, but please check there is *exactly one*. I have a vague memory of seeing a case when someone adds a key twice with different usernames in error. Ssh picks up perhaps the first one, while your gitosis.conf talks about the second one...]

and
  - the name after "gitosis-init" on the pubkey line that matched above
  - must match a username in ~git/.gitosis.conf (which is a symlink to
    something but never mind)
and
  - this username must be mentioned in the members= line of some section in
    gitosis.conf which also has "writable = my-first-repo"

You can check *all* of this by looking at ~git/.gitosis.conf and ~git/.ssh/authorized_keys on the server and ~/.ssh/id_[rd]sa.pub on your client

Previous: brizly vaan van UlciputzNext: brizly vaan van Ulciputz
Message 2 of 7 in “setup gitosis on Fedora 11”
  1. brizly vaan van UlciputzJul 17, 2009
  2. Sitaram ChamartyJul 18, 2009
  3. brizly vaan van UlciputzJul 18, 2009
  4. Sitaram ChamartyJul 19, 2009
  5. brizly vaan van UlciputzJul 20, 2009
  6. Shakthi KannanJul 20, 2009
  7. brizly vaan van UlciputzJul 18, 2009

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.