- 论坛徽章:
- 0
|
Centos(装在虚拟机上)上,防火墙已经关闭,系统中有用户sq,登陆时用sq
1、登陆能成功但非常慢
2、想获取文件出错,错误如下。(/home/ftp和里面的文件已经是777)
3、希望能下载后能删掉这个文件
4、不能限制sq只能在/home/ftp的功能。 (配置文件中已经设置)
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
ftptest
226 Directory send OK.
ftp: 收到 19 字节,用时 0.00Seconds 19000.00Kbytes/sec.
ftp> GET ftptest
200 PORT command successful. Consider using PASV.
550 Failed to open file.
############修改的配置如下####################
anonymous_enable=NO
##############修改ftp目录####################
#本地用户登录后自动转到的ftp根目录但是要配合chroot_local_user=YES选项才会生效
chroot_local_user=YES
local_root=/home/ftp
anon_root=/home/ftp
#################修改用户###################################
#/etc/vsftpd/chroot_list需要自己创建
chroot_list_file=/etc/vsftpd/chroot_list
chroot_list_enable=YES
|
|