一、问题描述
在安装vsftpd默认情况下,root用户是不能进行登陆的。
二、解决方法
配置vsftpd用户,启用root用户.
-
#cd /etc/vsftpd
-
#vi ftpusers
注释掉root,然后修改user_list文件
#vi user_list
注释掉root,然后配置防火墙
关闭防火墙:systemctl stop firewalld.service
开机不开启防火墙:systemctl disable firewalld.service
重启vsftpd: root@~:#systerctl restart vsftpd.service
开机自启动:root@~:#systemctl enable vsftpd.service
最后还的配置下selinux
getsebool -a | grepftp
setsebool -P ftpd_full_access on
在win中ping的IP地址,
然后DOS中 ftp 【Linux的IP地址】
用户名:root
密码:【这个是自己的虚拟机开启密码】