Under Linux: I run Resin as root... When the .war "explode", the new files owner/group is set to root/root. I would like the unpacked files to be owned by the foo.war's owner. Is it possible? This configuration is to be used on a server with many virtual hosts, so I don't think the: <user-name>resin</user-name> <group-name>resin</group-name> will help me... :S
If Resin is doing the unpacking the same way Tomcat does, you're pretty much stuck with Resin's attributes. Java code isn't permitted to know about such OS-dependent qualities, so only by invoking native code could you override the normally-assigned values. For safety's sake, however, I don't recommend you run Resin as root.
Being persecuted doesn't in any way prove your righteousness or your beliefs. Many people get persecuted because they are repugnant or annoying. Or just because they can be.
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
professionally read, modify and write PDF files from Java