500 OOPS: could not read chroot() list file:/etc/vsftpd/chroot_list

ECS里的 Centos 7.2 时, 装了vsftpd,改错参数,出现以下问题:

500 OOPS: could not read chroot() list file:/etc/vsftpd/chroot_list

 

两种解决办法:

一是建立chroot_list文件,配置用户名,权限,比较麻烦,暂不细述,可以去度娘

 

二是非常简单的,懒人的做法,不安全,测试用是没问题

vim /etc/vsftpd/vsftpd.conf   #编辑vsftpd配置文件

(或者用gedit /etc/vsftpd.conf或者gksu gedit /etc/vsftpd.conf)

找到以下三行,注释掉就行可以了

chroot_local_user=YES
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd/chroot_list

改为

#chroot_local_user=YES
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list


重启FTP

systemctl restart vsftpd

(或者使用system vsftpd restart)

用户名可以正常进入,解决问题
--------------------- 
版权声明:本文为CSDN博主「kofterry」的原创文章,遵循CC 4.0 by-sa版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/kofterry/article/details/82871004

你可能感兴趣的:(嵌入式通信,ubuntu,ftp,主机ftp与ubuntu连接)