Commit 97f9a71bd5813fb6018ccd245e4579c9d4d77f23

Authored by Michael Fenn
1 parent 37c03d26

Documentation for changing the git user name

Showing 2 changed files with 16 additions and 0 deletions   Show diff stats
1 7.0.0 1 7.0.0
2 - Specify numeric user / group identifiers 2 - Specify numeric user / group identifiers
3 - Support AWS S3 attachment storage 3 - Support AWS S3 attachment storage
  4 +- Support changing the name of the "git" user / group (Michael Fenn)
4 5
5 6.9.0 6 6.9.0
6 - Make SSH port in clone URLs configurable (Julien Pivotto) 7 - Make SSH port in clone URLs configurable (Julien Pivotto)
@@ -171,6 +171,21 @@ git_data_dir "/mnt/nas/git-data" @@ -171,6 +171,21 @@ git_data_dir "/mnt/nas/git-data"
171 171
172 Run `sudo gitlab-ctl reconfigure` for the change to take effect. 172 Run `sudo gitlab-ctl reconfigure` for the change to take effect.
173 173
  174 +### Changing the name of the Git user / group
  175 +
  176 +By default, omnibus-gitlab uses the user name `git` for Git gitlab-shell login,
  177 +ownership of the Git data itself, and SSH URL generation on the web interface.
  178 +Similarly, `git` group is used for group ownership of the Git data. You can
  179 +change the user and group by adding the following lines to
  180 +`/etc/gitlab/gitlab.rb`.
  181 +
  182 +```ruby
  183 +user['username'] = "gitlab"
  184 +user['group'] = "gitlab"
  185 +```
  186 +
  187 +Run `sudo gitlab-ctl reconfigure` for the change to take effect.
  188 +
174 ### Setting up LDAP sign-in 189 ### Setting up LDAP sign-in
175 190
176 If you have an LDAP directory service such as Active Directory, you can configure 191 If you have an LDAP directory service such as Active Directory, you can configure