I am trying to fix a problem I have with my program I uploaded to AWS in elastic beanstalk tomcat. I found someone who seems to have had a similar problem, but I can't find where I execute their solution.
AWS EC2 tomcat permission denied creating/writing to file
The answer said that I should use the following commands:
chmod o+x /home chmod o+x /home/ec2-userI want to see if this will fix my problem, however I have looked everywhere and have found no information regarding where I actually put these commands.
1 Answer1
Is your problem fixed if you run those commands manually? (i.e.eb ssh into your instance and thensudo chmod o+x /home thensudo chmod o+x /home/ec2-user)
If so, you could automate running those commands using an EB extension file. The documentation ishere but it would look something like this:
.ebextensions/01-fix-permissions.config
commands: fix_home_permissions: command: "chmod o+x /home" fix_ec2user_permissions: command: "chmod o+x /home/ec2-user"11 Comments
.ebextensions/01-fix-permissions.config and then deploy your WAR it should do what you want.chmod commands manually, does your original problem go away? If so, please post your/var/log/eb-activity.log.Explore related questions
See similar questions with these tags.
