如何以管理员身份登录Gerrit [英] How to login Gerrit as Administrator

查看:197
本文介绍了如何以管理员身份登录Gerrit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Gerrit安装在Ubuntu服务器上.

I installed my gerrit on Ubuntu server.

如gerrit所说:最早登录gerrit的人是管理员.

As gerrit said:The first people who logined gerrit is Administrator.

所以我首先使用openID(谷歌帐户)登录,而我确实是管理员.

So I logined first with openID (google account),and I am the Administrator indeed.

但是,第二天当我用自己的Google帐户重新登录gerrit时,我便成为了新的注册人.ID为100001(管理员ID为100000),但两个电子邮件都是Google的电子邮件,并且相同.

But,when next day I relogin gerrit with my google account, I become a new register. The id is 100001(Administrator 's id is 100000),but both email are google's email,and are same.

发生了什么事?

推荐答案

最简单的方法是暂时禁用经过身份验证的登录名.

The easiest way is to temporarily disable authenticated logins.

在gerrit.config中编辑[auth]语句,如下所示:

Edit your [auth] statement in gerrit.config to look like this:

[auth]
type = development_become_any_account

然后强制以管理员身份登录,授予自己访问权限,然后恢复[auth]配置.

And then force login as the admin, grant yourself access and then restore the [auth] config.

请记住,在这段时间内可以访问您的服务器的任何人也都可以成为任何帐户,因此,在完成上述步骤的同时,请设置防火墙或类似的工具将访问范围缩小到您的工作站.

Keep in mind that anyone with access to your server during this time will also be able to be any account, so setup a firewall or something to narrow access down to just your workstation while you complete the above steps.

这篇关于如何以管理员身份登录Gerrit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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