CentOS7 vsftpd安装与配置 常见问题的记录
1.安装vsftp
yum -y install vsftpd 解决
2.允许root登录vsftpd
(1)修改 /etc/vsftpd/ftpusers,将root用#注释
(2)修改 /etc/vsftpd/user_list,将root用#注释**
3.上传文件,553 Could not create file
(1) 查看SELinux设置: getsebool -a | grep ftp要把allow_ftpd_full_access设置为on
4. 修改ftp的根目录只要修改/etc/vsftpd/vsftpd.conf文件即可:
加入如下几行:注:local_root 针对系统用户
anon_root针对匿名用户.
然后重启服务 service vsftpd restart
5.vsftpd: 500 OOPS:vsftpd: refusing to run with writable root inside chroot ()错误的解决方法
在vsftpd 配置文件vsftpd.conf中加入 allow_writeable_chroot=YES
6.vsftp上传文件可能需要关闭防火墙
systemctl stop firewalld.service
7.让vsftpd服务开机自启动
chkconfig vsftpd on