How to login Gerrit as Administrator

I installed my gerrit on Ubuntu server.

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

  • Crucible compared to Gerrit?
  • Gerrit change-merged Hook
  • How to cherry pick from branch A to branch B on a system without history?
  • Why does Gerrit show a different number of changes than git does?
  • Is it possible to let Gerrit randomly pick a reviewer?
  • Integrating Git-Tower and Gerrit
  • So I logined first with openID (google account),and I am the Administrator indeed.

    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.

    What happened?

  • How to 'git status' only working tree changes in git?
  • How to make git-svn use specific version of SVN?
  • Project management software, available options
  • GIT Ignore already commited files using exclude for local changes
  • How do you track the build count of your library when there are multiple authors using version control?
  • Git - How can I list all files changed on the master branch between two times?
  • 3 Solutions collect form web for “How to login Gerrit as Administrator”

    The easiest way is to temporarily disable authenticated logins.

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

    type = development_become_any_account

    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 automatically assign first login as administrator, and treat your google account as another id.

    You can either

    1. login with openid and add google account id into administrator group as well
    2. manual change the database system_config for your google account.


    Hope it gives hints.

    I faced a similar issue and found Shawn Pearce’s reply on the mailing list to be useful:


    Git Baby is a git and github fan, let's start git clone.