Re: port 80 !!?? Running !
--- adrianthiele [EMAIL PROTECTED] wrote: The Process must run as root, If you can see it on yours , you should be able to see it from others. If I start the whole tomcat process as another user it can start on any port over 1024. Do you use localhost to see the servlet on your machiine ? Can you use the ip address to view it ? I BELIEVE (but I'm not at home so can't be sure) that it only works with Localhost. Lauren Commons wrote: I also got Tomcat to listen on port 80 by changing the port number in Server.xml. My problem is I can only browse from the local (server) machine. If I point my browser on another machine on the same network to the server's ip address I get no response (I think that was what happened; I can't test it now to recall exactly what happens...) I'm guessing this is a unix thing, but am not sure. I'm running on Redhat 7.2 --- adrianthiele [EMAIL PROTECTED] wrote: Tevfik , I have mine running on port 80, I just grepped Server.xml and changed the port number from 8080 to 80 no the non ssl http config. It only needs to be changed in one spot. I just ran apachectl stop the startup.sh and everything is fine. Adrian Tevfik Aytekin wrote: But apache server can manage to bind to port 80 with another user. What I am asking is why tomcat can not do this. Is it becasue it is written in Java? TA. -Original Message- From: Renato Romano [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 3:30 PM To: 'Tomcat Users List' Subject: RE: port 80 !!?? That's because on Unix-like systems well-known port numbers, like www (port 80), or ftp, telnet etc, are system-reserved to the root user. No other user can open server sockets on ports less than 1024. You should run it as root, or have another user having system administrator prvileges. Renato Renato Romano Sistemi e Telematica S.p.A. Calata Grazie - Vial Al Molo Giano 16127 - GENOVA e-mail: [EMAIL PROTECTED] Tel.: 010 2712603 _ -Original Message- From: Tevfik Aytekin [mailto:[EMAIL PROTECTED]] Sent: martedì 30 aprile 2002 14.32 To: Tomcat Users List Subject: port 80 !!?? Hi, I suppose this question should have been answered, but I could not find a satisfactory answer in the archives. Isn't it possible to run tomcat as standalone on port 80 with a user other then root. Apache server manages to do this. But as far as I can see tomcat can not. I wonder why? Can someone answer? This ability of tomcat would have been great since we did not need neither apache nor mod_jk, etc. Also since apache and mod_jk are written in C it troubles many people to get them run on different platforms. So I do not understand why tomcat do not have the ability run on port 80 with a user other than root. Thanks in advance. TA. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: === message truncated === = - Mr Lauren Commons DISCLAIMER: The opinions expressed ARE in fact those of my employer. __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: port 80 !!?? Running !
Tevfik , I have mine running on port 80, I just grepped Server.xml and changed the port number from 8080 to 80 no the non ssl http config. It only needs to be changed in one spot. I just ran apachectl stop the startup.sh and everything is fine. Adrian Tevfik Aytekin wrote: But apache server can manage to bind to port 80 with another user. What I am asking is why tomcat can not do this. Is it becasue it is written in Java? TA. -Original Message- From: Renato Romano [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 3:30 PM To: 'Tomcat Users List' Subject: RE: port 80 !!?? That's because on Unix-like systems well-known port numbers, like www (port 80), or ftp, telnet etc, are system-reserved to the root user. No other user can open server sockets on ports less than 1024. You should run it as root, or have another user having system administrator prvileges. Renato Renato Romano Sistemi e Telematica S.p.A. Calata Grazie - Vial Al Molo Giano 16127 - GENOVA e-mail: [EMAIL PROTECTED] Tel.: 010 2712603 _ -Original Message- From: Tevfik Aytekin [mailto:[EMAIL PROTECTED]] Sent: martedì 30 aprile 2002 14.32 To: Tomcat Users List Subject: port 80 !!?? Hi, I suppose this question should have been answered, but I could not find a satisfactory answer in the archives. Isn't it possible to run tomcat as standalone on port 80 with a user other then root. Apache server manages to do this. But as far as I can see tomcat can not. I wonder why? Can someone answer? This ability of tomcat would have been great since we did not need neither apache nor mod_jk, etc. Also since apache and mod_jk are written in C it troubles many people to get them run on different platforms. So I do not understand why tomcat do not have the ability run on port 80 with a user other than root. Thanks in advance. TA. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: port 80 !!?? Running !
Adrian, I do not understand your answer. Is your tomcat running on port 80 with a user other then root? If yes, please tell me how you achieve this. Thanks. TA. -Original Message- From: adrianthiele [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 11:53 AM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: port 80 !!?? Running ! Tevfik , I have mine running on port 80, I just grepped Server.xml and changed the port number from 8080 to 80 no the non ssl http config. It only needs to be changed in one spot. I just ran apachectl stop the startup.sh and everything is fine. Adrian Tevfik Aytekin wrote: But apache server can manage to bind to port 80 with another user. What I am asking is why tomcat can not do this. Is it becasue it is written in Java? TA. -Original Message- From: Renato Romano [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 3:30 PM To: 'Tomcat Users List' Subject: RE: port 80 !!?? That's because on Unix-like systems well-known port numbers, like www (port 80), or ftp, telnet etc, are system-reserved to the root user. No other user can open server sockets on ports less than 1024. You should run it as root, or have another user having system administrator prvileges. Renato Renato Romano Sistemi e Telematica S.p.A. Calata Grazie - Vial Al Molo Giano 16127 - GENOVA e-mail: [EMAIL PROTECTED] Tel.: 010 2712603 _ -Original Message- From: Tevfik Aytekin [mailto:[EMAIL PROTECTED]] Sent: martedì 30 aprile 2002 14.32 To: Tomcat Users List Subject: port 80 !!?? Hi, I suppose this question should have been answered, but I could not find a satisfactory answer in the archives. Isn't it possible to run tomcat as standalone on port 80 with a user other then root. Apache server manages to do this. But as far as I can see tomcat can not. I wonder why? Can someone answer? This ability of tomcat would have been great since we did not need neither apache nor mod_jk, etc. Also since apache and mod_jk are written in C it troubles many people to get them run on different platforms. So I do not understand why tomcat do not have the ability run on port 80 with a user other than root. Thanks in advance. TA. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: port 80 !!?? Running !
Normal users cannot open sockets on ports less than 1024. Apache avoids this problem by starting as root, creating and binding a socket in port 80 and then switching to another user (nobody). As the socket has already been bound by root, nobody can use it. Note the difference: nobody uses the socket, does not bind it to port 80 (which only root can do). What Tomcat cannot do is switch from root to nobody. It either starts as root or as nobody, and stays with that user for all its execution. If it starts as root it can create sockets in port 1024. If it starts as nobody, it cannot, so it has to use port 8080 or similar. Anyway, using mod_jk is quite easy, and there are lots of docs available that explain how to connect Apache and Tomcat. Hope now it is clear enough, Ion -Mensaje original- De: Tevfik Aytekin [mailto:[EMAIL PROTECTED]] Enviado el: martes, 30 de abril de 2002 15:10 Para: Tomcat Users List Asunto: RE: port 80 !!?? Running ! Adrian, I do not understand your answer. Is your tomcat running on port 80 with a user other then root? If yes, please tell me how you achieve this. Thanks. TA. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: port 80 !!?? Running !
Yes , a non root process cannot bind to a port under 80. Apache actually starts one process as root according to ps -U root. the child processes are started as www. Adrian Tevfik Aytekin wrote: Adrian, I do not understand your answer. Is your tomcat running on port 80 with a user other then root? If yes, please tell me how you achieve this. Thanks. TA. -Original Message- From: adrianthiele [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 11:53 AM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: port 80 !!?? Running ! Tevfik , I have mine running on port 80, I just grepped Server.xml and changed the port number from 8080 to 80 no the non ssl http config. It only needs to be changed in one spot. I just ran apachectl stop the startup.sh and everything is fine. Adrian Tevfik Aytekin wrote: But apache server can manage to bind to port 80 with another user. What I am asking is why tomcat can not do this. Is it becasue it is written in Java? TA. -Original Message- From: Renato Romano [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 3:30 PM To: 'Tomcat Users List' Subject: RE: port 80 !!?? That's because on Unix-like systems well-known port numbers, like www (port 80), or ftp, telnet etc, are system-reserved to the root user. No other user can open server sockets on ports less than 1024. You should run it as root, or have another user having system administrator prvileges. Renato Renato Romano Sistemi e Telematica S.p.A. Calata Grazie - Vial Al Molo Giano 16127 - GENOVA e-mail: [EMAIL PROTECTED] Tel.: 010 2712603 _ -Original Message- From: Tevfik Aytekin [mailto:[EMAIL PROTECTED]] Sent: martedì 30 aprile 2002 14.32 To: Tomcat Users List Subject: port 80 !!?? Hi, I suppose this question should have been answered, but I could not find a satisfactory answer in the archives. Isn't it possible to run tomcat as standalone on port 80 with a user other then root. Apache server manages to do this. But as far as I can see tomcat can not. I wonder why? Can someone answer? This ability of tomcat would have been great since we did not need neither apache nor mod_jk, etc. Also since apache and mod_jk are written in C it troubles many people to get them run on different platforms. So I do not understand why tomcat do not have the ability run on port 80 with a user other than root. Thanks in advance. TA. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: port 80 !!?? Running !
You said you were concerned about mod_jk so you didn`t want to just map tomcat request to port 80 . If you are running under 1.3 , mod_jk is really simple to get up to speed with. I built it on freeBSD with only minor changes to the make file. Linux has binaries of mod_jk.so available. recently I have also got mod_webapp to run quite well under 1.3 and Apache2. If you need assistance , let me know. If your running under windows, I think people are having alot of trouble with connectors. Tevfik Aytekin wrote: Adrian, I do not understand your answer. Is your tomcat running on port 80 with a user other then root? If yes, please tell me how you achieve this. Thanks. TA. -Original Message- From: adrianthiele [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 11:53 AM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: port 80 !!?? Running ! Tevfik , I have mine running on port 80, I just grepped Server.xml and changed the port number from 8080 to 80 no the non ssl http config. It only needs to be changed in one spot. I just ran apachectl stop the startup.sh and everything is fine. Adrian Tevfik Aytekin wrote: But apache server can manage to bind to port 80 with another user. What I am asking is why tomcat can not do this. Is it becasue it is written in Java? TA. -Original Message- From: Renato Romano [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 3:30 PM To: 'Tomcat Users List' Subject: RE: port 80 !!?? That's because on Unix-like systems well-known port numbers, like www (port 80), or ftp, telnet etc, are system-reserved to the root user. No other user can open server sockets on ports less than 1024. You should run it as root, or have another user having system administrator prvileges. Renato Renato Romano Sistemi e Telematica S.p.A. Calata Grazie - Vial Al Molo Giano 16127 - GENOVA e-mail: [EMAIL PROTECTED] Tel.: 010 2712603 _ -Original Message- From: Tevfik Aytekin [mailto:[EMAIL PROTECTED]] Sent: martedì 30 aprile 2002 14.32 To: Tomcat Users List Subject: port 80 !!?? Hi, I suppose this question should have been answered, but I could not find a satisfactory answer in the archives. Isn't it possible to run tomcat as standalone on port 80 with a user other then root. Apache server manages to do this. But as far as I can see tomcat can not. I wonder why? Can someone answer? This ability of tomcat would have been great since we did not need neither apache nor mod_jk, etc. Also since apache and mod_jk are written in C it troubles many people to get them run on different platforms. So I do not understand why tomcat do not have the ability run on port 80 with a user other than root. Thanks in advance. TA. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: port 80 !!?? Running !
I also got Tomcat to listen on port 80 by changing the port number in Server.xml. My problem is I can only browse from the local (server) machine. If I point my browser on another machine on the same network to the server's ip address I get no response (I think that was what happened; I can't test it now to recall exactly what happens...) I'm guessing this is a unix thing, but am not sure. I'm running on Redhat 7.2 --- adrianthiele [EMAIL PROTECTED] wrote: Tevfik , I have mine running on port 80, I just grepped Server.xml and changed the port number from 8080 to 80 no the non ssl http config. It only needs to be changed in one spot. I just ran apachectl stop the startup.sh and everything is fine. Adrian Tevfik Aytekin wrote: But apache server can manage to bind to port 80 with another user. What I am asking is why tomcat can not do this. Is it becasue it is written in Java? TA. -Original Message- From: Renato Romano [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 3:30 PM To: 'Tomcat Users List' Subject: RE: port 80 !!?? That's because on Unix-like systems well-known port numbers, like www (port 80), or ftp, telnet etc, are system-reserved to the root user. No other user can open server sockets on ports less than 1024. You should run it as root, or have another user having system administrator prvileges. Renato Renato Romano Sistemi e Telematica S.p.A. Calata Grazie - Vial Al Molo Giano 16127 - GENOVA e-mail: [EMAIL PROTECTED] Tel.: 010 2712603 _ -Original Message- From: Tevfik Aytekin [mailto:[EMAIL PROTECTED]] Sent: martedì 30 aprile 2002 14.32 To: Tomcat Users List Subject: port 80 !!?? Hi, I suppose this question should have been answered, but I could not find a satisfactory answer in the archives. Isn't it possible to run tomcat as standalone on port 80 with a user other then root. Apache server manages to do this. But as far as I can see tomcat can not. I wonder why? Can someone answer? This ability of tomcat would have been great since we did not need neither apache nor mod_jk, etc. Also since apache and mod_jk are written in C it troubles many people to get them run on different platforms. So I do not understand why tomcat do not have the ability run on port 80 with a user other than root. Thanks in advance. TA. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] = - Mr Lauren Commons DISCLAIMER: The opinions expressed ARE in fact those of my employer. __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: port 80 !!?? Running !
The Process must run as root, If you can see it on yours , you should be able to see it from others. If I start the whole tomcat process as another user it can start on any port over 1024. Do you use localhost to see the servlet on your machiine ? Can you use the ip address to view it ? Lauren Commons wrote: I also got Tomcat to listen on port 80 by changing the port number in Server.xml. My problem is I can only browse from the local (server) machine. If I point my browser on another machine on the same network to the server's ip address I get no response (I think that was what happened; I can't test it now to recall exactly what happens...) I'm guessing this is a unix thing, but am not sure. I'm running on Redhat 7.2 --- adrianthiele [EMAIL PROTECTED] wrote: Tevfik , I have mine running on port 80, I just grepped Server.xml and changed the port number from 8080 to 80 no the non ssl http config. It only needs to be changed in one spot. I just ran apachectl stop the startup.sh and everything is fine. Adrian Tevfik Aytekin wrote: But apache server can manage to bind to port 80 with another user. What I am asking is why tomcat can not do this. Is it becasue it is written in Java? TA. -Original Message- From: Renato Romano [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 3:30 PM To: 'Tomcat Users List' Subject: RE: port 80 !!?? That's because on Unix-like systems well-known port numbers, like www (port 80), or ftp, telnet etc, are system-reserved to the root user. No other user can open server sockets on ports less than 1024. You should run it as root, or have another user having system administrator prvileges. Renato Renato Romano Sistemi e Telematica S.p.A. Calata Grazie - Vial Al Molo Giano 16127 - GENOVA e-mail: [EMAIL PROTECTED] Tel.: 010 2712603 _ -Original Message- From: Tevfik Aytekin [mailto:[EMAIL PROTECTED]] Sent: martedì 30 aprile 2002 14.32 To: Tomcat Users List Subject: port 80 !!?? Hi, I suppose this question should have been answered, but I could not find a satisfactory answer in the archives. Isn't it possible to run tomcat as standalone on port 80 with a user other then root. Apache server manages to do this. But as far as I can see tomcat can not. I wonder why? Can someone answer? This ability of tomcat would have been great since we did not need neither apache nor mod_jk, etc. Also since apache and mod_jk are written in C it troubles many people to get them run on different platforms. So I do not understand why tomcat do not have the ability run on port 80 with a user other than root. Thanks in advance. TA. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] = - Mr Lauren Commons DISCLAIMER: The opinions expressed ARE in fact those of my employer. __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]