Running the tomcat on the 443 port through non root user
07:55 03 Sep 2026

I am trying to run Apache Tomcat on port 443 using a non-root user.

Since port 443 is a privileged port, I attempted to grant the necessary permissions to the Java binary using the following command: sudo setcap 'cap_net_bind_service=+ep' /usr/lib/jvm/jdk-21.0.5/bin/java

However, even after applying this capability, Tomcat still throws a permission/binding error when started by the non-root user .

-

java network-programming tomcat configuration