One, demand
1, Virtual User Login
As a result of the previous configuration successful postfix+mysql virtual user login, realized the benefits and flexibility of using virtual users, so this time also consider the use of virtual users, and the FTP virtual user information is also stored in MySQL, so later use PHP and so on to write some web GUI management program, Unified management of users, it is quite convenient.
2, restricting Anonymous Logon to IP
Open anonymous logins, but allow only certain IP logins to be anonymous
3, different users, different directories, different permissions
Sounds a bit like tongue twister, for example, there are 2 users, the normal user (normal) and the Administrator (Admin), FTP has 2 directories, respectively, incoming and pub, to achieve the following permissions set:
Code: incoming pub
normal 读/写 只读
admin 读/写 读/写
4, manage Web site via FTP
The server also set up Apache, and the webmaster is not very familiar with Linux, but also do not want to open an account to the webmaster, lest he log into the system, the system messed up 78 bad, so refer to the Internet to provide the popular practice of virtual host, is through FTP to manage the site , so you need to provide a Web site administrator login ftp for Web site management account.
5, extended function
Pending..
Second, choose FTP Server Software
Linux set up an FTP site, there are many excellent FTP server software to choose from, such as WU-FTPD,PURE-FTPD,PROFTPD and vsftpd, and so on, to choose a suitable for their own needs of the FTP server software, but also need to pay some brains to do, for me, Select VSFTPD (very secure FTP daemon), mainly for the following two reasons:
1, Selection principle one
Some people say, which FTPD is you most familiar with which, but because I have not previously installed in Linux FTP site experience, so, for me, everything is a new starting point. On the official homepage of VSFTPD, I see the official Debian FTP, RH official FTP, etc. are used vsftpd, so "drift" it, so that looks like a face some ~
2, Choice principle Two
The 2nd very much depends on the name of VSFTPD (very secure FTP daemon), because it is very safe ftp software, haha, and then Debian official FTP all use VSFTPD, choose it should be right ~
PS:FTP Server Software selection can refer to "Brother Bird's Linux private dishes in the simple VSFTPD server Erection" article.