甜咖啡

          我的IT空間

          Linux下安裝vsftpdFTP服務的步驟

          1、  下載vsftpd

          # wget ftp://vsftpd.beasts.org/users/cevans/vsftpd-2.3.2.tar.gz

          2、  解壓、安裝vsftpd

          # tar xvfz vsftpd-2.3.2.tar.gz

          # cd vsftpd-2.3.2

          # make

          make命令成功執行后,您將看到vsftpd文件獲得當前目錄中創建。

          # ls -l vsftpd

          3、  安裝 vsftpd d Linux

          # make install

          make install,確保vsftpd文件復制到/ usr / local / sbin目錄。

          # ls -l /usr/local/sbin/vsftpd

          4、  復制vsftpd手冊頁到/usr/share/man/man8,man5

          # cp vsftpd.8 /usr/share/man/man8/

          # cp vsftpd.conf.5 /usr/share/man/man5/

          5、  拷貝vsftpd.cond配置文件

          # cp vsftpd.conf /etc

          6、   設置Anonymouse FTP訪問vsftpd

          # mkdir /var/ftp/

          # chown root.root /var/ftp

          # chmod og-w /var/ftp

           

          ftp localhost

          Connected to dotcom.

          220 (vsFTPd 2.3.2)

          530 Please login with USER and PASS.

          KERBEROS_V4 rejected as an authentication type

          Name (localhost:root): anonymous

          331 Please specify the password.

          Password:

          230 Login successful.

          Remote system type is UNIX.

          Using binary mode to transfer files.

          ftp>

          在這個階段,如果你試圖登錄與任何其他賬戶(除了匿名,和ftp),它就會失敗,如下所示

          # ftp localhost

          Connected to dotcom.

          220 (vsFTPd 2.3.2)

          530 Please login with USER and PASS.

          KERBEROS_V4 rejected as an authentication type

          Name (localhost:root): ramesh

          530 This FTP server is anonymous only.

          Login failed.

          ftp>

          7、   允許LINIX登錄使用vsftp

          # cp RedHat/vsftpd.pam /etc/pam.d/ftp

          #local_enable=YES

          # ftp localhost

          Connected to dotcom.

          220 (vsFTPd 2.3.2)

          530 Please login with USER and PASS.

          KERBEROS_V4 rejected as an authentication type

          Name (localhost:root): ramesh

          Password:

          230 Login successful.

          Remote system type is UNIX.

          Using binary mode to transfer files.

          ftp>

          切記再每次修改完vsftpd.conf文件之后要重啟一下vsftpd

          # ps -ef | grep vsftpd

          # kill -9 {vsftpd-pid}

          # /usr/local/sbin/vsftpd &

           

           

          如果還不能登錄成功,那么要關閉系統其他的ftp服務和防火墻

          Service xinetd stop

          Service iptables stop

          posted on 2012-08-22 16:15 甜咖啡 閱讀(253) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          導航

          <2012年8月>
          2930311234
          567891011
          12131415161718
          19202122232425
          2627282930311
          2345678

          統計

          常用鏈接

          留言簿(1)

          我參與的團隊

          隨筆檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 八宿县| 新泰市| 渑池县| 永登县| 东城区| 安化县| 闽清县| 渝中区| 赞皇县| 长垣县| 古蔺县| 东乌| 北辰区| 枣庄市| 铅山县| 仙居县| 句容市| SHOW| 华宁县| 商丘市| 上犹县| 奉贤区| 浪卡子县| 吉水县| 昌都县| 安顺市| 漳浦县| 鸡泽县| 凌云县| 牙克石市| 阿勒泰市| 峨眉山市| 新竹市| 睢宁县| 冷水江市| 城固县| 神木县| 兴义市| 江北区| 罗江县| 封丘县|