[Tfug] Open port question.
Brian Murphy
tfug@tfug.org
Mon Jul 1 13:51:02 2002
On Mon, Jul 01, 2002 at 10:29:13AM -0700, Ken Steen wrote:
> I ran nmap and it shows kdm listening on port 1024. KDE isn't running
> and kdm is not used to login. When I run a list of all the processes
> running kdm does not show up. I checked /etc/init.d and kdm is not
> run on startup. Does anyone know why it shows up as an open port?
nmap takes the service name out of /etc/services. This isn't 100%
reliable. The lsof command can match a listening port to a process
(and much more).
Try "lsof -i TCP:1024" and see what you get.
You have to be root to run lsof.
Brian