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

如果使用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.

posted @ 2013-06-20 20:03  lianche  阅读(1561)  评论(0编辑  收藏  举报