Sun Java System Web Server 7.0 Troubleshooting Guide

Running Administration Server As Non-Root

Problem: Unable to bind at port <port_number>.

The administration server and the administration nodes should be run by the same user id in Unix. This is because of the following reason:

  1. If the instances are running as part of the root process, the Administration Server will not have sufficient permissions to modify the instance's configuration files, if it is not running as part of the root process.

So for the administration server to perform its job of maintaining the server instances, it either needs to be part of the root process or at least the same user as that of the server instance. However in Solaris 10, you don't need to run the Administration Server as root to bind to port 80 (or < 1024). Execute the following commands:

# su
# /usr/sbin/usermod -K defaultpriv=basic,net_privaddr webservd