CentOS 6.5 vsftp搭建 解決root使用者無法登陸ftp傳輸檔案的問題

來源:互聯網
上載者:User

標籤:防火牆   service   使用者   status   enabled   

1.查看並啟動vsftpd

運行

   #ntsysv

查看有沒有vsftpd,有的話,選中,沒有則安裝vsftpd.

啟動ftp.

   #service vsftpd restart

2.配置vsftpd使用者,啟用root使用者.

   #cd /etc/vsftpd
   #vi ftpusers

注釋掉root

網上還有人說需要修改user_list檔案

   #vi user_list

注釋掉root

我按照以上做法之後,仍然無法登入成功,於是在網上尋找答案,終於找到了該如何解決。

還需要執行(添加防火牆策略或關閉防火牆)

   #iptables -I INPUT -p tcp --dport 21 -j ACCEPT

注釋:/etc/sysconfig/iptables (防火牆配置地址)



ps:如果還是不能訪問則可以關閉SELinux

   1、查看SELinux狀態:   /usr/sbin/sestatus -v      ##如果SELinux status參數為enabled即為開啟狀態   SELinux status:                 enabled
   2、修改設定檔需要重啟機器:   修改/etc/selinux/config 檔案   將SELINUX=enforcing改為SELINUX=disabled   重啟機器即可


CentOS 6.5 vsftp搭建 解決root使用者無法登陸ftp傳輸檔案的問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.