萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 作業系統 >  >> Solaris 介紹

Sun Solaris 8 啟用 Telnet 與 FTP 服務步驟

Solaris 8 開啟 Telnet 和 FTP 服務快速指南

1. 編輯 inetd 配置文件

# 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

2. 重啟 inetd 進程

# ps -ef | grep inetd
root  123  1  0  10:00 ?  0:00 /usr/sbin/inetd -s
# kill -HUP 123

3. 檢查 FTP 禁止用戶列表

查看 /etc/ftpusers,確保允許登錄的用戶(如 root)不在該文件中。默認 root 通常被列入禁止列表,需手動刪除該行才能 FTP 登錄。

適用版本: Solaris 8/9 等基於 inetd 的傳統版本。Solaris 10+ 請使用 svcadm enable network/telnet 和 svcadm enable network/ftp。

copyright © 萬盛學電腦網 all rights reserved