title: Unix suid bit problem
body: <p>I have written a program in c, that do some calculations then creates a folder. That folder's owner is the root user. With an other user I am trying to run this c application. I've got this error:</p>
  
  <pre><code>mkdir: lol: Permission denied
  </code></pre>
  
  <p>Ok, I know this error is ok, because I don't have rights for it, but I have read on the internet, that if I set the suid bit on the file, then this file will run with the owner's rights.
  I've used this command:</p>
  
  <pre><code>chmod +s filename
  </code></pre>
  
  <p>But it isn't working... :( Any ideas?</p>
  
  <p>EDIT:<br>
  So, first of all, my Unix distribution is a Mac OS X 10.5.8. And my filename is a.out, since I have compiled it from ic.c with the command: <code>gcc ic.c</code>
  And I am running the chmod command with the root user.</p>