[CentOS] open port 46929

Stephen Harris lists at spuddy.org
Mon Aug 20 16:51:22 UTC 2007


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



More information about the CentOS mailing list