Meaningless Drivel is fun!
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Run Web application as Specific user." Watch "Run Web application as Specific user." New topic

Run Web application as Specific user.

Kishor Samant

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: 17410

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Run Web application as Specific user.
It's not a secret anymore!