Tomcat – Run/Execute permissions of script in Tomcat WAR file

deploymentpermissionstomcat

I have a script inside the WEB-INF folder that the Java runs. When I deploy the WAR, there are no execute permissions (644 instead of 755).
How do I set the permissions of files inside the WAR?

Best Answer

In the webapps directory (or whatever directory you have the app deployed), just run a

chmod -R 2755 webapps

and you should be good.