You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by NoKideen <no...@softhome.net> on 2005/09/27 18:13:44 UTC

Running Tomcat as Non-Root under Linux listen for port 80

is there anybody know how to do this ?
Running Tomcat as Non-Root under Linux listen for port 80

I'd try as "tomcat" , but there is error even if 
I do
# chown -R tomcat:root /usr/tomcat/*


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Running Tomcat as Non-Root under Linux listen for port 80

Posted by Paul Singleton <pa...@jbgb.com>.
NoKideen wrote:
> is there anybody know how to do this ?
> Running Tomcat as Non-Root under Linux listen for port 80

Ask your Linux admin to disable the "privileged port"
nonsense, which only has value on a multiaccess server,
and which alwasy undermines security by unnecessarily
encouraging running server processes as root when they
would be safer (e.g. if/when exploits are found) run as
non-privileged users

Example iptables rules which achieve port redirection:

/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d 222.123.197.100 
--dport 80 -j DNAT --to 222.123.197.100:8080
/sbin/iptables -A FORWARD -p tcp -i eth0 -d 222.123.197.100 --dport 
8080 -j ACCEPT

Paul Singleton


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.8/113 - Release Date: 27/Sep/2005


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Running Tomcat as Non-Root under Linux listen for port 80

Posted by David Smith <dn...@cornell.edu>.
a.k.a. Commons-Daemon (http://jakarta.apache.org/commons/daemon/)

Works beautifully.

--David

Andrés Glez. wrote:

> Use jsvc.
>
> ----- Original Message ----- From: "NoKideen" <no...@softhome.net>
> To: <to...@jakarta.apache.org>
> Sent: Tuesday, September 27, 2005 6:13 PM
> Subject: Running Tomcat as Non-Root under Linux listen for port 80
>
>
>> is there anybody know how to do this ?
>> Running Tomcat as Non-Root under Linux listen for port 80
>>
>> I'd try as "tomcat" , but there is error even if I do
>> # chown -R tomcat:root /usr/tomcat/*
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Running Tomcat as Non-Root under Linux listen for port 80

Posted by "Andrés Glez." <an...@publicinet.net>.
Use jsvc.

----- Original Message ----- 
From: "NoKideen" <no...@softhome.net>
To: <to...@jakarta.apache.org>
Sent: Tuesday, September 27, 2005 6:13 PM
Subject: Running Tomcat as Non-Root under Linux listen for port 80


> is there anybody know how to do this ?
> Running Tomcat as Non-Root under Linux listen for port 80
> 
> I'd try as "tomcat" , but there is error even if 
> I do
> # chown -R tomcat:root /usr/tomcat/*
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Running Tomcat as Non-Root under Linux listen for port 80

Posted by Shankar Unni <sh...@netscape.net>.
NoKideen wrote:

> is there anybody know how to do this ?
> Running Tomcat as Non-Root under Linux listen for port 80

Google is your friend:

   http://www.google.com/search?q=linux+port+80+non-root


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Running Tomcat as Non-Root under Linux listen for port 80

Posted by Pete Stevens <pe...@ex-parrot.com>.
On Tue, 27 Sep 2005, Joost de Heer wrote:

> NoKideen said:
> > is there anybody know how to do this ?
> > Running Tomcat as Non-Root under Linux listen for port 80
>
> 80 is a privileged port (< 1024) and you need root-rights to bind to a
> privileged port.
>
> If the problem is that you don't have access to root, ask the admin to
> implement sudo.

Here's a guide on how to set it up.

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

Pete

--
Pete Stevens
pete@ex-parrot.com
http://www.ex-parrot.com/~pete/

They may not have invented corruption in NYC, but they have tried to perfect it.
                                                        -- seen on the internet

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Running Tomcat as Non-Root under Linux listen for port 80

Posted by Joost de Heer <sa...@xs4all.nl>.
NoKideen said:
> is there anybody know how to do this ?
> Running Tomcat as Non-Root under Linux listen for port 80

80 is a privileged port (< 1024) and you need root-rights to bind to a
privileged port.

If the problem is that you don't have access to root, ask the admin to
implement sudo.

Joost


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org