GitLab在Ubuntu上的权限管理主要包括以下方面:
git)和组运行,可通过编辑/etc/gitlab/gitlab.rb配置,或使用命令sudo usermod -aG git gitlab将用户加入git组。/var/opt/gitlab)需归属git用户和组,权限设置为755:sudo chown -R git:git /var/opt/gitlabsudo chmod -R 755 /var/opt/gitlab。.ssh目录权限设为700,密钥文件设为600:chmod 700 ~/.sshchmod 600 ~/.ssh/*。Guest(访客)、Reporter(报告者)、Developer(开发者)、Maintainer(维护者)、Owner(所有者)等角色,控制成员权限。/etc/gitlab/gitlab.rb中配置服务器信息,启用后用户可通过LDAP账户登录。sudo gitlab-ctl reconfigure和sudo gitlab-ctl restart使更改生效。参考来源: