[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: closeing open ports



On Sun, Apr 29, 2001 at 04:20:14PM -0300, Rogerio Bastos wrote:
> 
> Another usefull thing to do when the port you want to close is not listed on 
> /etc/services and you don't have a clue of what service is binded to that 
> port is to run (as root) fuser -a -n proto port, where proto may be tcp, udp 
> or file. For example, if you are serving http with apache at port 80:
> 
> #fuser -a -n tcp 80 
> 
> It will return the pid(s) that apache is using.

lsof can also be used in a similar manner.
# lsof -i :80

-B

-- 
Brandon High                                     armitage@freaks.com
War is Peace. Slavery is Freedom. AOL is the Internet.



Reply to: