[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mysterious process talking on 799=>2049 tcp - what is using the ports?



Hello Hanasaki!

On Sat, Nov 08, 2003 at 10:16:34AM -0600, Hanasaki JiJi wrote:
> How do i find out what is using those ports?
> 
> netstat  -natl | grep 799
> tcp        0      0	192.168.1.200:799
> 			192.168.1.1:2049        ESTABLISHED
> 
> below returns no output
> 	lsof -i tcp:799
> Nothing is using the port but it is in netstat????

It is shown by netstat, but a normal user won't get further detail about
it. root will:

|fernst@live:~/mail$ lsof -i tcp:25
|fernst@live:~/mail$ su
|Password:
|live:/home/fernst/mail# lsof -i tcp:25
|COMMAND PID USER   FD   TYPE DEVICE SIZE NODE NAME
|exim4   840 mail    0u  IPv4   1147       TCP localhost:smtp (LISTEN)

"netstat -tulpen" might be even faster...

Better setup sudo so you won't accidentally hose your system by staying
root for too long... ;-)

HTH,
Flo

Attachment: pgpXCdT1A5JcQ.pgp
Description: PGP signature


Reply to: