6、设置可能会碰到的问题
A、500 OOPS: vsftpd: refusing to run with writable root inside chroot()
| C:Usersxiaor>ftp 192.168.5.147 连接到 192.168.5.147。 220 (vsFTPd 3.0.2) 200 Always in UTF8 mode. 用户(192.168.5.147:(none)): ftpxrl 331 Please specify the password. 密码: 500 OOPS: vsftpd: refusing to run with writable root inside chroot() 远程主机关闭连接。 |
| [root@localhost vsftpd]# chmod 555 /home/vftproot/ |
| C:Usersxiaor>ftp 192.168.5.147 连接到 192.168.5.147。 220 (vsFTPd 3.0.2) 200 Always in UTF8 mode. 用户(192.168.5.147:(none)): ftpxrl 331 Please specify the password. 密码: 230 Login successful. ftp> |
B、530 Login incorrect
解决办法:/etc/pam.d/下面的vsftpd里面的/lib 修改为/lib64
5x:防火墙设置
3、配置ftp
打开etc/vsftpd.conf
将chroot_list_enable=NO改为chroot_list_enable=YES
设置被动模式端口
| pasv_min_port=30000 pasv_max_port=30000 |
5、防火墙设置
添加30000端口为被动模式用,如果要开户主动模式则需要添加20端口
| firewall-cmd --zone=public --add-port=30000/tcp --permanent firewall-cmd --reload |
通过命令:firewall-cmd --list-ports 查看开通的端口
希望本文所述对大家CentOS服务器配置有所帮助。








