In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to configure vsftpd, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
# Anonymous user
Anonymous_enable=NO
# anon_mkdir_write_enable=YES
# anon_upload_enable=YES
# whether local users can log in
# local_enable=YES
# whether it is writable
Write_enable=YES
# VSFTPD runs independently (using vsftpd / etc/vsftpd.conf &) and download speed limit
Listen=YES
Max_clients=600
Max_per_ip=5
Tcp_wrappers=YES
Connect_from_port_20=YES
# anon_max_rate=51200 (56k)
# local_max_rate=512000 (560k)
# how to change the path
# anon_root=/var/ftp/pub
# local_root=/var/ftp
# how to add a user directory at will
Can be achieved through useradd-d / path/dir-M name and chmod? / path/dir
# how to limit disk
Restrict / etc/fstab with quota, and then restrict specific users
How to restrict users to the home directory?
We need to create a file ourselves, in the / etc directory
# touch / etc/vsftpd.chroot_list
Take the user beinan as an example
In the vsftpd.chroot_list file, just add beinan.
Then change the / etc/vsftpd/vsftpd.conf file to find the following two lines
# chroot_list_enable=YES
# chroot_list_file=/etc/vsftpd.chroot_list
Get rid of the front #, that's it.
Chroot_list_enable=YES
Chroot_list_file=/etc/vsftpd.chroot_list
If you don't have such two lines, you can add them yourself.
Once set up, re-vsFTPD the server.
Turn on the logging function of the vsFTP server:
Correct the # in front of xferlog_file below, that is, turn on the log function of vsftp so that we can view vsftpd.log in the / var/log directory. This is the logging function of vsFTP, which is extremely important to us.
# xferlog_file=/var/log/vsftpd.log
Supplement 3: how to bind IP to vsFTP? In other words, how to make users access FTP only through a certain IP. Actually, this function is very interesting. If the IP of the intranet is bound, there is no external way to access it. If the IP of the external service is bound, the intranet can only access the FTP through the IP of the external service.
Add a line to / etc/vsftpd/vsftpd.conf, take my local area network as an example, please take a look at the operating environment in the first post, so that the external network cannot access my FTP, and the intranet may access FTP through 192.168.0.2
Listen_address=192.168.0.2
After adding, restart the vsFTP server
The above is all the content of this article "how to configure vsftpd". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.