File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Expanded/exploded war permissions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Expanded/exploded war permissions" Watch "Expanded/exploded war permissions" New topic

Expanded/exploded war permissions

Paul Dwinn

Joined: Jun 15, 2009
Posts: 1
I'm using Tomcat 6.0. Is there a configuration to control what permissions (Linux/Unix) files/directories are given to an expanded war.

For example, I currently get the following when the war gets exploded:
drwxr-xr-x 2 someuser somegroup

I would like it so that the group always gets write permissions too:
drwxrwxr-x 2 someuser somegroup

There are good reasons for this beyond being completely lazy.
Thanks for any help
Kees Jan Koster
JavaMonitor Support

Joined: Mar 31, 2009
Posts: 251
Dear Paul,

Start Tomcat with an umask of 002 instead of 022.

Java-monitor, JVM monitoring made easy <- right here on Java Ranch
I agree. Here's the link:
subject: Expanded/exploded war permissions
It's not a secret anymore!