title: Linux: Set permission only to directories
body: <p>I have to change the permissions of the <code>htdocs</code> directory in apache to a certain group and with certain read/write/execute.</p>
  
  <p>The directories need to have 775 permissions and the files need to have 664.</p>
  
  <p>If I do a recursive 664 to the <code>htdocs</code>, then all files and directories will change to 664.</p>
  
  <p>I don't want to change the directories manually.</p>
  
  <p>Is there any way to change only files or directories?</p>