Apache user owns git project root, with git-http-backend setup, but still having permissions problems
Posted
by
Luke
on Server Fault
See other posts from Server Fault
or by Luke
Published on 2012-09-11T08:27:13Z
Indexed on
2012/09/11
9:40 UTC
Read the original article
Hit count: 228
I've setup git-http-backend on my vps server (CentOS), under one of its users. The apache user owns the git project root directory - /home/theuser/git/, as below:
drwxrwxr-x 3 apache apache
The apache user also owns everything inside that directory. But I'm still getting the following error in git when trying to push:
error: unpack failed: unpack-objects abnormal exit
The apache error log shows the following error:
error: insufficient permission for adding an object to repository database ./objects
I've tried every combination of user permissions and enabled read/write access, but not getting anywhere. Should the git user own this folder? Can someone explain exactly what user should own this folder, or what steps I might take to fix this problem?
© Server Fault or respective owner