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'.
I hope that helps.
Mike