CentOS7服务器环境下vsftpd安装及配置方法

2019-01-16 22:06:40丽君

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服务器配置有所帮助。

您可能感兴趣的文章:

Centos 通过 Nginx 和 vsftpd 构建图片服务器的教程(图文)Centos6.9安装vsftpd并配置多用户的方法CentOS 7 安装vsftpd 服务器的具体操作步骤阿里云基于CentOS用vsftpd搭建FTP服务器阿里云服务器CentOS 6.3下快速安装部署 LAMP 、vsftpd 环境的方法在CentOS上搭建LAMP+vsftpd环境的简单指南Centos6.5全自动安装 vsftpd+dhcp+nfs+tftpCentOS 6.8 安装vsftpd的方法步骤