# Anonymous users anonymous_enable = NO # anon_mkdir_write_enable = YES # anon_upload_enable = YES # Local users can log in # local_enable = YES # is writable write_enable = YES # VSFTPD operate independently (with a vsftpd /etc/vsftpd.conf &) and download speed restrictions listen = YESmax_clients = 600max_per_ip = 5tcp_wrappers = YESconnect_from_port_20 = YES # anon_max_rate = 51200 (56k) # local_max_rate = 512000 (560k) # how to change the path # anon_root = how / var / ftp / pub # local_root = / var / ftp # arbitrarily increase One user directory can reach # how to restrict the disk limit with quota to / etc / fstab, then limit the specific users with quota to limit users
supplement:
Supplement 1: How to limit users in the catalog?
We have to build a file yourself, in the / etc directory
#touch /etc/vsftpd.chroot_list
Take Beinan users as an example
In the vsftpd.chroot_list this file, add Beinan to it.
Then change the /etc/vsftpd/vsftpd.conf file, find the following two lines
# chroot_list_enable = yes
# chroot_list_file = / etc / vsftpd.chroot_list
Take the front ##, that is, this
Chroot_list_enable = yes
Chroot_list_file = / etc / vsftpd.chroot_list
If there is no such two lines, you can add it to you.
After setting up, re-vsftpd servers.
Supplement 2: Open the log function of the VSFTP server:
Try the # number in front of the xferlog_file below, that is, open the VSFTP's log function so that we can view vsftpd.log in / var / log directory. This is VSFTP log function, which is extremely important for us.
# xferlog_file = / var / log / vsftpd.log
Add 3: How to make the bound IP to VSFTP? That is, how to let users access FTP through an IP. In fact, this feature is very interesting. If binding is the IP of the intranet, there is no way to access it outside. If binding is an external service IP, the intranet can only access FTP through an external service IP.
Plus a line in /etc/vsftpd/vsftpd.conf, take my local area network as an example, please see the operating environment in the first post, so that the external network can not access my FTP, the intranet may also pass 192.168.0.2 Access FTP
Listen_address = 192.168.0.2
After adding, restart the VSFTP server