SparrowG
SparrowG

Reputation: 221

Install Gitosis without creating a new user

I have an ssh account but do not have root access and hence cannot create a new user. Is it possible for me to install gitosis or gitolite on this account?

If not, is there any other git server that I can install without root access?

Edit: My issue here is in creating another user. Can I use gitosis or gitolite without creating a new user? Can I use my existing account and use both git and do normal ssh login?

(I've changed the topic accordingly)

Upvotes: 0

Views: 184

Answers (3)

brepro
brepro

Reputation: 143

With gitolite installed, the 'gitolite users' appear in the ~myusername/.ssh/authorized_users file as public keys with "command=" lines surrounded by comments marking the gitolite users, vis.

# gitolite start
command="/usr/bin/gl-auth-command gituser1",no-port-forwarding,...,no-pty ssh-rsa AAAA...TwQw==
# gitolite end

Any key you put outside those comments, won't be touched by the gitolite update process, i.e. add your normal login public key either above the #gitolite start or below the #gitolite end and the user of that key will log in as normal and pushing the gitolite-admin repo won't overwrite it.

Upvotes: 0

Adam Dymitruk
Adam Dymitruk

Reputation: 129654

Please use Gitolite instead as Gitosis is no longer actively developed. And, yes, you can do an install from the client side. You should not need root access.

Upvotes: 1

lukecampbell
lukecampbell

Reputation: 15256

You should be able to install it locally in your home directory. Create a bin directory. When you compile it use --prefix=$HOME when u run ./configure. If you are building a binary package, look in man for how to install locally. Also, Google is good resource

Upvotes: 0

Related Questions