第十一章 Gitlab權限管理


一、添加用戶

# 1. 用root 管理員登陸。

# 2. 點擊管理區域

image

#3. 點擊New User

image

#4. 輸入用戶相關信息

image

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

image

二、普通用戶升級為管理員用戶

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 視圖中驗證

image

三、 創建組

# 1. 使用管理員登陸gitlab服務器。

# 2. 點擊管理區域—Group-Add group 

image

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

image

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

image

四、 用戶權限

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

image

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

image

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

image

#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 * *


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM