SUMMARY: Finding out what user owns a certain port

From: Christopher L. Barnard <cbar44_at_tsg.cbot.com>
Date: Tue Mar 28 2006 - 12:30:03 EST
I asked:

> 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.

The answer:

its the -i flag to lsof.  I read through the man page several times but
managed to miss it.  Thanks to all who responded so fast.

+-----------------------------------------------------------------------+
| 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
Received on Tue Mar 28 12:30:40 2006

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:57 EST