By default, Linux package installations create system user and group accounts,
as well as keeping the information updated.
These system accounts run various components of the package.
Most users don’t need to change this behavior.
However, if your system accounts are managed by other software, for example, LDAP, you
might need to disable account management done by the GitLab package.
By default, the Linux package installations expect the following users and groups to exist:
Linux user and group
Required
Description
Default home directory
Default shell
GitLab user/group
/var/opt/gitlab
bin/sh
gitlab-www
Web server user/group
/var/opt/gitlab/nginx
/bin/false
gitlab-prometheus
Prometheus user/group for Prometheus monitoring and various exporters
/var/opt/gitlab/prometheus
/bin/sh
gitlab-redis
Only when using the packaged Redis
Redis user/group for GitLab
/var/opt/gitlab/redis
/bin/false
gitlab-psql
Only when using the packaged PostgreSQL
PostgreSQL user/group
/var/opt/gitlab/postgresql
/bin/sh
gitlab-consul
Only when using GitLab Consul
GitLab Consul user/group
/var/opt/gitlab/consul
/bin/sh
registry
Only when using GitLab Registry
GitLab Registry user/group
/var/opt/gitlab/registry
/bin/sh
mattermost
Only when using GitLab Mattermost
GitLab Mattermost user/group
/var/opt/gitlab/mattermost
/bin/sh
To disable user and group accounts management:
Edit /etc/gitlab/gitlab.rb
: