How to have Tomcat bind to port 80 and still run as a non-root user
July 26, 2008 7:56 pm Installations, WebIn order to have Tomcat listen on port 80, you either have to have it running as root (which by the way is not a very good idea), or configure a wrapper like JSCV.
Here is how you do it (This is an example using tomcat 6 please adapt to your install):
# cd /opt/apache-tomcat-6.0.16/bin/
# tar -zxvf jsvc.tar.gz
# cd jsvc-src
# chmod +x configure
# ./configure ; make
# cp jsvc ..
——————
Change your connection in server.xml to use port 80.
—————–
Start tomcat with a variation of the following init script:
As usual, let me know if you find any errors or a better way of doing it.
–JC


October 22nd, 2008 at 6:28 pm
I am looking for some idea and stumble upon your posting
decide to wish you Thanks. Eugene