配置文件/etc/vsftpd/vsftpd.conf
local_enable=YES
write_enable=YESlocal_umask=022dirmessage_enable=YESxferlog_enable=YES 开启FTP传输日志, 日志文件:/var/log/xferlogconnect_from_port_20=YESxferlog_std_format=YESchroot_user_enable=YES 将用户FTP登录的根目录限制在家目录chroot_list_enable=YES 若chroot_user_enable=NO时,开启此项, 则只有在chroot_list文件中的用户 FTP登录的根目录限制其家目录allow_writeable_chroot=YES 当开启限定 FTP登录的根目录限制其家目录时,此项需要打开, 或者将家目录的w权限取消local_root=/var/ftp/test 统一用户的FTP登录的根目录,看需求是否开启此选项还是上面的选项listen=NOlisten_ipv6=YESpam_service_name=vsftpdtcp_wrappers=YESuse_localtime=YESreverse_lookup_enable=NOuserlist_enable=YESuserlist_deny=NO注解#################
vsftpd.conf文件中userlist_enable和userlist_deny组合应用
1.当userlist_enable为NO时,ftpusers文件中的用户将禁止访问FTP服务器。因此ftpusers文件又被称为“禁止使用vsftpd的用户列表文件2.当userlist_enable为YES,userlist_deny为NO时,FTP服务器仅允许user_list中的用户访问3.当userlist_enable为YES,userlist_deny为YES时,ftpusers和user_list文件中的用户均不能访问FTP服务器