title: How can I run sonar analysis with a user with no home directory: unable to create user /dev/null/.sonar/cache
body: <p>I have sonarqube server 4.0 and sonar-ant-task-2.1.  My sonar target runs fine on my local RHEL 5 machine but as soon as I promote it to a shared RHEL 5 environment it will be run by a user whose home directory is "/dev/null" apparently.  I can't change that.  </p>
  
  <p>I get the following error: 
  Unable to create user cache/dev/null/.sonar/cache
  Caused by: java.io.IOException: Unable to create directory /dev/null/.sonar/cache</p>
  
  <p>I set the following two properties: </p>
  
  <p><code>&lt;property name="sonar.working.directory" value="dirWhereUserHasAccess"/&gt;
   &lt;property name="sonar.userHome" value="dirWhereUserHasAccess"/&gt;</code></p>
  
  <p>These properties seem to have the desired affect locally however when run on the shared environment the sonar.userHome is not used.  I get the same error.  It's trying to use /dev/null.  </p>
  
  <p>How can I get sonar to stop trying to access /dev/null for this cache?</p>
  
  <p>Bug description is below. Jira task created <a href="https://jira.codehaus.org/browse/SONARPLUGINS-3349" rel="noreferrer">https://jira.codehaus.org/browse/SONARPLUGINS-3349</a></p>