$ getenforce Enforcing [noaa@momiji ~]$ 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_fusefs --> off ftpd_use_passive_mode --> off httpd_enable_ftp_server --> off tftp_anon_write --> off tftp_use_cifs --> off tftp_use_nfs --> off
# setsebool -P ftpd_use_passive_mode on # # 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_fusefs --> off ftpd_use_passive_mode --> on httpd_enable_ftp_server --> off tftp_anon_write --> off tftp_use_cifs --> off tftp_use_nfs --> off
$ ftp hostName Connected to hostName. 220 (vsFTPd 2.2.2) Name (hostName:xxx): yyy 331 Please specify the password. Password: 500 OOPS: cannot change directory:/home/yyy Login failed. ftp>
# setsebool allow_ftpd_full_access on
$ ftp hostName Connected to hostName. 220 (vsFTPd 2.2.2) Name (hostName:xxx): yyy 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files.