官术网_书友最值得收藏!

Logging in for the first time

When you have installed your server, you need to log in. GitLab comes with a built-in administrator account.

How to do it…

In this recipe, we will log in and create our own administrator account as follows:

  1. Go to your domain where GitLab is installed (that is, gitlab.example.com).
  2. Log in using the username root and password 5iveL!fe.
  3. You need to choose a new password; pick whatever you like.
  4. Log in with the new information.
  5. Go to the Admin area section, as shown in the following screenshot:
  6. Navigate to Users | New User.
  7. Fill in the information to create your own user. Don't forget to check the Admin checkbox.
  8. Now, click on Create user.

    An e-mail will be sent to the given e-mail address. This e-mail will contain the new password for this account.

  9. Log out from GitLab and log in with your new account.
  10. You need to choose a new password and log in again.
  11. Go to the Admin area section and click on Users.
  12. Click on Block for the administrator account.

How it works…

As GitLab ships with a default administrator account, this makes it a bit unsecure by default. Therefore, when you don't change anything about your setup, everyone will be able to log in.

To ensure that we have a secure GitLab installation, we created a new administrator account, and gave it an administrator access. We also want to be sure that the default shipped account is not useable anymore, so that's why we logged in with our own account and disabled the account given by GitLab.

We had to log out first, as GitLab does not allow us to disable the account that is currently logged in.

主站蜘蛛池模板: 丰顺县| 广南县| 湖北省| 剑川县| 化德县| 乌恰县| 西城区| 临桂县| 阿荣旗| 宜宾市| 赞皇县| 庆云县| 津市市| 玛沁县| 阿荣旗| 铁岭市| 建宁县| 宁明县| 文山县| 望奎县| 江源县| 顺昌县| 建昌县| 宝坻区| 勐海县| 罗平县| 石棉县| 天祝| 改则县| 贵定县| 海门市| 海南省| 镇沅| 公安县| 乾安县| 海城市| 阿荣旗| 凯里市| 武穴市| 贵德县| 郎溪县|