title: Rails /tmp permission denied
body: <p>I am trying to run integration test on my *nix development machine, but test can't execute, because permission denied.</p>
  
  <pre><code>ActionView:Template:Error: Permission denied @  dir_s_mkdir - home/alan/app/tmp/cache/asssets/test
  </code></pre>
  
  <p>Rails version is 4.2.0, Ruby 2.2.2p95. I'm using built in Rails server (Webrick). Processses are running under user alan, and tmp/ is owned by me (alan).</p>
  
  <p><code>rake tmp:cache:clear</code> and restarting server didn't do the trick.</p>
  
  <p>ls -alh outpuh is as follows:</p>
  
  <pre><code>drwxrwxr-x 14 alan alan 4,0K Kol  7 10:41 .
  drwxr-xr-x 22 alan alan 4,0K Kol  7 09:10 ..
  drwxrwxr-x  8 alan alan 4,0K Kol  4 14:37 app
  drwxrwxr-x  2 alan alan 4,0K Kol  4 14:37 bin
  drwxrwxr-x  2 alan alan 4,0K Kol  6 10:04 .bundle
  drwxrwxr-x  5 alan alan 4,0K Kol  7 10:41 config
  -rw-rw-r--  1 alan alan  153 Kol  4 14:37 config.ru
  -rw-rw-r--  1 alan alan   16 Kol  4 14:45 contributors.txt
  drwxrwxr-x  2 alan alan 4,0K Kol  7 11:59 db
  -rw-rw-r--  1 alan alan  652 Kol  7 10:41 Gemfile
  -rw-rw-r--  1 alan alan 5,3K Kol  7 10:41 Gemfile.lock
  drwxrwxr-x  8 alan alan 4,0K Kol  7 10:42 .git
  -rw-rw-r--  1 alan alan  512 Kol  7 10:41 .gitignore
  -rw-rw-r--  1 alan alan 1,9K Kol  7 10:41 Guardfile
  -rw-rw-r--  1 alan alan  299 Kol  7 10:41 layout_file
  drwxrwxr-x  4 alan alan 4,0K Kol  4 14:37 lib
  drwxrwxr-x  2 alan alan 4,0K Kol  7 11:28 log
  drwxrwxr-x  2 alan alan 4,0K Kol  4 14:37 public
  -rw-rw-r--  1 alan alan  249 Kol  4 14:37 Rakefile
  -rw-rw-r--  1 alan alan  219 Kol  4 14:37 README.md
  drwxrwxr-x  8 alan alan 4,0K Kol  7 10:41 test
  drwxrwxrwx  6 alan alan 4,0K Kol  6 10:04 tmp
  drwxrwxr-x  3 alan alan 4,0K Kol  4 14:37 vendor
  </code></pre>