• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 27888
198
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic