> -----Original Message-----
> From: Jan-Florian Hilgenberg 
> Sent: Thursday, July 16, 2009 12:10
> Subject: running servlets as fileowner
> 
> hi mailinglist,
> 
> is there a way to run servlets as the fileowner of the 
> servlet - like suphp on lamp environments.
> thank you for your help

The first issue you are going to run into is that Java does not support setting
the uid/gid, and you would have to modify the jvm to support uid/gid per thread.
Now apache/php works differently: apache launches a child process (php) each
process can have different uid/gid.

To do this you would have to do a RMI type thing, have a master service running
as root, accepting connections, then launching subordinate processes as the
desired uid/gid to execute the code (of course this is all happening in a
different JVM)

-Jason



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to