title: Uploading third party libraries on apache and change permissions
body: <p>I am running an apache server on ubuntu. Whenever I upload a new third-party javascript library with <code>sftp</code> into the <code>www</code> folder, I noticed I need to change permissions of all <code>.js</code> and <code>.css</code> before it can be accessed by other files. I am usually finding myself doing <code>chmod o+rw</code> or <code>chmod o+x</code> on the folders and individual files. This is cumbersome as most of these libraries have recursive folders. </p>
  
  <p>What is the proper (quick) way to do this, and one which does not compromise security? </p>