The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat
.
google unix.com



Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
List TCP ports with process vimes SUN Solaris 7 10-30-2008 11:22 AM
What prot is a process listening on? Le Badger UNIX for Dummies Questions & Answers 2 11-02-2007 09:39 AM
unix process that frees ports FunnyCats UNIX for Dummies Questions & Answers 2 10-05-2006 06:18 AM
Restrict the number of IP ports that may be dynamically allocated to a process (SUN) itsupplies UNIX for Advanced & Expert Users 2 07-18-2003 06:49 AM
TCP Listening Ports jacobsa UNIX for Dummies Questions & Answers 3 05-24-2002 05:26 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-08-2009
Padow Padow is offline
Registered User
  
 

Join Date: Dec 2008
Location: Maryland
Posts: 178
No process ID for listening ports

How can I have ports that are listening without processes being associated with them?

Code:
root@ldv002 # netstat -ltnup
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 0.0.0.0:5600                0.0.0.0:*                   LISTEN      1949/esmd
tcp        0      0 0.0.0.0:6305                0.0.0.0:*                   LISTEN      3651/xinetd
tcp        0      0 127.0.0.1:199               0.0.0.0:*                   LISTEN      5408/snmpd
tcp        0      0 0.0.0.0:34540               0.0.0.0:*                   LISTEN      -
tcp        0      0 0.0.0.0:1006                0.0.0.0:*                   LISTEN      5488/rpc.statd
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      3087/portmap
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN      3669/vsftpd
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      3694/sendmail: acce
tcp        0      0 :::22                       :::*                        LISTEN      3634/sshd
udp        0      0 0.0.0.0:514                 0.0.0.0:*                               3044/syslogd
udp        0      0 0.0.0.0:161                 0.0.0.0:*                               5408/snmpd
udp        0      0 0.0.0.0:49471               0.0.0.0:*                               5408/snmpd
udp        0      0 0.0.0.0:68                  0.0.0.0:*                               2892/dhclient
udp        0      0 0.0.0.0:59742               0.0.0.0:*                               -
udp        0      0 0.0.0.0:1000                0.0.0.0:*                               5488/rpc.statd
udp        0      0 0.0.0.0:1003                0.0.0.0:*                               5488/rpc.statd
udp        0      0 0.0.0.0:111                 0.0.0.0:*                               3087/portmap
I have also tried:
Code:
root@ldv002 # lsof -i tcp:5600
COMMAND  PID USER   FD   TYPE DEVICE SIZE NODE NAME
esmd    1949 root    4u  IPv4 338848       TCP *:esmmanager (LISTEN)
[/root]
root@ldv002 # lsof -i tcp:34540
[/root]
root@ldv002 # lsof -i tcp:59742
[/root]
  #2 (permalink)  
Old 10-09-2009
thegeek thegeek is offline
Registered User
  
 

Join Date: Apr 2009
Location: /usr/bin/vim
Posts: 453
Code:
$ man netstat 
...
..
Active Internet connections (TCP, UDP, raw)
...
...
PID/Program name
       Slash-separated pair of the process id (PID) and process name of the process that owns the socket.  
       --program causes  this  column to  be  included.   You will also need superuser privileges to see this 
       information on sockets you donāt own.  This identification information is not yet available 
       for IPX sockets.
.....
Not sure !!
  #3 (permalink)  
Old 10-14-2009
Padow Padow is offline
Registered User
  
 

Join Date: Dec 2008
Location: Maryland
Posts: 178
These ports were actually part of NFS.

I added this to /etc/modprobe.conf to control the ports used so i can exclude them from scans:

options lockd nlm_tcpport=<PORT> nlm_udpport=<PORT>
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0