vsftp 500 OOPS: cannot change directory:/home/

来源:互联网 发布:八爪鱼微博软件 编辑:程序博客网 时间:2024/04/29 18:56

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

原创粉丝点击