# vi /etc/inetd.conf
取消以下兩行的註釋(刪除行首 #):
ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd telnet stream tcp6 nowait root /usr/sbin/in.telnetd in.telnetd
# ps -ef | grep inetd root 123 1 0 10:00 ? 0:00 /usr/sbin/inetd -s # kill -HUP 123
查看 /etc/ftpusers,確保允許登錄的用戶(如 root)不在該文件中。默認 root 通常被列入禁止列表,需手動刪除該行才能 FTP 登錄。
適用版本: Solaris 8/9 等基於 inetd 的傳統版本。Solaris 10+ 請使用 svcadm enable network/telnet 和 svcadm enable network/ftp。