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

  • GitLab Cookbook
  • Jeroen van Baarsen
  • 289字
  • 2021-08-05 16:55:04

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.

主站蜘蛛池模板: 五大连池市| 伊宁市| 平乐县| 五原县| 安多县| 桂平市| 台南县| 卢氏县| 若羌县| 石首市| 临城县| 米林县| 天镇县| 淮南市| 库尔勒市| 镇安县| 盈江县| 内乡县| 疏附县| 稷山县| 秦皇岛市| 新竹县| 芮城县| 扬州市| 忻州市| 泸州市| 兖州市| 麻栗坡县| 武冈市| 拉孜县| 海丰县| 青州市| 慈利县| 陆河县| 金华市| 河池市| 延长县| 米易县| 武夷山市| 商丘市| 和顺县|