Information Technology Reference
In-Depth Information
The gitolite package is installed in the system by the vagrant user with the $
sudo apt-get install command. Once the package is installed we can config-
ure it for any arbitrary account. The command to configure gitolite for an account is $
gl-setup . The only necessary parameter of this command is the filename of the pub-
lic key for the administrator. We want to use vagrant as the administrator, thus we
first have to generate the RSA key for vagrant:
# Guest OS (Ubuntu 12.04)
# as vagrant user
$ ssh-keygen -t rsa -C vagrant@localhost -N "" -f .ssh/
id_rsa
The key has to be copied to git account. We use the scp command for this:
# Guest OS (Ubuntu 12.04)
# as vagrant user
$ scp /.ssh/id_rsa.pub git@127.0.0.1:admin.pub
You should notice that vagrant's public key /.ssh/id_rsa.pub will be copied
to the git@localhost account and stored in the admin.pub file. The file is re-
named from id_rsa.pub to admin.pub . This is very important. Gitolite uses file-
names as usernames. If you name the public key file as sarah.pub , then gitolite will
treat this key as the user named sarah .
When the file admin.pub is copied to the git@localhost account you can
configure gitolite to run at the git@localhost account. Open the shell connection
to the git account with:
$ sudo su - git
and then run the following command:
$ gl-setup admin.pub
It will configure gitolite for the git@localhost account.
Managing users and privileges
Search WWH ::




Custom Search