Operating System - HP-UX
1832055 Members
3315 Online
110034 Solutions
New Discussion

Failed to listen to network.

 
SOLVED
Go to solution
Ceesjan van Hattum
Esteemed Contributor

Failed to listen to network.

Hi,
I've set up some mta's listening to port 102.
But i set it up as root, and changed the
application to a different user (chown -R ..).
Now my application refuses to listen to port 102, even after a restart.
What is holding/binding port 102 to root.
This problem i can repoduce on hpux10.20 and
11.00.
Please help.
3 REPLIES 3
Steven E. Protter
Exalted Contributor
Solution

Re: Failed to listen to network.

Nonroot users need special priviledges to monitor ports with number below 1024.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
A. Clay Stephenson
Acclaimed Contributor

Re: Failed to listen to network.

You need to use lsof or netstat to see what application has port 102 in use. I suspect that your real problem is that you changed the user from root. Low-range ports (0-1023) are reserved for use by super-user so that I suspect the moment you changed the owner, you killed the application. Note: You could code your application to be a setuid application running with an effective UID of 0.
If it ain't broke, I can fix that.
Ceesjan van Hattum
Esteemed Contributor

Re: Failed to listen to network.

You're both correct. I wanted to listen from a lownumber port using a simple user. Using ports like 10008 was no problem.

case closed.
THNX
Ceesjan