Apache user owns git project root, with git-http-backend setup, but still having permissions problems
- by Luke
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?