Running Tomcat for/as different users

This is a discussion on Running Tomcat for/as different users within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, I've got a question about Tomcat/Apache integration: On my host, there are different virtual hosts, each serving ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-01-2003
Carsten Heesch
 
Posts: n/a
Default Running Tomcat for/as different users

Hello,

I've got a question about Tomcat/Apache integration:

On my host, there are different virtual hosts, each serving as a different
user (User and Group directive) so that every vhost runs cgi and php scripts
(with the help of suPHP) as a dedicated user. It works fine.

Is there a possibility to do the same with Tomcat? I did not succeed, so
far.

Some information about the software being used:
- SuSE 8.2
- JDK 1.4.1
- Tomcat 4.1.18
- Apache 1.3.x

Thanks in advance!


Carsten



  #2 (permalink)  
Old 11-01-2003
Davide Bianchi
 
Posts: n/a
Default Re: Running Tomcat for/as different users

Carsten Heesch <mail@cheesch.de> wrote:
> each serving as a different user (User and Group directive)
> Is there a possibility to do the same with Tomcat?


Since you can deploy new applications while the system is
running the first answer should be No, you can't. Besides, in the
user documentation of TomCat there is no trace of a similar
user/group directive. If you find something different, please
let us know.

Davide
  #3 (permalink)  
Old 11-01-2003
Carsten Heesch
 
Posts: n/a
Default Re: Running Tomcat for/as different users

So - as a workaround - the only possibility would be to start multiple
tomcat instances, one for each vhost as a different user?

That would lead to a great overhead and a possibly even to a bigger
performance loss.


Carsten


(PS: sorry for my bad English)


  #4 (permalink)  
Old 11-01-2003
Davide Bianchi
 
Posts: n/a
Default Re: Running Tomcat for/as different users

Carsten Heesch <mail@cheesch.de> wrote:
> So - as a workaround - the only possibility would be to start multiple
> tomcat instances, one for each vhost as a different user?


Hu... that's a possibility, but isn't a little an overkill? Like
shooting a mouse with a ICBM? And you have to run each different
instance on a different port, making things waaaaaay difficult to
handle.

Davide
  #5 (permalink)  
Old 11-01-2003
Carsten Heesch
 
Posts: n/a
Default Re: Running Tomcat for/as different users

> Hu... that's a possibility, but isn't a little an overkill?

It is. But for security reasons, I don't want to run tomcat as the typical
httpd-user (wwwrun, apache or whatever). Users should have access to the
filesystem like they do using cgi or php. But only their virtual hosts'
directories should be accessible.
Is there any other way to fulfil this requirement?


Carsten


  #6 (permalink)  
Old 11-01-2003
Davide Bianchi
 
Posts: n/a
Default Re: Running Tomcat for/as different users

Carsten Heesch <mail@cheesch.de> wrote:
> Is there any other way to fulfil this requirement?


No that I know about.
Davide
  #7 (permalink)  
Old 11-01-2003
Carsten Heesch
 
Posts: n/a
Default Re: Running Tomcat for/as different users

>> Is there any other way to fulfil this requirement?
> No that I know about.


What a pitty!

Thanks,
Carsten


 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:03 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0