在启动vsftpd,有时会报错

在启动vsftpd,有时会报错:
C:>ftp 192.168.0.101
Connected to 192.168.0.101.
220 (vsFTPd 2.0.5)
User (192.168.0.101:(none)): frank
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/home/frank
Login failed.
ftp> ls
500 OOPS: child died
Connection closed by remote host.

解决方法是:
setsebool ftpd_disable_trans 1
setsebool ftp_home_dir=1
service vsftpd restart


在不熟悉SELnux前,把SELinux关掉也可以的。有时间研究下SELinux。
在想用SELinux但是又不熟悉的情况下可以把SELinux设置成Permissive,表示SELinux规则启动,但只是把违规的记录到log中。

原文地址:https://www.cnblogs.com/skyofbitbit/p/3688090.html