您的位置:首页 > 运维架构

ftp链接报错500 OOPS: cannot change directory:/home解决方法

2013-06-20 20:03 666 查看
如果使用setsebool -P ftpd_disable_trans 1

提示错误:

[root@linux115 vsftpd]# setsebool -P ftpd_disable_trans 1
libsemanage.dbase_llist_set: record not found in the database (No such file or directory).
libsemanage.dbase_llist_set: could not set record value (No such file or directory).
Could not change boolean ftpd_disable_trans
Could not change policy booleans

解决方法:

[root@linux115 vsftpd]# setsebool -P allow_ftpd_full_access 1
[root@linux115 vsftpd]# setsebool -P allow_ftpd_use_cifs 1
[root@linux115 vsftpd]# setsebool -P allow_ftpd_use_nfs 1
[root@linux115 vsftpd]# setsebool -P ftp_home_dir 1
[root@linux115 vsftpd]# setsebool -P httpd_enable_ftp_server 1
[root@linux115 vsftpd]# setsebool -P tftp_anon_write 1
[root@linux115 vsftpd]# service vsftpd restart
[root@linux115 vsftpd]# getsebool -a | grep ftp
allow_ftpd_anon_write --> off
allow_ftpd_full_access --> on
allow_ftpd_use_cifs --> on
allow_ftpd_use_nfs --> on
ftp_home_dir --> on
ftpd_connect_db --> off
httpd_enable_ftp_server --> on
sftpd_anon_write --> off
sftpd_enable_homedirs --> off
sftpd_full_access --> off
sftpd_write_ssh_home --> off
tftp_anon_write --> on

重启vsftpd,即可解决问题。

End.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐