• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Owner/group of unpacked war-files...

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 20980
128
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
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
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!