本篇将介绍如何在Fedora18下安装vsftpd
首先安装vsftpd
yum -y install vsftpd
调试conf文件如下:
vi /etc/vsftpd/vsftpd.conf
# line 12: no anonymous
anonymous_enable=NO
# line 82,83: uncomment ( allow ascii mode )
ascii_upload_enable=YES
ascii_download_enable=YES
# line 100, 101: uncomment ( enable chroot )
chroot_local_user=YES
chroot_list_enable=YES
# line 103: uncomment ( specify chroot list )
chroot_list_file=/etc/vsftpd/chroot_list
# line 109: uncomment
ls_recurse_enable=YES
# line 114: change ( if use IPv4 )
listen=YES
# line 123: change ( if use IPv4, IPv6 is off )
listen_ipv6=NO
# add at the last line
# specify root directory ( if don’t specify, users’ home directory become FTP home directory)
local_root=public_html
# use localtime
use_localtime=YES
# turn off for seccomp filter ( if you cannot login, add this line )
seccomp_sandbox=NO
修改chroot_list
vi /etc/vsftpd/chroot_list
# add users you allow to move over their home directory
fedora
开启并开始服务:
systemctl start vsftpd.service
systemctl enable vsftpd.service