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

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.

主站蜘蛛池模板: 江都市| 东平县| 英吉沙县| 客服| 保定市| 永济市| 乾安县| 淳安县| 青岛市| 七台河市| 东源县| 武隆县| 会昌县| 泉州市| 辽宁省| 崇明县| 陈巴尔虎旗| 咸宁市| 伊春市| 福安市| 扎鲁特旗| 迁西县| 中江县| 苏尼特右旗| 合江县| 嘉荫县| 徐闻县| 武乡县| 扶风县| 南漳县| 扶风县| 鲜城| 凤阳县| 宜阳县| 苏州市| 东阿县| 鸡泽县| 达尔| 德惠市| 平邑县| 鄢陵县|