title: git pull from CGI-Script ran by 'nobody'
body: <p>I've got a git repository on a webserver (Apache), which is set up inside the home-directory of user <code>a</code>. </p>
  
  <pre><code>git clone ssh://a@git_url:7999/path/to/repository/repo.git
  </code></pre>
  
  <p>The git-repository is hosted on a stash-server. The authentication works via an ssh-key for the user a. </p>
  
  <p>Now I'm trying to build a CGI-script which shows me some excerpts from <code>git log</code> on that repository. That works pretty much, but I just can't seem to be able to <code>git pull</code> inside the CGI-script since it's not run by user <code>a</code>, but by user <code>nobody</code>. The user <code>nobody</code> has no permissions to read the contents of the git-repository cloned by <code>a</code> and doesn't have an ssh-key set up on the stash-server. </p>
  
  <p>Is there a way to run <code>git pull</code> from within the CGI-script in a way that it "masks" as user <code>a</code> so that it's able to pull?</p>