SUMMARY: Finding out what user owns a certain port
- From: "Christopher L. Barnard" <cbar44@xxxxxxxxxxxx>
- Date: Tue, 28 Mar 2006 11:30:03 -0600 (CST)
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@xxxxxxxxxxxx / \ 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@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
- References:
- Finding out what user owns a certain port
- From: Christopher L. Barnard
- Finding out what user owns a certain port
- Prev by Date: Finding out what user owns a certain port
- Next by Date: could not start doc viewer
- Previous by thread: Finding out what user owns a certain port
- Next by thread: could not start doc viewer
- Index(es):
Relevant Pages
|
|