In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what skills you have in using vsFTPd, and the editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
I. connections to anonymous servers (independent servers)
Add the following items to the / etc/vsftpd/vsftpd.conf configuration file:
Anonymous_enable=yes (allows anonymous login) dirmessage_enable=yes (displays the contents of .message under the directory when changing directories) local_umask=022 (local file permissions on the FTP Default is 077) connect_form_port_20=yes (data connection with FTP data port enabled) * xferlog_enable=yes (activate uploaded and downloaded logs) xferlog_std_format=yes (using standard log format) ftpd_banner=XXXXX (welcome message) pam_service_name=vsftpd (authentication method) * listen=yes (stand-alone VSFTPD server) *
Function: can only connect to FTP server, not upload or download
Note: all the welcome messages related to the log are optional. No matter what account is marked with an asterisk, it is a basic option for FTP.
Enable anonymous FTP server upload permission
Add the following information to the configuration file:
Anon_upload_enable=yes (Open upload permission) Anon_mkdir_write_enable=yes (you can create a directory while uploading files in this directory) Write_enable=yes (enable local user write permission) Anon_other_write_enable=yes (anonymous account can have deletion permission)
Enable the permission to download from anonymous server
Just add the following information to the configuration file:
Anon_world_readable_only=no
Note: pay attention to the properties of the folder. Anonymous account is the permission for other (other) users to turn on its read and write execution.
(r) read-download (W) write-upload (X) execute-if you don't open the FTP directory, you can't get into it.
Second, the connection of ordinary users' FTP server (stand-alone server)
Just add the following information to the configuration file:
Local_enble=yes (local account can log in) Write_enable=no (local account does not have the right to delete and modify files after login)
Function: you can log in to the vsftpd server with a local account and have the permission to download and upload
Note: after the anonymous login information is prohibited, the anonymous server can still log in, but can not upload or upload.
Third, the user's login is restricted to other directories, only to its home directory.
Set all local users to execute chroot
Chroot_local_user=yes (all local accounts can only be in their own directory)
Set the specified user to execute chroot
Chroot_list_enable=yes (the list in the file can be called) Chroot_list_file=/ any specified path / vsftpd.chroot_list
Note: vsftpd.chroot_list is not created and needs to be added by yourself. If you want to control the account, you can directly add the account in the file.
IV. Restrict local users from accessing FTP
Userlist_enable=yes (use userlistlai to restrict user access) Userlist_deny=no (people on the list are not allowed to access) Userlist_file=/ specifies the path where the file is stored / (the path where the file is placed)
Note: userlist_enable=yes anonymous account cannot be logged in.
V. Security options
Idle_session_timeout=600 (seconds) (10 minutes after the user session is idle) Data_connection_timeout=120 (seconds) (2 minutes to disconnect the data connection idle) Accept_timeout=60 (seconds) (disconnect the client after 1 minute idle) Connect_timeout=60 (seconds) (interrupt 1 minute and then reconnect) Local_max_rate=50000 (bite) (local user transfer rate 50K) Anon_max_rate=30000 (bite) (anonymous user transfer rate 30K ) Pasv_min_port=50000 (change the data connection port of the client to Pasv_max_port=60000 50000 / 60000) Max_clients=200 (* connections of FTP) Max_per_ip=4 (* connections per IP) Listen_port=5555 (data connections from port 5555)
Check the process of who logged into FTP and killed it
Ps-xf | grep ftp kill process number
This is the end of this article on "what are the tips for using vsFTPd?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.