Skip to content

Repository permission problem #1362

Open
@ts65

Description

@ts65

I use Gitblit GO on a Ubuntu server to allow https access to the repositories additionally to the previous ssh access without Gitblit. The repository is setup as shared but the files in /logs/refs/heads have incorrect file permissions. Gitblit runs as service with gitblit user (who is a member of git group).

Steps to reproduce:

  • create repository with git init --bare --shared=0660 (I've done it via ssh but git.createRepositoriesShared=0660 is set too)
  • clone with https over gitblit
  • push changes
  • /logs/refs/heads/master has 644 permission with owner gitblit and group git instead of 660
  • clone with another user in git group. f.e. git via ssh (without Gitblit)
  • push changes
  • error because /logs/refs/heads/master is not writable for group

Any ideas how to solve this (preferably without changing default umask)? Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions