title: Read/Write permission for a program run with subprocess?
body: <p>I've got a Django app, which calls a program using <code>subprocess.call()</code>. This program creates a couple of files, which I then use back in my app. The problem is the program doesn't seem to have permission to create files. I also tried calls like <code>subprocess.call(['mkdir','/tmp/myapp'])</code> but the directory was not created. What do I need to do?</p>
  
  <p>This is just with my dev server at the moment, which I invoke with</p>
  
  <pre><code>sudo python manage.py runserver 0.0.0.0:8080
  </code></pre>
  
  <p>I can run the command from the terminal manually fine.</p>
  
  <p>I can also use subprocess to <code>touch</code> the files, which it does fine, but when it runs the program that accesses the files itself, that program throws an error because it cannot.</p>