I have a redhat linux server with tomcat 6.0.39 installed. Before I deploy any web application and open my server to the public I would like to learn how to run tomcat startup script with my tomcat user binding to the 80 port.
This is what I have done so far:
- Changed port 8080 -> 80; 8443 -> 443 in my server.xml
- The tomcat directory is owned by my tomcat user.
- Installed authbind.
- under /etc/authbind/byport I created two files 80, 443 and made them executable and changed the owner to tomcat.
Inside the startup.sh I changed (exec "$PGDIR"/"$EXECUTABLE" start "$@") to ("exec authbind --deep "$PGDIR"/"$EXECUTABLE" start "$@")
After following those steps (which is pretty much what most articles tell you to do) I still get permission denied when starting up my tomcat, complaining that it cannot bind ports 80, 443.
If you could provide any help I would greatly appreciate it, Thanks!