git insufficient permissions

I just tried to do a "git push" from my laptop to an Xcode repository on another server and get the following error:


remote: error: insufficient permission for adding an object to repository database ./objects


Looking at the repository on my server, the permissions all seem to have the normal permissions of " root:_www".


Note I'm using SSH as the protocol. I know I could just update the permissions to be something that the user I'm logging onto can access. But what is the correct way that an Xcode developer should access a git repository remotely? Has it changed? It was working for me for over a year.

MacBook Pro with Retina display, OS X Yosemite (10.10), two 27" Thunderbolt displays

Posted on Jan 24, 2015 10:03 AM

Reply
3 replies

Jan 24, 2015 12:18 PM in response to paulsorensen

It should be your normal user. That is the _www user that a web server may be running under somewhere. It really isn't possible to state the "correct" permissions of files for your web server. There are just too many variables. But one thing for certain is that those permissions should not be leaking into your development environment. Either you have serious security issues on the server side, or your development environment is all messed up. Most likely, both are true.


I host my private git repositories on my own server at Dreamhost and access them via ssh. The files are owned on the remote side by the user on my server. They are owned my me locally. I deploy them to my web server as the user that the web server runs as. I'm not using git for this. I have a custom system using my own EtreNet app via scp. I would expect most people would be using something like Jenkins instead. That's overkill for my site.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

git insufficient permissions

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.