Date: Mon, 18 Dec 2000 08:58:23 -0800 (PST)
From: Greg Thomas
Greg,
/etc/services is just a list of ports associated with services. If one wants to close the ports then you would have to comment out the line associated with them in the inetd.conf file and restart inetd. This is basic Unix/Linux thing .. it works this way on my Solaris (sparc) box, SuSE Linux box and my freeBSD box.. It's inetd that controls these things..not /etc/services.
I just tried commenting out a couple of services in /etc/services, 1 controlled by inetd, ftp, and one not controlled by inetd, smtp, on my Linux box, my Solaris 2.6 box, and my OpenBSD 2.7 box. My Linux box is the only one where the services start. AFAIK /etc/services is also there to tell the OS which services are recognized, not just to map the the name to the port number. It's moot anyway as the proper way would be to comment the services out of inetd.conf or remove the startup script. Greg
-**- -**-Yes, but once you kill the process associated with the port, if it is -**-commented out of /etc/services the daemon should not start up -**-the next time init scripts are run. This is an indirect way of -**-doing things, though. Haven't checked this on Linux but Solaris, -**-HP-UX, and OpenBSD behave this way. -**- -- Ben Rosenberg mailto:brosenb@suse.com *************************************** SuSE Inc. 580 Second St Suite 210 Oakland CA 94607 U.S.A Tel: 1-510-628-3380 EXT:5086 Fax: 1-510-628-3381 *************************************** "My opinions are not a reflection of the opinions of SuSE Inc."
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq