centos 搭建ftp服務(wù)器詳解及簡單介紹
centos 搭建ftp服務(wù)器
1.安裝vsftpd
sudo yum install vsftpd
2.配置vsftpd.conf
# Allow anonymous FTP? (Beware - allowed by default if you comment this out). anonymous_enable=NO # When SELinux is enforcing check for SE bool ftp_home_dir local_enable=YES write_enable=YES # 本地的ftp目錄地址 local_root=/var/ftp
3.添加ftp用戶
#創(chuàng)建用戶 adduser -d /var/ftp -g ftp -s /sbin/nologin *_ftp #修改密碼 passwd *_ftp
4.上傳權(quán)限
# 修改上傳路徑權(quán)限 777 更具個人喜好設(shè)置權(quán)限 sudo chmod -R 777 /var/ftp # 查看 ftp 設(shè)置 getsebool -a|grep ftp ftp_home_dir --> on ftpd_anon_write --> off ftpd_connect_all_unreserved --> off ftpd_connect_db --> off ftpd_full_access --> on ftpd_use_cifs --> off ftpd_use_fusefs --> off ftpd_use_nfs --> off ftpd_use_passive_mode --> off httpd_can_connect_ftp --> off httpd_enable_ftp_server --> off sftpd_anon_write --> off sftpd_enable_homedirs --> off sftpd_full_access --> off sftpd_write_ssh_home --> off tftp_anon_write --> off tftp_home_dir --> off # 修改ftp_home_dir、ftpd_full_access 為 on setsebool -P ftp_home_dir=on ftpd_full_access=on
5.設(shè)置vsftp 開機啟動
chkconfig vsftpd on
6.添加防火墻
firewall-cmd --permanent --add-service=ftp
firewall-cmd --reload
感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!
相關(guān)文章
filezilla Failed to create listen socket on port 21 for IPv4
今天幫一個客戶配置filezilla的時候,提示filezilla Failed to create listen socket on port 21 for IPv4,原來是因為21端口被占用了,換個端口就可以了2013-09-09修改iptables防火墻規(guī)則解決vsftp登錄后不顯示文件目錄的問題
這篇文章主要介紹了vsftp登錄后不顯示文件目錄的解決方法,給vsFTPd增加隨機端口的范圍,然后把這個端口范圍添加到iptables就可以解決2014-01-01Linux系統(tǒng) 改善FTP服務(wù)器的安全性
FTP是互聯(lián)網(wǎng)應(yīng)用中的一個元老級人物了,其方便企業(yè)用戶文件的共享。但是,安全問題也一直伴隨在FTP左右。2009-06-06Linux編譯安裝vsftpd服務(wù)器(本地用戶驗證方式)
vsftpd是一款在Linux發(fā)行版中最受推崇的FTP服務(wù)器程序。特點是小巧輕快,安全易用。下面我們一步一步介紹如何編譯安裝vsftpd和配置2014-06-06