# 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 # 發送 SIGHUP 信號重新讀取配置
查看 /etc/ftpusers 文件,確認需要登錄的用戶不在禁止列表中(每行一個用戶名)。root 默認通常被列入,如需允許 root FTP 登錄請刪除該行。
注意: Solaris 10+ 已遷移至 SMF 服務管理,啟用方式為 svcadm enable network/telnet 和 svcadm enable network/ftp,本文僅適用於 Solaris 8/9 等傳統 inetd 架構版本。