title: Changing folder permissions from command line (on mac)
body: <p>I'm trying to write a script that will let me add to an existing directory structure and copy a bunch of files into various places within this. However, using <code>mkdir ...</code> and <code>cp...</code> commands alone wont work since I do not have permission to do so. I understand that this can be changed manually in the 'Get Info' window, but this script will be run by others and its whole point is to save time and hassle.</p>
  
  <p>Is there a way of adding to this script to give me permission to copy files to BASEDIR/SUBDIRS?</p>
  
  <p>A bit more detail on what I'm doing:<br>
  I want to add to the directory BASEDIR with a bunch of SUBDIRS then copy files into these subdirectories. The problem is that I am receiving these 'permission denied' errors right after the <code>mkdir BASEDIR/SUBDIR1/SUBDIR2</code> command.</p>
  
  <p>Thanks</p>