vsftp 3.0.2 配置 记录

匿名下载,登录后上传

 

sudo chown ftp:ftp /home/ftp

sudo chmod 755 /home/ftp/

sudo chmod 777 /home/ftp/pub

 

配置

 

anonymous_enable=YES

local_enable=YES

write_enable=YES

local_umask=022

anon_umask=022

anon_upload_enable=YES

anon_mkdir_write_enable=YES

dirmessage_enable=YES

use_localtime=YES

xferlog_enable=YES

 

connect_from_port_20=YES

chown_uploads=YES

chown_username=uftp

chroot_local_user=YES

chroot_list_enable=YES

chroot_list_file=/etc/vsftpd.chroot_list

secure_chroot_dir=/var/run/vsftpd/empty

pam_service_name=vsftpd

rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem

rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key

 

local_root=/home/ftp/pub

anon_world_readable_only=YES

anon_root=/home/ftp

 

 

你可能感兴趣的:(Linux)