Finding out what user owns a certain port

From: Christopher L. Barnard (cbar44@tsg.cbot.com)
Date: Tue Mar 28 2006 - 11:58:52 EST


I looked for this in the archives and on sunsolve, but I may have used
the wrong keywords in my search.

Is there a way to tell the uid of the process that controls a certain
port?

In other words, when I do a "netstat -an | grep "*.80 " to verify that a
webserver is running, is there a way to tell the uid of the process
responding to port 80?

TIA, and I will summarize.

+-----------------------------------------------------------------------+
| Christopher L. Barnard O When I was a boy I was told that |
| cbarnard@tsg.cbot.com / \ anybody could become president. |
| (312) 347-4901 O---O Now I'm beginning to believe it. |
| http://www.cs.uchicago.edu/~cbarnard --Clarence Darrow |
+----------PGP public key available via finger or PGP keyserver---------+
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:39:25 EDT