title: Cannot open output file: Permission denied
body: <p>so I'm completely new to Ubuntu. I've set up a shared folder with a few c programs and when I go to compile in Ubuntu, such as:</p>
  
  <pre><code>gcc file.c -o fileTest
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>/usr/bin/ld: cannot open output file fileTest: Permission denied
  collect2: error: ld returned 1 exit status
  </code></pre>
  
  <p>I'm sure that my permissions for the C files are correct, all files have 'rwx' permissions.</p>
  
  <p>Do I have to change the permission of the fileTest as well?</p>
  
  <p>I'm a complete newb, so apologies.</p>