/etc/services doesn't control services. The only function of this file is to translate between port numbers and service names. Commenting stuff in there doesn't help. What you need is to figure out what processes are keeping the ports open and shut down all the unneeded ones. In this case you aparently run MySQL database server, HTTP server ( probably apache ), an MTA ( probably exim or sendmail ) and inetd ( the rest of the stuff ). I am not sure who opens port 66. The best way I know to find out who is opening what is to use lsof -i.
On Tuesday 04 December 2001 03:18 pm, J. Paul Bruns-Bielkowicz wrote: > Hi, > I disabled all but a few ports in /etc/services, but I have > tcp 0 0 pa237.olsztyn.sdi.t:111 80.116.215.37:1064 > ESTABLISHED > when I netstat my machine. What exactly does this mean? I just want > 25/tcp open smtp > 37/tcp open time > 66/tcp open sql*net > 80/tcp open http > 110/tcp open pop-3 > 443/tcp open https > 3306/tcp open mysql > open. How can I close ports 111 and 859? They are not enabled in > /etc/services > Thanks, > J. Paul Bruns-Bielkowicz > http://www.america.prv.pl