title: AWS Elastic Beanstalk - changing owner of webapp folder
body: <p>I've successfully created an application using AWS Elastic Beanstalk and have uploaded the app using Git.</p>
  
  <p>All that's left for me to do is create my settings.php file and everything should work.</p>
  
  <p>However when I connect via SSH as the user ec2-user using the method documented at <a href="https://stackoverflow.com/questions/4742478/ssh-to-elastic-beanstalk-instance">SSH to Elastic Beanstalk instance</a> I cannot navigate into the webapp directory. Here is output of ls -all</p>
  
  <pre><code>drwxr-xr-x  4 root     root     4096 Feb 10 16:21 .
  dr-xr-xr-x 23 root     root     4096 Feb 10 16:23 ..
  drwx------  3 ec2-user ec2-user 4096 Feb 10 16:41 ec2-user
  drwx------  2 webapp   webapp   4096 Feb 10 16:21 webapp
  </code></pre>
  
  <p>And when I try to navigate there I get:</p>
  
  <pre><code>cd: webapp: Permission denied
  </code></pre>
  
  <p>My question is, can I change the ownership of the webapp folder to that of ec2-user. If I do, will I break Elastic beanstalk? If so, I'd be interested to know how anyone else achieves what I am looking to do, which is not skip the Git deploy of a settings file so that it can be different on my local machine from that of the version on Amazon.</p>