Non Root user access to ports 80 and 443 in Sun Solaris Unix

While trying to build the web server for our BMC Remedy AR Server System to host mid-tier over Tomcat I encountered this problem.

As we are using a non-root user for installation of BMC PRroducts such as Mid-Tier and RKM on our web server, we need to start tomcat using the same non-root user and that too over the ports 80 for http and 443 for https.

But when on Sun Solaris 10 system or any other unix system, if you try to start Tomcat you will get an error in your catalina.out saying you do not have access or privileges to the port 80 and 443.

The issue is that non-root users do not have access to the ports less than 1024. There are two solutions you can use for this issue:


1.) Use ports greater than 1024 to start tomcat, such as 8080 and 8443, which are the defaults for Tomcat.

2.) Give non-root user privileges to the ports less than 1024, by running the following command:

usermod -K defaultpriv=basic,net_privaddr username


Hope this will solve the issues for you also.

No comments:

Followers

Powered by Blogger.