fedora 9下ftp,telnet的安裝和設(shè)置 收藏
因為ftp和telnet沒有默認(rèn)安裝,所以需要自己安裝和配置:
1.先行條件
設(shè)置代理(如果不是通過代理上網(wǎng)的,可以跳過這一步):
進(jìn)入代理面板,System-->Preferences-->Internet and Network-->Network Proxy
設(shè)置自己的代理和Ignore Host List;
禁用auto update:
進(jìn)入Update面板,System-->Preferences-->System-->Software Updates
在Check for updates:中選擇Never;
導(dǎo)入Fedora Project的公鑰(yum用它來驗證下載的rpm包的完整性和正確性):
rpm -import /etc/pki/rpm-gpg/RPM-GPG-KEY
2.使用yum(The Yellowdog Updater, Modified)安裝vsftpd:
[root@localhost ~]# yum list | grep vsftpd
system-config-vsftpd.noarch 0.4.5-3.fc9 fedora
vsftpd.i386 2.0.6-3.fc9 fedora
(最后一列fedora,表示安裝包在遠(yuǎn)端的fedora服務(wù)器上,可以安裝)
[root@localhost ~]# yum install vsftpd
[root@localhost ~]# yum list | grep vsftpd
vsftpd.i386 2.0.6-3.fc9 installed
(最后一列installed,表示已經(jīng)安裝)
[root@localhost ~]# service vsftpd start
3.使用yum安裝telnet-server:
[root@localhost ~]# yum list | grep telnet-server
telnet-server.i386 1:0.17-42.fc9 fedora
[root@localhost ~]# yum install telnet-server
[root@localhost ~]# chkconfig telnet on
[root@localhost ~]# service xinetd start
Starting xinetd: [ OK ]
(因為telnet是xinetd服務(wù)的一部分,只要啟動它就可以)
注1:如果在運行yum時提示以下錯誤,使用kill -9 pid,將對應(yīng)的進(jìn)程殺掉;
Existing lock /var/run/yum.pid: another copy is running as pid 9352.
Another app is currently holding the yum lock; waiting for it to exit...
注2:想讓ftp,telnet等程序正常通信的話,最簡單的方式是將linux的firewal關(guān)掉,
它位于System-->Administration-->Firewall;
注3:默認(rèn)情況下,fedora中的ftp,telnet因為安全問題是不允許root用戶登錄的,
如果想讓root使用telnet的話:
給文件/etc/securetty追加以下內(nèi)容
pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9
然后重新啟動xinetd服務(wù),它會允許10個root用戶的session存在,注意,你自己在本地打開的
terminal也會占用pts的編號,想要查看那些pts被使用,可以使用who命令;
如果想讓root使用ftp的話:
將下列兩個文件中的root刪除掉,重新啟動vsftpd服務(wù),就可以了.
/etc/vsftpd/ftpusers
/etc/vsftpd/user_list