Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Operating Systems > Unix
Register

Reply
 
LinkBack Thread Tools
Old 25.09.2006, 12:11   #1
Untouchable misanthrope
 
AvDav's Avatar
 
Join Date: 07 2004
Location: Pure thoughts
Age: 36
Posts: 3,408
Downloads: 22
Uploads: 0
Reputation: 222 | 3
Default Need UNIX command to determine port owners

Hello, I need a UNIX command to determine which ports are open from what processes. Nmap is not a solution since it shows only opened ports, I dig into `ps' command too, but according to its manual there is no open port info it can provide. Would appreciate any help.
P.S. My problem is that I see that ftp 21 port is open on my UNIX and it should be opnened by `proftpd', and if I do `ps -e | grep proftpd' there is no matching result in other word need to determine what process has been opened ftp port.

Thanks in advance.
__________________
Не хлебом единым жив человек.
Reply With Quote
Old 25.09.2006, 14:42   #2
dardanian
 
aeneas's Avatar
 
Join Date: 11 2005
Location: new troy
Posts: 175
Downloads: 8
Uploads: 0
Reputation: 9 | 0
Default

netstat -ae
Reply With Quote
Old 25.09.2006, 16:28   #3
Untouchable misanthrope
 
AvDav's Avatar
 
Join Date: 07 2004
Location: Pure thoughts
Age: 36
Posts: 3,408
Downloads: 22
Uploads: 0
Reputation: 222 | 3
Default

I am sorry, but it gives me lines like:

tcp 0 0 *:ftp *:* LISTEN root 618
tcp 0 0 *:ssh *:* LISTEN root 622

and there is no process info I can view...
Reply With Quote
Old 25.09.2006, 17:06   #4
dardanian
 
aeneas's Avatar
 
Join Date: 11 2005
Location: new troy
Posts: 175
Downloads: 8
Uploads: 0
Reputation: 9 | 0
Default

Quote:
Originally Posted by aeneas View Post
netstat -ae
oops

netstat -ap
Reply With Quote
Old 25.09.2006, 22:03   #5
Untouchable misanthrope
 
AvDav's Avatar
 
Join Date: 07 2004
Location: Pure thoughts
Age: 36
Posts: 3,408
Downloads: 22
Uploads: 0
Reputation: 222 | 3
Default

Thanks for the help.
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 04:03.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.