一、添加用戶
# 1. 用root 管理員登陸。
# 2. 點擊管理區域

#3. 點擊New User

#4. 輸入用戶相關信息

#5. 用戶會收到郵件如下畫面,點擊設置密碼即可。

二、普通用戶升級為管理員用戶
1. 使用root 用戶登錄gitlab服務器。
2. 查看數據庫配置信息 cat /var/opt/gitlab/gitlab-rails/etc/database.yml
3. 登錄用戶 su - gitlab-psql
4. 連接庫 psql -h /var/opt/gitlab/postgresql -d gitlabhq_production
5. 查詢用戶 select * from users where email = ‘普通用戶郵箱地址’;
6. 更新為管理員 update users set admin=‘t’ where id = 普通用戶ID;
7.在admin 視圖中驗證

三、 創建組
# 1. 使用管理員登陸gitlab服務器。
# 2. 點擊管理區域—Group-Add group

#3. 依次填入組路徑,名稱和描述等信息

# 4. 在如下畫面選擇用戶加入到剛創建的組、權限等 。

四、 用戶權限
#1. 使用管理員打開要設置權限的項目。

#2. 點擊【Settings】--【Members】

#3. 添加完成后,如下圖所示

#4. 下表完整的列出了Guest,Reporter,Developer,Master,Owner對應的權限。
|
Guest |
Reporter |
Developer |
Master |
Owner |
Create new issues |
* |
* |
* |
* |
* |
Leave comments |
* |
* |
* |
* |
* |
Pull the project code |
|
* |
* |
* |
* |
Download a project |
|
* |
* |
* |
* |
Create code snippets |
|
* |
* |
* |
* |
Create new merge requests |
|
|
* |
* |
* |
Push changes to nonprotected branches |
|
|
* |
* |
* |
Remove nonprotected branches |
|
|
* |
* |
* |
Add tags |
|
|
* |
* |
* |
Write a wiki |
|
|
* |
* |
* |
Manage the issue tracker |
|
|
* |
* |
* |
Add new team members |
|
|
|
* |
* |
Push changes to protected branches |
|
|
|
* |
* |
Manage the branch protection |
|
|
|
* |
* |
Manage Git tags |
|
|
|
* |
* |
Edit the project |
|
|
|
* |
* |
Add deploy keys to the project |
|
|
|
* |
* |
Configure the project hooks |
|
|
|
* |
* |