The system is CentOS, the RH faction. I installed the VSFTPD installation, thought it was done, but the client access prompts the following error:
Oops:cannot Change Directory:/home/ftp
The reason is that his CentOS system installed SELinux, because the default is not open FTP support, so access is blocked.
View SELinux Settings
# Getsebool-a|grep FTP
Ftpd_disable_trans--> off
Or
Ftp_home_dir-->off
Use the Setsebool command to open
# Setsebool Ftpd_disable_trans 1
Or
# Setsebool Ftp_home_dir 1
View whether the current state is on state
# Getsebool-a|grep FTP
Ftpd_disable_trans--> on
Or
Ftp_home_dir-->on
Setsebool use the-p parameter without having to enter this command every time the boot is turned on
# setsebool-p Ftpd_disable_trans 1
Or
# setsebool-p Ftp_home_dir 1
# Service VSFTPD Restart
About the configuration of SELinux
such as off, just warning, coercion, etc. need to edit/etc/sysconfig/selinux default is mandatory
Reproduced to: http://winie.iteye.com/blog/401201