On 5/6/10 2:13 PM, Konstantin Khomoutov wrote:
Thanks, I reinstalled git using a more proper method and that corrected
the access permissions issue.
On May 6, 9:43 pm, jess<draco...@gmail.com> wrote:
I had set up a private Git Repo server for my companies projects.
For testing I did everything as root. Now that I am ready to allow
others to access the Git Repositories on there I have copied the bin
files from /root/bin to /usr/bin and created a new repository for the
main line of code that I am working on /var/git/project. I pointed my
local repo to that as the new origin.
When I do a push to the repository I get the following after the
Failed to run command 'index-pack': Permission denied
error: pack-objects died with strange error
error: failed to push some refs to 'gitu...@git.contoso.local:/
When I shifted the bin files from /root/bin I did not see a file
called git-index-pack. Other git commands seem to be working as normal
both as root and as gituser.
At first, why don't you just install a Git package provided by your OS
vendor (or made by a third-party)? Even if you're forced to use some
crappy OS for which there's no well-packaged Git, why not just rely on
`make install` to properly install Git built from the sources (assumed
you built it from the sources)? Also, if you are root on that machine
you will supposedly be able to install and use the "checkinstall"
binary which allows to create "ad-hoc" packages based on what actions
`make install` invocation took -- this greatly simplifies removing of
installed software later, even if it still stinks on a big picture.
Back to your specific problem -- make sure Git's binary files have
owner/group set to root/root and permissions set to 755, that is, rwxr-
xr-x. But anyway I think you'd better rethink your approach to get Git
You received this message because you are subscribed to the Google Groups "Git for
human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at