ftp 错误汇总


1 >  vsftp 500  OOPS: cannot change directory:/home/xmh632


解决方法:在终端输入 setsebool ftpd_disable_trans 1

然后重启vsftp服务 service vsftpd restart

如果输入上述命令时出现:Could not change active booleans: Invalid boolean

是因为SELinux的问题接着在终端输入:setsebool ftp_home_dir=1

重启vsftp服务即可解决问题


2>

1 在终端输入命令:

setsebool ftpd_disable_trans 1
service vsftpd restart

就OK了!但是下次重启了还会这样・・

2 在终端输入命令:setsebool -P ftpd_disable_trans 1

service vsftpd restart这样每次重启机器都可以了・

原因就在SELinux。




[root@rhel632 /]# ftp 192.168.1.7

Connected to 192.168.1.7 (192.168.1.7).

220 Welcome to xueyue8.com FTP service.

Name (192.168.1.7:root): xmh632

331 Please specify the password.

Password:

500 OOPS: cannot change directory:/home/xmh632

Login failed.

ftp> exit

[root@rhel632 /]# setsebool ftpd_disable_trans 1

Could not change active booleans: Invalid boolean

[root@rhel632 /]# setsebool ftp_home_dir=1

[root@rhel632 /]# ftp 192.168.1.7

Connected to 192.168.1.7 (192.168.1.7).

220 Welcome to xueyue8.com FTP service.

Name (192.168.1.7:root): xmh632

331 Please specify the password.

Password:

230 Login successful.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp>


你可能感兴趣的:(ftp)