This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes Run Web application as Specific user. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Run Web application as Specific user." Watch "Run Web application as Specific user." New topic
Author

Run Web application as Specific user.

Kishor Samant
Greenhorn

Joined: Apr 11, 2012
Posts: 3
On my application server machine ,I have done drive mapping using specific user.
But with web application running on Tomcat I am not able to access this drive because tomcat runs as a windows service and not with user which has the actual access to drive mapped.
So i want know how to run web application on tomcat server with specific user.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

Tomcat itself is an application and therefore it runs under a user ID of its own. Reckless people run it under an administrative/root user ID. Security-minded people create a special ID just for Tomcat.

Since Tomcat is a multi-user system it has to have security privileges that are the greatest common denominator of all the Tomcat users as used by the deployed webapps. Per-appuser environmental characteristics such as drive mappings are not possible, however because Tomcat doesn't attempt to virtualize an entire server OS.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
wood burning stoves
 
subject: Run Web application as Specific user.