0
votes
0answers
22 views

Set git config for a group instead of user or systemwide

We have configured git config --system init.templatedir /path/ on our system to automatically create required githooks for each new repository created via git init. However, there is another group of ...
0
votes
2answers
148 views

git repositories - how do I make it accessible to gitlist and my dev team

I migrated my repositories from a Ubuntu server to Centos 6 serer. My repositories are located in /home/mydir/gitrepos I installed nginx and gitlist and had to change the ownership and group of the ...
1
vote
3answers
346 views

Using a non-root to deploy a git repo to the web root

What is the best way to set up users and permissions for a production web server that uses git to deploy to the server? Background Running Ubuntu 12.04, I have apache severing files under /var/www ...
0
votes
0answers
72 views

Speeding up permission changes on git post-update hook

A month ago, based my question Git prime/hub website deployment: documentroot changes save fine but permission denied for subdirectories, I received some great help from dawud for setting up a ...
0
votes
1answer
124 views

Git prime/hub website deployment: documentroot changes save fine but permission denied for subdirectories

Following the instructions in A web-focused Git workflow I set up a prime and hub repository on my web server and then cloned the hub to my machine at home. I started testing commits and pushes with ...
0
votes
1answer
181 views

SSH failing from script, working on command line (Git)

Have 3 servers: Local, Bare, Development. The following workflow works perfectly: 1. Make my local changes 2. git push to Bare 3. ssh into Bare 4. $ ssh ip.of.Development.server "cd ...
0
votes
1answer
114 views

Write permissions of www-data user and public key issue

I am using Ubuntu and I am having the following problem. I am using a PHP function called exec to get the latest git changes from my remote repo. E.g.: exec("git pull");. The file is placed in ...
1
vote
0answers
89 views

Limiting user access to local Gitorious repository

I have installed and configured in private server a local git repository using Gitorious. The problem I am facing is that when I set up a new Gitorious project and limit read access permissions to ...
0
votes
1answer
278 views

Trac + git + post-receive hooks -> Git user cant call trac-admin correctly

after some time I finally made the trac connect with git, but now I'm having problem setting the post-receive hook. My git user is part of www-data group, and www-data also parta of git group. But ...
-2
votes
1answer
175 views

logged in as root, make all files in /home/user chown to user when git pull

I like to stay logged into my (Ubuntu) VPS as root. Now I am running into issues when I git pull into my wordpress directory at /home/user . All new files will have user and group assigned as "root", ...
1
vote
2answers
800 views

Linux user group configuration for Git bare repository

I'm using a Ubuntu box to host my bare Git repositories for developers to work off. At the moment I'm creating a user account for each developer on the box because it doubles as a filestore and local ...
0
votes
0answers
483 views

Cloning Git repo from server to local machine - is my user level to blame?

Server: CentOS 5.7 Local machine: Macbook Pro, regular terminal client Command issued: git clone --bare ssh://myuser@xxx.xxx.xxx.xxx/home/projectname/public_html ~/gitrepos/projectname.git ...
4
votes
4answers
2k views

Running git pull from a php script

I was trying the Perfect Workflow, with Git, GitHub, and SSH, but it seems i can't run git pull. I've tried git status and it's fine. When i git pull 2>&1 i get: error: cannot open ...
2
votes
1answer
154 views

Separate git accounts on linux server

I have a lot of git repositories on my linux (ubuntu) server. I access all of them with the Apache user www-data. This worked great in the past because I was the only web developer. Now I have ...
1
vote
1answer
1k views

Permission error with git on linux with bare shared repo

I've got a bare central repo that has this option turned on: git config core.sharedRepository true For some reason, the other users on this CentOS machine that pulls/pushes from the central repo ...
1
vote
2answers
110 views

Permissions in a multiuser Linux environment

This question has been asked many times, but I haven't found a solution for this type of permission. I have a VPS with multiple websites in chroot, each one running with a unique user, without root ...
0
votes
1answer
534 views

php fopen error (failed to open stream: Permission denied)

I have a php script on a Windows Server 2008 box (IIS 7) that is run periodically to download a remote XML file and store it on the server. This script (which previously used to run successfully), is ...
1
vote
1answer
367 views

Via ssh, git-checkout into directory the user doesn't own: “Permission denied”

Using git push server I push to a remote bare git-repository via ssh. The git-repository on the server has a post-receive hook which runs git checkout -f in /var/www/vhosts/domain.com/preview (working ...
0
votes
1answer
115 views

Multiple web devs pushing code to a live site

I want to start using a version control system (git) to manage having multiple website developers working on websites. This way, we can all see who made what changes and at what time. I did some ...
0
votes
1answer
210 views

Gitosis permissions issues

I have Gitosis installed on a Centos box which I use to manage about a dozen repos(html/php/css etc) which I then manually pull through to live sites running on nginx/php as needed. The issue I have ...
3
votes
2answers
3k views

How to prevent ssh git push to set file ownership?

I have a remote bare Git repository on an Ubuntu server, where the files are owned by the user my_project and the group my_project, with permissions set accordingly. All commiters are themself in the ...
2
votes
3answers
1k views

Giving PHP the permission to make a git pull request

I would like to allow PHP to execute a Git pull command. But there are some problems with the user and permissions. How did you solve the problem? PHP runs as user www-data. Therefore I've changed ...
0
votes
2answers
1k views

Permission problem with Git (over SSH) on FreeBSD

We're having permission problem with Git on FreeBSD. The setup is fairly straight forward. We have a few different repos on the same server. For simplicity, let's say they reside in /git/repo1 and ...
0
votes
4answers
553 views

git Permissioning?

I'd like to give a designer commit access to the html/css/images etc for a project I'm working on. The problem is the git repository which stores this information is also shared with the general code ...
79
votes
7answers
86k views

How do I share a Git repository with multiple users on a machine?

I have a Git repository on a staging server which multiple developers need to be able to pull to. git-init seems to have a flag very close to what I'm looking for: --shared, except I'd like multiple ...
-1
votes
1answer
4k views

How to control access permission with git

I'm using a rental server from hostingrails.com , I operate Rails in FastCGI here, by the permissions that SuExec used, which were 755 it seems not to have been able to set permission.(For example, I ...