vsftpd配置Fedora 10下運用安裝命令
vsftpd配置還是比較常用的,于是我研究了一下Fedora vsftpd配置,在這里拿出來和大家分享一下,希望對大家有用。Fedora 10下vsftpd配置。
查詢系統(tǒng)中是否安裝了vsftpd配置,可以用命令:rpm -qa | grep vsftpd(找到以后我也不知道有啥用,還是要用rpm包重新裝)
vsftpd安裝命令:rpm -ivh vsftpd*.rpm
費了一天時間才解決了一個小小的問題,還沒有完全搞懂,先把明白的記錄一下。(http://linux.chinaunix.net/techdoc/system/2009/02/09/1061530.shtml)
啟動vsftpd命令式:service vsftpd start
關(guān)閉防火墻的命令:service iptables stop
關(guān)閉selinux的命令,我在網(wǎng)上查了,但是不好使。所以只能使用下面step 3的方法。想要啟用vsftpd配置,上面三步都必須做。
讓匿名登錄者anonymous可以上傳文件,可參考以下步驟:
Step1. 修改 /etc/vsftpd/vsftpd.conf
將anonymous_enable=YES
anon_upload_enable=NO
改為
anonymous_enable=YES # <=確定這行為YES
anon_upload_enable=YES # 將這行的NO改為YES即可
anon_mkdir_write_enable=YES # 若加上這行,則匿名登錄者可新增目錄
Step2. 修改/var/ftp/pub/的目錄權(quán)限
執(zhí)行以下命令:
chmod -R 777 /var/ftp/pub/
Step3. 關(guān)閉selinux(我就是因為這個沒關(guān),花了一天才把東西傳到ftp上)
在/etc/selinux/config 配置文件如下;
/etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=Disabled #這樣就把SELINUX服務(wù)器關(guān)掉了,請重新啟動系統(tǒng);
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
客戶端登陸ftp服務(wù)器,windows下用dos登陸,或linux命令行登陸,采用ftp ip address的方式。登陸后的操作和查看文件系統(tǒng)的命令相同。
以上介紹vsftpd配置在Fedora 10下運用。
【編輯推薦】