甜咖啡

          我的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)

          我參與的團隊

          隨筆檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 沛县| 长宁区| 海南省| 本溪| 临夏县| 登封市| 山西省| 旌德县| 汶川县| 观塘区| 青阳县| 德州市| 湛江市| 临颍县| 大丰市| 苏尼特左旗| 临沂市| 多伦县| 密云县| 贵定县| 咸丰县| 突泉县| 丹巴县| 哈尔滨市| 城步| 武夷山市| 七台河市| 阆中市| 宝山区| 卢氏县| 贵南县| 江西省| 子长县| 达拉特旗| 桂阳县| 永仁县| 大港区| 望都县| 五河县| 锡林郭勒盟| 繁昌县|