After installing the VSFTP software, the link FTP login prompts such error
Oops:cannot Change directory:/home/
The reason is that the CentOS system installed SELinux, because the default is not open FTP support, so access is blocked.
Solutions
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
My selinux is set as follows
[Root@localhost ~]# getsebool-a|grep FTP
Allow_ftpd_anon_write–> off
Allow_ftpd_full_access–> off
Allow_ftpd_use_cifs–> off
Allow_ftpd_use_nfs–> off
Ftp_home_dir–> on
Ftpd_connect_db–> off
Ftpd_use_passive_mode–> off
Httpd_enable_ftp_server–> off
Tftp_anon_write–> off
# Service VSFTPD Restart