设置vsftpd本地普通用户访问

egrep -v "^$|^#" /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
ascii_upload_enable=YES
ascii_download_enable=YES
chroot_local_user=YES
allow_writeable_chroot=YES
listen=YES
use_localtime=YES
local_root=/var/ftp/test
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES

 

测试:

lftp user:pwd@localhost:21

ftp://ip

 

posted on 2021-09-07 09:52  BillyLV  阅读(138)  评论(0编辑  收藏  举报

导航