Here is my /etc/vsftpd.user_list######################################################################################################################################################################################################################################################################################## ########################################################################################################################################################################################################################################### ######################################################################################################################################################################################################################################################################################################## ################# / etc / vsftpd.ftpusers You can use the system's own file /etc/vsftpd.chroot_list content to establish system user FTPUSER, join him to FTP group And change the last field of the / etc / passwd to / sbin / nologin (forbidden local login). Setting / var / ftp owner and all groups of root, permission is 755 settings / var / ftp / pub The owner is ROOT, all groups are FTP, permission is 775 Basic configurations to this vsftpd. Here we accept anonymous user anonymous and local user ftpuser's request. Anonymous can only download, ftpuser can download and upload. They log in All in the / var / ftp directory and cannot leave this directory (by chroot). FTPUser can create directory and upload files in the / var / ftp / pub directory, the permission of the upload file is 755 (set local_umask = 022). The transmission ratio of anonymous users is 50kb / s, the transfer ratio of FTPuser is 500kb / s. The maximum number of customers connected can be connected to 100, and the maximum number of customers connected to each IP is 5. If you need to make local users ftpput can login, only need Join him to /etc/vsftpd.user_list, to make him upload, just join the FTP group. Next we can establish the .Message file in each directory (including / var / ftp) under / var / ftp, so When the user enters this directory, VSFTPD will display. Message content, you can write a welcome information or precautions here. You can edit the / etc / vsftpd / banner to create Login, welcome information, let your FTP more Personalization. Below we use Quota to join disk limit for FTPuser, avoid malicious users with spam filled with your hard drive. Suppose / var / ftp In the root partition / (/ dev / hda5), the / etc / fstab is partitioned The 4th field of the record is changed to Defaults, USRQUOTA, so this record looks Similar to this: label = / / ext3 Defaults, USRQUOTA 1 1 then restart the system after entering the following command: quotacheck -Acu # Check the file system enabled and established a current disk for each file system Quotacheck -avu # Generate the current disk usage of each enabled file system EDQUOTA FTPUSER # Set the disk quota for the user FTPUSER This time the system will open the quota file in the default text editor (VI), showing like this: Disk quotas for User FTPuser (Uid 501): FILESYSTEM BLOCKS SOFT HARD INODES SOFT HARD / DEV / HDA5 0 0 0 0 0 0 The first column is the name of the file system that enables quotas. The second column shows the number of blocks currently used. Then two columns are used to set the soft and hard block limits that the user is on the file system. The Inodes column shows the number of I nodes currently used. The last two columns are used to set the soft hard I node limit of the user on the file system. The hard limit is the absolute maximum of the disk space you can use by the user or group. After the limit is reached, the disk space cannot be used by the user or group. The maximum disk space that can be used by a soft definition. Unlike hard limits, the soft limit can be exceeded during a period of time. This period is called a transition period (GRACE PERIOD). The transition period can be represented by seconds, minutes, hours, days, numbers, numbers, or months.