Gitlab管理用戶、組、權限(一)


&& 內容:

  • 添加用戶
  • 創建組
  • 用戶權限
  • 保護主要分支
  • 配置項目的可見性
  • 移除用戶


一. 添加用戶

1. 用root 管理員登陸。


2. 點擊管理區域

image


3. 點擊New User

image


4. 輸入用戶相關信息

image


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

image


排錯小技巧:在設置郵件服務器比如設置如下:

gitlab_rails['gitlab_email_from'] = 'gitlab@aishangwei.net'
gitlab_rails['gitlab_email_reply_to'] = 'gitlab@aishangwei.net'
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.mxhichina.com"
gitlab_rails['smtp_port'] = 25
gitlab_rails['smtp_user_name'] = "gitlab@aishangwei.net"
gitlab_rails['smtp_password'] = "W-123456"
gitlab_rails['smtp_domain'] = "mxhichina.com"
gitlab_rails['smtp_authentication'] = "login"


設置 完成后運行以下命令測試:

gitlab-rails console

Notify.test_email('destination_email@address.com', 'Message Subject', 'Message Body').deliver_now

 

二. 創建組

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