title: Changing the user running a Jenkins process
body: <p>I wonder how to change the user starting a jenkins server on my ubuntu.</p>
  
  <p>In <code>http://[server]:8080/systemInfo</code> page I can find an environment variable:
  USER    jenkins</p>
  
  <p>My motivation is to set to user 'git' to a turnaround a failure of jenkins to clone a git project hosted by the user 'git' on the same computer:</p>
  
  <pre><code>hudson.plugins.git.GitException: 
  Command "git clone --progress -o origin ssh://git@[server]:22/~/[repo].git /var/lib/jenkins/workspace/[project]" returned status code 128:
  stdout: Cloning into /var/lib/jenkins/workspace/[project]...
  stderr: Permission denied, please try again.
  Permission denied, please try again.
  Permission denied (publickey,password)
  </code></pre>
  
  <p>... after generating ssh keys for the jenkins user and verifying accurate settings in the SSH settings of Jenkins.</p>
  
  <p>Thanks for help!</p>