OT [was: Re: Starting a different process for each java operation]

2004-02-06 Thread Werner van Mook
Hi,

Another question - Can tomcat be run as another user other then root
like
httpd is?
Yes, tomcat can be run as any user you want.

Can I continue on this which is OT?

Which standard users can start tomcat on port 80?
except for root?
Regards
Werner
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: OT [was: Re: Starting a different process for each java operation]

2004-02-06 Thread Shapira, Yoav

Howdy,

Which standard users can start tomcat on port 80?
except for root?

Any user you want, by using the commons-daemon implementation that comes
with tomcat 5 (and can work with tomcat 4 as well).

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OT [was: Re: Starting a different process for each java operation]

2004-02-06 Thread Philipp Taprogge
Hi!

Werner van Mook wrote:
Can I continue on this which is OT?

Which standard users can start tomcat on port 80?
except for root?
This very much depends on the platform tomcat runs on.
On Linux and most Un*x-like operationg systems, no user except root 
(i.e. anyone with effective uid 0) may open ports below 1024. Hence, on 
these platforms, no other user can start tomcat on port 80, at least not 
without outside help. What native unix-programs (like apache) do is they 
meddle with the uid they are running under by the means of kernel 
function calls, dropping their root-privileges after they open port 80 
and do other privileged stuff.

Since I had no need for this myself, I do not know if there is any 
solution around that allows java programms to effectively do the same.

	Phil

--
And on the seventh day, He exited from append mode.
(Book of create(2), line 255)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: OT [was: Re: Starting a different process for each java operation]

2004-02-06 Thread Shapira, Yoav

Howdy,

This very much depends on the platform tomcat runs on.
On Linux and most Un*x-like operationg systems, no user except root
(i.e. anyone with effective uid 0) may open ports below 1024. Hence,
on
these platforms, no other user can start tomcat on port 80, at least
not
without outside help. What native unix-programs (like apache) do is
they
meddle with the uid they are running under by the means of kernel
function calls, dropping their root-privileges after they open port 80
and do other privileged stuff.

Since I had no need for this myself, I do not know if there is any
solution around that allows java programms to effectively do the same.

Does anybody know if there is a solution that allows this?

Yes, jakarta commons-daemon which comes bundled with tomcat 5 and also
works with tomcat 4.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]