Tuesday, May 17, 2005

Running Jakarta Tomcat 5 as a normal user

Running Jakarta Tomcat 5 as a normal user

I downloaded and untared and ran tomcat as root and everything was fine. Then when I tried to run it as a normal user I got the following error:

java.net.BindException: Permission denied:80

The post above tells you why. It basically says that under Unix privileged ports can only run as root. Hence, tomcat under port 80 will not run as a normal user. It will run as root. Right now I'm running it on port 8080 which runs fine.