title: User permissions per directory in static cloud storage based website
body: <p>My issue is that I want to host my website in a bucket on either Amazon S3 or Google Cloud Storage. In my website, each user has his/her own directory that they should have read/write permissions to. But I don't want each user to have read/write permissions to the entire website or any of the other user's directories. 
  I can think of 3 possible solutions:</p>
  
  <p>1.)  I have a separate bucket for each user for which they have read/write permissions. I am trying to find a way to redirect the directories in the website bucket to the user's buckets. Would it work to just redirect the index.html page in the user's directory to their personal bucket?</p>
  
  <p>2.) I have a single bucket for the entire website and I set an ACL entry for each user's directory to given them read/write permissions to only their directory. The issue is that I don't think it is possible to set ACLs for directories, only for entire buckets or individual objects.</p>
  
  <p>3.) I use separate git repos for each user's directory then manually and periodically (with a script) fetch all user's most recent changes from their git repositories and update the source in the website bucket myself.</p>
  
  <p>I really want to avoid option 3 if possible. So my question is: Is there a way to give user's read/write permissions to only their own directories within a website that is hosted on a cloud storage bucket?</p>