title: How to fix "The Resource file mode is invalid" on Cloud Foundry
body: <p>I'm trying to deploy an app to Bluemix using Cloud Foundry and I'm getting the following output:</p>
  
  <pre><code>the-neutral-zone:KituraTest loganwright$ cf push
  Using manifest file /Users/loganwright/Desktop/KituraTest/manifest.yml
  
  Updating app Kitura-Starter in org [redacted] / space dev as [redacted]...
  OK
  
  Uploading Kitura-Starter...
  Uploading app files from: /Users/loganwright/Desktop/KituraTest
  Uploading 3.9M, 1388 files
  Done uploading               
  FAILED
  Error processing app files: Error uploading application.
  The resource file mode is invalid: File mode '0444' is invalid. Minimum file mode is '0600'
  </code></pre>
  
  <p>I've found the following materials, but none of them seem to have a fix, or at least there's a step I'm missing somewhere:</p>
  
  <p><a href="https://github.com/cloudfoundry/cli/issues/685" rel="noreferrer">https://github.com/cloudfoundry/cli/issues/685</a></p>
  
  <p><a href="https://github.com/cloudfoundry/cli/issues/1096" rel="noreferrer">https://github.com/cloudfoundry/cli/issues/1096</a></p>
  
  <p><a href="https://stackoverflow.com/questions/40201056/error-pushing-changes-to-cloud-foundry">Error pushing changes to cloud foundry</a></p>
  
  <p>I set all my file's permissions to 0700 using from w/in the directory:</p>
  
  <pre><code>chmod -R 700 *
  </code></pre>
  
  <p>I'm not great w/ file permission apis so corrections here appreciated as well.</p>