将用户添加到Gitolite [英] Adding users to Gitolite

查看:222
本文介绍了将用户添加到Gitolite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当我为新用户添加一个新的公钥文件(比如说raphaelcruzeiro

 远程:
远程:*****警告*****
remote:以下用户(parens中的pubkey文件)不会出现在配置文件中:
remote:raphaelcruzeiro(raphaelcruzeiro.pub)

当我尝试用此用户克隆存储库时,我得到了拒绝的权限:

 克隆到gitolite-admin ... 
gitolite-admin的R访问DENIED到raphaelcruzeiro
致命:远程端意外挂起

我在这里错过了什么吗?在哪里以及如何将用户添加到配置文件?



不幸的是,Gitolite的文档在这个问题上比较含糊。

解决方案

以下是将用户添加到gitolite的工作流程: 将用户公钥添加到地图 keys as < username> .pub



编辑你的gitolite配置文件 gitolite.conf ),这个文件位于地图 conf 中。例如:

    > repo someproject 

RW + = darhuuk

RW = raphaelcruzeiro

R = santaclaus

提交新密钥和修改过的配置文件。然后将其推送到您的gitolite服务器。



应该这样做!



顺便说一句,这里是gitolite段落,解释了我上面写的:
http:/ /gitolite.com/gitolite/conf.html


I'm trying to setup Gitolite but I'm running into a weird issue:

When I add a new public key file for a new user (say raphaelcruzeiro.pub), giolite sends me the following warning on push:

remote: 
remote:         ***** WARNING *****
remote:         the following users (pubkey files in parens) do not appear in the config file:
remote: raphaelcruzeiro(raphaelcruzeiro.pub)

And when I try to clone a repository with this user, I get a permission denied:

Cloning into gitolite-admin...
R access for gitolite-admin DENIED to raphaelcruzeiro
fatal: The remote end hung up unexpectedly

Am I missing something here? Where and how do I add the user to the configuration file?

Unfortunately Gitolite's documentation is rather vague on this matter.

解决方案

Here's the workflow for adding users to gitolite:

Add the users public key to the map keys as <username>.pub

Edit your gitolite config file (gitolite.conf), this file is in the map conf. When you open it, everthing will be clear.

example:

repo  someproject

  RW+ = darhuuk

  RW  = raphaelcruzeiro

  R   = santaclaus

Commit the new key and the modified config file. Then push it to your gitolite server.

That should do it!

[Edit] BTW, here is the gitolite paragraph that explains what I wrote above: http://gitolite.com/gitolite/conf.html.

这篇关于将用户添加到Gitolite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆