title: How Do I Fix "Permission Denied" Error When Trying to Make Directory in Rails?
body: <p>when I type the command </p>
  
  <pre><code>mkdir rails_projects
  </code></pre>
  
  <p>to follow along with a tutorial I am using on www.railstutorial.org I get this problem:</p>
  
  <pre><code>~ DUFF$ mkdir rails_projects
  mkdir: rails_projects: Permission denied
  </code></pre>
  
  <p>Does anyone know what this is happening? I tried to quit terminal and come back, but that didn't work. I was thinking I may some how not have access to the current directory I am in, but I am not sure how to check that and I am the only user (that I am aware of on the computer). I looked around at the other threads but it seemed like they were not the same issue and most were PHP based. </p>
  
  <p>I am not sure what commands I use to find out the directory I am currently in. Also, I am new to programming so I am not sure where these things reside on my system. Any help would be appreciated. You all were very helpful with my questions yesterday. I have seen a few posts saying you never need to use sudo and I should have access to create a directory, so I am not sure what is happening. </p>
  
  <p>Again, thanks in advance.</p>