centos8 架设ftp服务器,将匿名用户的主目录更改出现500报错信息

这个问题发生在最新的这是由于下面的更新造成的:
- Add stronger checks for the configuration error of running with a writeable root directory inside a chroot(). This may bite people who carelessly turned on chroot_local_user but such is life.
从2.3.5之后,vsftpd增强了安全检查,如果用户被限定在了其主目录下,则该用户的主目录不能再具有写权限了!如果检查发现还有写权限,就会报该错误。
要修复这个错误,可以用命令chmod a-w /home/user(此目录可以更改成自己想要的位置)去除用户主目录的写权限(采用该方式,将用户主目录文件熟悉修改为#chmod 555)。
我的正确配置为:匿名访问
anonymous_enable=YES
no_anon_password=YES
local_enable=NO
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=NO
listen_ipv6=YES (centos8中的)
anon_root=/ftproot/ (此处的目录可以更改成自己的目录)
pam_service_name=vsftpd
userlist_enable=YES
banner_file=/etc/vsftpd/welcome.txt (增加一个欢迎词)

浙公网安备 33010602011771号