Skip to content

Instantly share code, notes, and snippets.

@rjmsilveira
rjmsilveira / Gitlab Permissions Fix
Created August 21, 2023 21:59 — forked from leowinterde/Gitlab Permissions Fix
gitlab-ce permissions fix
# Holds repositories directory
sudo chown -R -v git:root /var/opt/gitlab/git-data
sudo chmod -R -v 0700 /var/opt/gitlab/git-data
# Holds git repositories
sudo chown -R -v git:git /var/opt/gitlab/git-data/repositories
sudo chmod -R -v 2770 /var/opt/gitlab/git-data/repositories
# Holds large object directories
sudo chown -R -v git:gitlab-www /var/opt/gitlab/gitlab-rails/shared