我的vsftp配置

重装ubutun后重新配置我的vsftp,把主目录设在 /mnt下,下面是映射的三个盘disk1, disk2, disk3。

网上重新找 配置 vsftp的教程,发现大部分都有问题,参考了别人的一个配置后写了个

listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=000
local_root=/work/ftp
max_clients=5
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
idle_session_timeout=600
data_connection_timeout=120
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=ftp #注意这个, =号后面是 ftp
rsa_cert_file=/etc/ssl/private/vsftpd.pem
chroot_local_user=YES

这样, passwrd ftp后,就可以用ftp软件去进入目录了, 并用不能进其他目录

你可能感兴趣的:(我的vsftp配置)