FTP is the abbreviation for file Transfer Protocol (document Transfer Protocol), and Chinese is called "Interfax protocol". Used for two-way transmission of control files on the Internet. At the same time, it is also an application (application). There are different FTP applications based on different operating systems, and all of these applications follow the same protocol to transfer files. In the use of FTP, users often encounter two concepts: "Download" (Download) and "Upload" (Upload).
Generally in a variety of Linux distributions, the default with the FTP software is vsftp, from the various Linux distributions to vsftp recognition can be seen, vsftp should be a good FTP software.
Method/Step
1. Check and install VSFTPD software
Use the following command #rpm-qa |grep VSFTPD can detect if the VSFTPD software is installed,
If it is not installed, install it using the Yum command.
2. Start the service
Using VSFTPD software, mainly includes the following commands:
Start ftp command #service vsftpd start
Stop FTP command #service vsftpd stop
Restart FTP command #service vsftpd restart
3, the VSFTPD configuration
There are three main FTP configuration files, which are located in the/etc/vsftpd/directory, respectively:
Ftpusers This file is used to specify that those users cannot access the FTP server.
User_list the default account that the file uses to indicate that the FTP is not accessible by default
Vsftpd.conf VSFTPD's master configuration file
4, take the anonymous user as an example, we remove the configuration file vsftpd.conf inside the following
Anon_upload_enable=yes
Anon_mkdir_write_enable=yes
Two previous # numbers, you can complete the configuration of anonymous users, the anonymous user can log in both upload, download files. Remember to restart the service after modifying the configuration file.
5. Creation and use of non-anonymous accounts
VSFTPD services are associated with system users, such as when we create a system user named Test, the user can log on by default configuration,
After logging in to create a folder named "AA" in the page, we can also see the same file in the home directory of the server test user.
Groupadd Test
Useradd-g test-g Root Test
passwd nctest
echo "Test" | passwd Test--stdin
Sed-i ' s/^root$/#root/g '/etc/vsftpd/ftpusers//Remove the limit login for root
Sed-i ' s/^root$/#root/g '/etc/vsftpd/user_list
/ETC/INIT.D/VSFTPD restart
FTP setup under Linux