tags:

views:

58

answers:

1

Hey guys.

As a fresh git user, I tried to install git on a server following this guide. For... like 3 days in a row.

Here was the problems:

I followed that guide exactly. But when I came to 'Creating new repositories' section i was blocked. I simply can't understand how can you add users to a project. I mean, ok, I need a SSH key. But for all users? Or just for admin? If is for all users, how can I add another user?

The second question is still for that... 'chapter'. The example is like this:

[group myteam]
members = jdoe
writable = free_monkey

Ok, i can add a member, called jdoe. But.. What is that name? Where do i get that name? Is my local cygwin user? Is a linux user? My cygwin user is some kind of email address. If that is the user, how can I add more users? I mean how can I find out what any other users are out there ?

So after few days of trying and trying and... trying, I kinda quit because i found a great virtual machine appliance from turnkey. But the problem was... I didn't know how to add projects! I searched on their site, i founded a script that add projects (the script is giving me and error, btw, but it works) but i'm back to square one: how the hell I add more users? Because right now is a public server, with full rights. Is not a big problem right now because i run it in a virtual machine and it's only local.

Maybe you ask me why I don't use that VM? Because I kinda want to put it online and give access to several persons. So I think to move it to my VPS. But because i didn't succeed to install in a VM, I sincerely doubt that I can install in a VPS.

Please be gentle because I'm totally noob on both git AND linux config. Also, please don't suggest me to move on github.

Thanks!

+2  A: 

A user in Gitosis is identified by the name of the pubkey file, i.e. if you had a pubkey file called foo.pub, then the user is called foo -- and, naturally, all the users you have are simply the SSH pubkeys you have on your Gitosis installation.

All users must have their SSH pubkey on the server, as all of them use the git user on the server to push their changes to the repositories they are allowed access to.

rfw
yes, but all pubkey is called id_rsa.pub, right?
Ionut Staicu
and how do i add ssh key for each user?
Ionut Staicu
Uh, no, you rename `id_rsa.pub` to `<user>.pub`, and put that in your Gitosis config. I hope that clarified it up a bit.
rfw