You can do it with jscv which binds port 80 as root and then drops the
priviledges for running tomcat.

Our guide for virtual linux servers is here, it's a ready to roll config if
you have tomcat in /usr/local/tomcat running on whitebox / redhat linux.

http://www.mythic-beasts.com/support/topic_vds_java.html

Pete

On Mon, 4 Apr 2005, John Lianogou wrote:

> Hey Jeff,
>
> Using jsvc is not at all mutually exclusive to the solution i offered.
>   :-)
>
> AFAIK, there is no way to make tomcat bind to 80 w/o running it as the
> root user... if anyone else has experience to the contrary, however,
> I'd be most pleased to be wrong on this one.
>
>
>
> jL
>
> On Apr 4, 2005, at 7:20 PM, Jeff Duska wrote:
>
> > I'm using the jsvc in the commons-daemon with a Tomcat user. Other
> > than not having to deal with the jsvc, is there a reason to pick this
> > over jsvc?
> >
> > Thanks,
> >
> > Jeff Duska
> >
> >
> > John Lianogou wrote:
> >> I had to set up a solution using IP tables on my redhat box. First
> >> some background as to why I solved it this way:
> >> You can't run anything directly on port 80 without that process being
> >> executed as the root user... which -- for a variety of reasons I'm
> >> sure you needn't hear me go into -- is a Really Bad Idea.  ;-)
> >> What you want to do in this case is to reroute port 80 traffic to a
> >> port that tomcat can bind to when executed as a "normal" user.
> >> Here's what I did to accomplish this (hopefully you've got iptables
> >> on your box, as well... tho the path of this script may be different
> >> on yr system... so check into both matters if this doesn't work for
> >> you):
> >
> >
> >
> >> /sbin/iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT
> >> --to-port 8080
> >> You'll need root permissions to do this, tho.
> >> Hope that helps,
> >> jL
> >> On Apr 4, 2005, at 5:58 PM, NetSQL wrote:
> >>> I read that it has a stop method... but how do I get it to run at
> >>> port 80 ?
> >>>
> >>> .V
> >>>
> >>> David Smith wrote:
> >>>
> >>>> Look at jsvc in the commons-daemon project on
> >>>> jakarta.apache.org/commons
> >>>> --David
> >>>> NetSQL wrote:
> >>>>
> >>>>> apache drops to non root after bind to 80.
> >>>>> How can this be done w/ tc 5.5?
> >>>>> .V
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

--
Pete Stevens
[EMAIL PROTECTED]
http://www.ex-parrot.com/~pete/

      This plaque commemerates completion in 1984 of the new travel centre and
 restoration of the damage sustained by the station during an air-raid in 1942.
                                              -- Plaque in York Railway Station

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

Reply via email to