国产成人精品18p,天天干成人网,无码专区狠狠躁天天躁,美女脱精光隐私扒开免费观看

Gitlab的用戶(hù)、組、權限的分配與管理管理(二)

發(fā)布時(shí)間:2023-05-25 09:16 來(lái)源:西部 閱讀:172 作者:西部數碼 欄目: 虛擬主機 歡迎投稿:712375056

系統運維

(一)、添加用戶(hù)
1、用root管理員登陸,點(diǎn)擊管理區域

2、點(diǎn)擊New User,并輸入相關(guān)的信息。

3、點(diǎn)擊確定后輸入相關(guān)的密碼

(二)、創(chuàng )建組
1、點(diǎn)擊管理區域,選擇組

2、依次編輯相關(guān)的賬號信息

3、編輯組,并添加相應的用戶(hù)

可以通過(guò)輸入名字選擇要分配權限的小組成員,然后分配角色,選擇權限有效時(shí)間,點(diǎn)擊Add to Project就把人員拉近到項目中。GitLab的角色有以下四種:

Guest:可以創(chuàng )建issue、發(fā)表評論,不能讀寫(xiě)版本庫
Reporter:可以克隆代碼,不能提交,可以賦予測試、產(chǎn)品經(jīng)理此權限
Developer:可以克隆代碼、開(kāi)發(fā)、提交、push,可以賦予開(kāi)發(fā)人員此權限
MainMaster:可以創(chuàng )建項目、添加tag、保護分支、添加項目成員、編輯項目,一般GitLab管理員或者CTO才有此權限

(三)、創(chuàng )建項目并分配相關(guān)的權限
1、單擊項目,并創(chuàng )建項目

2、給該項目選擇成員或組,并分配相應的角色。具體如下,進(jìn)入項目—setting—members—指定用戶(hù)或組分配權限和角色—-最后添加到項目中。

3、查看相關(guān)的權限

后續:強制禁用gitlab的雙因子認證:Two-Factor Authentication,如果不禁用的話(huà),什么都做不成。

具體解決方法如下:
1、查看gitlab安裝時(shí)的postgresql的相關(guān)信息

[root@otrs004097 ~]# cat /var/opt/gitlab/gitlab-rails/etc/database.yml 
# This file is managed by gitlab-ctl. Manual changes will be
# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
# and run `sudo gitlab-ctl reconfigure`.

production:
  adapter: postgresql
  encoding: unicode
  collation: 
  database: gitlabhq_production
  pool: 10
  
  
  host: /var/opt/gitlab/postgresql
  port: 5432
  socket: 
  sslmode: 
  sslcompression: 0
  sslrootcert: 
  sslca: 
  load_balancing: {hosts:[]}
  prepared_statements: false
  statements_limit: 1000
  fdw: 

2、連接到gitlabhq_production庫

[root@otrs004097 ~]# su - gitlab-psql
Last login: Tue Nov 26 15:21:31 CST 2019 on pts/0
-sh-4.2$ psql -h /var/opt/gitlab/postgresql -d gitlabhq_production
psql (10.9)
Type help for help.

gitlabhq_production=# \\l
gitlabhq_production=# SELECT name,username,otp_required_for_login,two_factor_grace_period, require_two_factor_authentication_from_group   FROM users;
     name      | username | otp_required_for_login | two_factor_grace_period | require_two_factor_authentication_from_group 
--------------- ---------- ------------------------ ------------------------- ----------------------------------------------
 yw            | yw       | f                      |                      48 | f
 lqb           | lqb      | f                      |                      48 | t
 ops           | yunwei   | f                      |                      48 | f
 dev           | dev1     | f                      |                      48 | f
 test          | test1    | f                      |                      48 | f
 Administrator | root     | f                      |                      48 | f
(6 rows)

gitlabhq_production=# UPDATE users set require_two_factor_authentication_from_group = \'f\' WHERE username = \'root\';
UPDATE 1

更多關(guān)于云服務(wù)器,域名注冊,虛擬主機的問(wèn)題,請訪(fǎng)問(wèn)特網(wǎng)科技官網(wǎng):wap.friendlycc.com.cn

免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng )、來(lái)自本網(wǎng)站內容采集于網(wǎng)絡(luò )互聯(lián)網(wǎng)轉載等其它媒體和分享為主,內容觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如侵犯了原作者的版權,請告知一經(jīng)查實(shí),將立刻刪除涉嫌侵權內容,聯(lián)系我們QQ:712375056,同時(shí)歡迎投稿傳遞力量。

亚洲精品欧美综合四区| 亚洲最新版av无码中文字幕一区| 亚洲爆乳少妇无码激情| 国产又黄又爽又刺激的免费网址| 亚洲精品成人AV观看| 精品久久久久久无码专区|