• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Owner/group of unpacked war-files...

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 28748
211
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic