Install VSFTPD components, after installation, there are/etc/vsftpd/vsftpd.conf files for configuration, and a new FTP user and FTP group, pointing to the home directory is/var/ftp, The default is Nologin (cannot log on to the system) 1.yum -y install vsftpd installation 2.SERVICE VSFTPD start start 3. Cancel Anonymous login vi /etc/vsftpd/vsftpd.conf put the first line of anonymous_enable=yes NO4. Create a new user (Ftpuser is a user name, you can) useradd ftpuser Change password (input two) passwd ftpuser such a user is finished, Can use this login, remember to use ordinary login do not use Anonymous. The default path after logging in is /home/ftpuser.5. Open 21 Port ftp The default port for the 21,ftp://122.11.49.11 extranet is available to go up, But found unable to return to the directory, also can not upload, because SELinux mischief. 6. Modify selinux getsebool -a | grep ftp Execute the above command, and then return the results to see that both lines are off, representing, no open extranet access .... allow_ftpd_full_access off .... .... ftp_home_ dir off just turn the above into on. Execute setsebool -p allow_ftpd_full_access 1 setsebool -P ftp_home_dir 1 re-start vsftpdservice Vsftpd restart This should be OK (if, still not, see if the FTP client tool used the Passive mode access, such as prompt Entering passive mode, On behalf of the passive mode, the default is not, because the ftp passive mode is blocked by iptables, the following will say how to open, if you do not bother to open, see if your client FTP port mode options, or the passive mode option is removed. If the client is still not working, see if the host computer on the client has a firewall, shut down) problem: 1.vsftod Login error 500 opps:could not open chroot () list file:/etc/vsftpd/chroot_list set up this user list without having to write the content to "vi /etc/vsftpd/chroot_list" with the command, Create a new file, and then enter some text to save the exit. 2. Input: getsebool -a | grep ftp setenforce: selinux is disabled Solution: VI /etc/selinux/config changed to: selinux=1 must restart Linux, no restart is not able to immediately open SELinux
This article is from the "Chuncoquan" blog, make sure to keep this source http://kequan.blog.51cto.com/10815369/1784942
Linux FTP settings