This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes How to run a web service as root? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to run a web service as root? " Watch "How to run a web service as root? " New topic
Author

How to run a web service as root?

Koldo Urrutia
Ranch Hand

Joined: Dec 16, 2011
Posts: 85
Hey

How do I run my web service as root? Yes, I know the security implecations of this.

Thanks
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

You cannot run a web service as root. You have to run the entire WEB CONTAINER as root. J2EE servers - or at least all the ones I've ever known - run all apps as the same OS user as the container itself, which in turn runs as whatever user the JVM started as. It would, in fact, be pretty difficult indeed in most JVMs for one VM instance to run under multiple OS user IDs.

However, before you unleash yet one more security menace on the Internet, perhaps you can describe what you need to run an application as root to begin with. We might be able to find a way to reduce the exposure.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to run a web service as root?
 
Similar Threads
Handlers and Providers Interfaces
WS-I monitor?
Syncing files
ActiveVOS Server does not support the Apache Axis Web service runtime
How do i use wsdd from esclipse