530 This FTP server is anonymous only vsftp服务器登录失败解决方案 vsftp 500 OOPS: cannot change directory:/hom

用本机用户登录vsftp出现错误:

root@ubuntu:~#ftpftp> open 127.0.0.1Connected to 127.0.0.1.220 (vsFTPd 2.3.5)Name (127.0.0.1:pipi):530 This FTP server is anonymous only.Login failed.ftp> quit

登录失败原因:
vsftp服务器安装后默认不允许本地用户登录,出现该错误,电脑,需要修改vsftp配置文件。

解决:

    vim /etc/vsftpd.conf   vi /etc/vsftpd.conf

Now, the following lines will be commented, uncomment them.

将local_enable=YES, write_enable=YES前的#注释取消;
local_enable=YES    – this lets the local users login via FTP
write_enable=YES   – this lets the users upload files

在anonymous_enable=YES前加上#注释
Save and quit the file.


重启vsftp服务:

    /etc/init.d/vsftpd restart

root@ubuntu:~#ftpftp> open 127.0.0.1Connected to 127.0.0.1.220 (vsFTPd 2.3.5)Name (127.0.0.1:pipi): pipi331 Please specify the password.Password:230 Login successful.Remote system type is UNIX.Using binary mode to transfer files.ftp> 

from:

ref:530 This FTP server is anonymous only. Login failed.


登陆ftp时再输入用户名和密码出现:500 OOPS: cannot change directory:/home/**********

解决方法:在终端输入 setsebool ftpd_disable_trans 1 然后重启vsftp服务 service vsftpd restart 如果输入上述命令时出现:Could not change active booleans: Invalid boolean 是因为SELinux的问题接着在终端输入:setsebool ftp_home_dir=1 重启vsftp服务即可解决问题

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章