title: mkdir permission denied
body: <p>I'm trying to make this directory <code>/var/machine/hi'</code> by running this in Python:</p>
  
  <pre><code>os.mkdir("/var/machine/hi")
  </code></pre>
  
  <p>However, I'm getting a </p>
  
  <pre><code>OSError: [Errno 13] Permission denied: '/var/machine/hi'
  </code></pre>
  
  <p>I have tried the following:
      <code>chmod 777 /var/machine</code> and <code>chmod 777 /var</code></p>
  
  <p>The owners for <code>/var</code> is <code>root</code> <code>wheel</code></p>
  
  <p>The owners for <code>/var/machine</code> is <code>root</code> <code>wheel</code></p>
  
  <p>How can I fix/debug this?</p>