results from 'netstat -tlpn' gives me a line... tcp 0 0 0.0.0.0:46929 0.0.0.0:* LISTEN - googling for port 46929 doesn't turn up anything and so I don't have a clue what process this belongs to. Do I have to start capturing activity on this port or is there a better way to find out what this port is about? -- Craig White <craig at tobyhouse.com>
On Mon, Aug 20, 2007 at 09:46:21AM -0700, Craig White wrote:> results from 'netstat -tlpn' gives me a line... > > tcp 0 0 0.0.0.0:46929 0.0.0.0:* > LISTEN -Rerun the command as root (eg under sudo). Then the "p" option will tell you what process is listening. eg % netstat -anp | grep -w 22 | grep LISTEN (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 0 0 :::22 :::* LISTEN - % sudo netstat -anp | grep -w 22 | grep LISTEN tcp 0 0 :::22 :::* LISTEN 3742/sshd -- rgds Stephen
If you run that netstat command as root, then the last column should show which process/PID is listening on that port. (that is what the '-p' option to netstat tells you) lsof is handy for this as well. Mike> -----Original Message----- > From: centos-bounces at centos.org > [mailto:centos-bounces at centos.org] On Behalf Of Craig White > Sent: August 20, 2007 12:46 PM > To: CentOS mailing list > Subject: [CentOS] open port 46929 > > > results from 'netstat -tlpn' gives me a line... > > tcp 0 0 0.0.0.0:46929 0.0.0.0:* > LISTEN - > > googling for port 46929 doesn't turn up anything and so I > don't have a clue what process this belongs to. > > Do I have to start capturing activity on this port or is > there a better way to find out what this port is about? > > -- > Craig White <craig at tobyhouse.com> > > _______________________________________________ > CentOS mailing list > CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos >