Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

GitLab – Folder Permissions Fix

Posted on November 29, 2016 By David Kittell

If you’ve ran into a directory permissions problem with GitLab before this may be helpful.

The code below is mostly based on GitLab documentation – https://docs.gitlab.com/omnibus/settings/configuration.html

# 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
sudo chmod -R -v 0751 /var/opt/gitlab/gitlab-rails/shared

# Holds CI artifacts
sudo chown -R -v git:root /var/opt/gitlab/gitlab-rails/shared/artifacts
sudo chmod -R -v 0700 /var/opt/gitlab/gitlab-rails/shared/artifacts

# Holds LFS objects
sudo chown -R -v git:root /var/opt/gitlab/gitlab-rails/shared/lfs-objects
sudo chmod -R -v 0700 /var/opt/gitlab/gitlab-rails/shared/lfs-objects

# Holds user attachments
sudo chown -R -v git:root /var/opt/gitlab/gitlab-rails/uploads
sudo chmod -R -v 0700 /var/opt/gitlab/gitlab-rails/uploads

# Holds user pages
sudo chown -R -v git:gitlab-www /var/opt/gitlab/gitlab-rails/shared/pages
sudo chmod -R -v 0750 /var/opt/gitlab/gitlab-rails/shared/pages

# Holds CI build logs
sudo chown -R -v git:root /var/opt/gitlab/gitlab-ci/builds
sudo chmod -R -v 0700 /var/opt/gitlab/gitlab-ci/builds

# PostgreSQL
sudo chown -R -v gitlab-psql:git /var/opt/gitlab/postgresql/data
sudo chmod -R -v 0700  /var/opt/gitlab/postgresql/data

sudo gitlab-ctl reconfigure
sudo gitlab-rake gitlab:check
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

CentOS Code Fedora GitLab Red Hat UNIX UNIX Shell Scripts

Post navigation

Previous post
Next post

Related Posts

AES Encrypted SSO

Posted on March 12, 2015March 31, 2017

Passing information between one site and another is becoming more and more common but how can you do it without exposing confidential data? Below are some examples of how you can encrypt text and then decrypt it on the other end. C# to C# <%@ Page Language="C#" AutoEventWireup="true" CodeFile="AES_Encryption.aspx.cs" Inherits="AES_Encryption"…

Read More

PowerShell / Chocolatey Install WAMP

Posted on October 20, 2015October 20, 2015

Following the Chocolatey post we now install WAMP (Windows, Apache, MySQL, and PHP). Open PowerShell as administrator choco install -y wamp-server Configure WAMP for port 8080 copy "C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf" "C:\wamp\bin\apache\apache2.4.9\conf\httpd_backup.conf" (gc "C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf").replace(‘Listen 0.0.0.0:80′,’Listen 0.0.0.0:8080’) | sc "C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf" (gc "C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf").replace(‘Listen [::0]:80′,’Listen [::0]:8080’) | sc "C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf" (gc "C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf").replace(‘ServerName localhost:80′,’ServerName localhost:8080’) | sc "C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf"…

Read More

Mac OS X – Terminal – FFMPEG – Convert Music Files FLAC to MP3 or MP4 to MP3

Posted on October 11, 2016January 31, 2019

Prerequisite: Homebrew Essentially you can convert just about anything but this script is specific to FLAC to MP3 <br> brew install ffmpeg –with-vpx –with-vorbis –with-libvorbis –with-vpx –with-vorbis –with-theora –with-libogg –with-libvorbis –with-gpl –with-version3 –with-nonfree –with-postproc –with-libaacplus –with-libass –with-libcelt –with-libfaac –with-libfdk-aac –with-libfreetype –with-libmp3lame –with-libopencore-amrnb –with-libopencore-amrwb –with-libopenjpeg –with-openssl –with-libopus –with-libschroedinger –with-libspeex –with-libtheora –with-libvo-aacenc…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes