title: Setting default permissions for newly created files and sub-directories under a directory in Linux?
body: <p>I have a bunch of long-running scripts and applications that are storing output results in a directory shared amongst a few users. I would like a way to make sure that every file and directory created under this shared directory automatically had <code>u=rwxg=rwxo=r</code> permissions.</p>
  
  <p>I know that I could use <code>umask 006</code> at the head off my various scripts, but I don't like that approach as many users write their own scripts and may forget to set the umask themselves.</p>
  
  <p>I really just want the filesystem to set newly created files and directories with a certain permission if it is in a certain folder. Is this at all possible? </p>
  
  <p><strong>Update</strong>: I <em>think</em> it can be done with <a href="http://www.vanemery.com/Linux/ACL/POSIX_ACL_on_Linux.html" rel="noreferrer">POSIX ACLs</a>, using the Default ACL functionality, but it's all a bit over my head at the moment. If anybody can explain how to use Default ACLs it would probably answer this question nicely.</p>