title: Rails: Spring permission error Ubuntu 14.04
body: <p>I'm trying to set up a Ubuntu 14.04 box as a development environment for rails 4.2.</p>
  
  <p>When I try to run <code>rails c</code>, I get the following error:</p>
  
  <pre><code>fileutils.rb:252:in `mkdir': Permission denied @ dir_s_mkdir - /run/user/1000/spring (Errno::EACCES)
  </code></pre>
  
  <p>This is caused because <code>/run/user/1000</code> is owned by user <code>tyler</code> and I am trying to execute the commands as user <code>deployer</code>. I got there by logging into the system as <code>tyler</code> then <code>su - deployer</code>.</p>
  
  <p>If I log into the system as <code>deployer</code>, I can execute <code>rails c</code> without issue and it creates a separate <code>/run/user/1001</code> directory owned by deployer.</p>
  
  <ul>
  <li>Ubuntu 14.04.1 LTS</li>
  <li>Rails-4.2.0</li>
  <li>ruby-2.2  </li>
  </ul>