title: Linux change group permission to match owner permissions
body: <p>Suppose I have a directory on Linux with a bunch of files and subdirectories. This is that root directory:</p>
  
  <pre><code>drwxr-xr-x  13 user1 group1    4096 May  7 15:58 apps
  </code></pre>
  
  <p>Now, I only want to alter the group portion of those permissions. I want to alter it in such a way that it exactly matches the owner portion. The result for that directory would be:</p>
  
  <pre><code>drwxrwxr-x  13 user1 group1    4096 May  7 15:58 apps
  </code></pre>
  
  <p>But, I want a script or command to do this automatically, not just for that directory but for every subdirectory and file recursively under it. Anyone know how?      </p>
  
  <p>Thanks.</p>