1 |
On 12/13/2010 2:22 PM, Bill Longman wrote: |
2 |
> On 12/13/2010 02:02 PM, Kevin O'Gorman wrote: |
3 |
>> On Mon, Dec 13, 2010 at 1:18 PM, pk<peterk2@××××××××.se |
4 |
>> <mailto:peterk2@××××××××.se>> wrote: |
5 |
>> |
6 |
>> On 2010-12-13 22:08, Kevin O'Gorman wrote: |
7 |
>> |
8 |
>> > Netstat agrees that they're open but does not disclose which |
9 |
>> process is |
10 |
>> > listening. |
11 |
>> > |
12 |
>> > Does anybody know how to find this out? |
13 |
>> |
14 |
>> netstat only lists listening processes when you're root... |
15 |
>> |
16 |
>> Not for me, it doesn't. It lists processes for unix-domain sockets |
17 |
>> whether I'm root or not, but does not show them for inet-domain at all. |
18 |
>> |
19 |
>> I'm using "netstat -l" or "netstat -ln". Is there some other option I |
20 |
>> need? I didn't see one. |
21 |
> |
22 |
> You need -p for "process". |
23 |
> |
24 |
|
25 |
What Bill said. You'll probably want to try sudo netstat -lnp and sudo |
26 |
netstat -lnpt which just shows TCP ports. |
27 |
|
28 |
kashani |