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

Re: listening to port 1024



On Mon, Aug 06, 2001, Dan Kenigsberg wrote about "listening to port 1024":
> Hi.
> 
> I'm running kde on my RH7.1. I noticed that I am listening to port 1024.
> nmap says this belongs to kdm, but I did not find very much about it (what is it
> for, and how to disable it) anywhere.
> 
> What do you say?

To check which program is listening to a given port, run (as root! That's
important!)
	lsof -i

For example on my system I see
rpc.mount   644 root    3u  IPv4   1254       UDP *:1024 

So that the mount daemon is using (UDP, not TCP) port 1024 (but not listening
on it, by the way).

What does lsof -i show on your system for port 1024?

1024 is the first non-priviliged port, so the first application on the system
that needs a random port is likely to get this number. I have no idea where
nmap got the idea that "this belongs to kdm".

-- 
Nadav Har'El                        |          Monday, Aug  6 2001, 17 Av 5761
nyh@math.technion.ac.il             |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |When you lose, don't lose the lesson.
http://nadav.harel.org.il           |

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il