title: Mkdir() permission denied C/linux programming
body: <p>when I execute this code, I get the error <code>Couldn't create backup sub-directory: Permission denied</code> but I can't understand why since I give full permisions and I'm using a admin account on ubuntu.</p>
  
  <pre><code>umask(0777);
  int folder_date_status = mkdir(filepath_W, 0777);
  
  if(folder_date_status == -1){
      perror("Couldn't create backup sub-directory");
          return -1;
      }
  </code></pre>