title: Jenkins: Permission denied to a 777 file
body: <p>I have created a Jenkins build to compile and distribute some modules. The output of the build commands (e.g., <code>make</code> or <code>ant</code>) is redirected to a file named <code>build.log</code>.</p>
  
  <p>The funny thing is that redirecting <code>echo</code> into the very same file, using <code>tee</code>, fails:</p>
  
  <pre><code>tee: ../../build.log: Permission denied
  </code></pre>
  
  <p>The file exists and has 777 permissions (checked with <code>ls -ltrh ../..</code>). Any ideas what's wrong with this write?</p>