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服务即可解决问题

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值