How do I disable services like ftp, telnet in a sun box, running on Solaris 8?
Edit the file /etc/inet/inet.conf and 'bounce' the inetd daemon (# pkill -HUP inetd).
Before you do that, read the contents of /etc/inet/inet.conf and see the man pages for 'inetd' and 'inetd.conf'.
Also note that it is very different in Solaris 10.
Also, how do I enable/disable certain ports?
I'm not sure if there is a command to do this. As Ken suggests, comment out ports in /etc/services that are not required.
Also see the man pages for 'netstat' , 'inet' and 'services'.
The /etc/services file is more like the hosts table. Having something in it doesn't necessarily make it active. It just assigns a name to a specific port number.
/etc/inetd.conf and the inetd daemon controls many (not all) services that you're looking for. Many secure servers have inetd disabled or all lines commented out of the /etc/services file. Obviously, you can select just ftp and/or telnet as first steps. Remember to "HUP" the inetd process to activate any changes.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.