title: changing workspace of jenkins in linux
body: <p>I've installed Jenkins on Linux, and I'm new to both. I configured a job with a custom workspace /root/xxxx (directory structure already in place). It gives me the following error: </p>
  
  <pre><code>Building in workspace /root/bhanu
  java.io.IOException: Failed to mkdirs: /root/bhanu
  at hudson.FilePath.mkdirs(FilePath.java:847)
  </code></pre>
  
  <p>Another question: when executing <em>copy</em> command in <em>Execute Shell</em> build step it gives me 'permission denied' error. From the console output the copy command works fine. Here is the error:</p>
  
  <pre><code>+ cp /home/user1/victor.war /root/apache-tomcat-6.0.29/webapps/
  cp: accessing '/root/apache-tomcat-6.0.29/webapps/': Permission denied
  </code></pre>
  
  <p>When I try to set permissions in shell script in Jenkins it gives me 'permission denied' error:</p>
  
  <pre><code>+ chmod a+rwx /root/apache-tomcat-6.0.29/webapps/
  chmod: cannot access '/root/apache-tomcat-6.0.29/webapps/': Permission denied
  </code></pre>