tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <>
Subject Re: Servlet that needs ROOT access
Date Tue, 01 Aug 2006 12:03:02 GMT
Is it possible to run tomcat as root?  Yes.
Is it advised? No.

I think you're on the right track with the separate process idea.  That 
would limit the opportunities presented to would be hackers.  Another 
idea, you might be able to do something with the sudo command and 
Runtime.exec() as long as you have very tight control over what commands 
are executed that way.


Paul McMahon wrote:

>Is it possible to run Tomcat as non ROOT (desirable as I see from FAQs/other 
>threads), but have a servlet that needs ROOT access?
>Or is the solution to have the servlet application code running as a separate 
>daemon outside tomcat, with some form of comms to tomcat servlet when tasks 
>need to be done?
>To start a new topic, e-mail:
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message