In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to use pure-ftpd to build ftp server", in daily operation, I believe many people have doubts on how to use pure-ftpd to build ftp server, Xiaobian consulted all kinds of information, sorted out simple and easy to use operation methods, hope to answer "how to use pure-ftpd to build ftp server" doubts help! Next, please follow the small series to learn together!
download and install
apt-get install pure-ftpd
configured
Pure-ftpd is configured in a special way, not with configuration files but with command-line parameters, which is a bit weird. However, the author of pure-ftpd still provides a wrapper for users who prefer configuration files. You can man pure-ftpd-wrapper. The wrapper in Debian/Ubuntu is strange, it is in/etc/pure-ftpd/conf to set the item as the file name, the setting value of the item as the content of the file, if you need to set ClientCharset=gbk, create a file named " ClientCharset ", the content is "GBK".
Generally, the following parameters can be used:
ChrootEveryone yes #Limit all users to BrokenClientsCompatibility in their home directories no #Compatible ie etc. Comparison of non-normalized ftp client MaxClientsNumber 50 #Maximum number of simultaneous users allowed on server Daemonize yes #Run MaxClientsPerIP as a daemon process 8 #Number of users allowed to connect simultaneously to the same IP VerboseLog no #If you want to log all customer commands, set this command to yesDisplayDotFiles yes #List hidden files anonymousOnly even if client does not send '-a' option no #does not allow authenticated users, only as a public anonymous FTPNoAnonymous yes #Anonymous connections are not allowed, only authenticated users are allowed to use SyFacility auth #Log DontResolve yes #host name MaxIdleTime is not resolved in log file 15 #Maximum idle time allowed for clients (minutes) PureDB /etc/pureftpd.pdb #PureDB user database LimitRecursion 10000 8 Recursion limitation of #ls command. The first parameter gives the maximum number of files to display. The second parameter gives the maximum subdirectory depth Anonymous CanCreateDirs no #Allow anonymous users to create new directories MaxLoad 4 #Anonymous users are prohibited from downloading PassivePortRange if the system loaded exceeds the following value 30000 50000 If these two parameters are enabled, FTP will work in passive mode. 30000 50000 are the available ports that the server returns to the client in passive mode after the client connects to the server. ForcePassiveIP 172.30.51.200 IP transmitted in passive mode, write your own public network IP, it is best to configure, public cloud may return to the client switch IPtiWarehouse yes #do not accept downloads of files owned by ftp MinUID 100 #Minimum group ID (UID) that authenticates users allowed to log in. Here, pay attention to the UIDAllowUserFXP when creating users. no #Allow FXP transfers only for authenticated users AllowAnonymous FXP no #Allow anonymous FXP transfers for anonymous and non-anonymous users ProhibitDotFilesWrite no #Prevent users from deleting and writing dot files (filenames with. ProhibitDotFilesRead no #Prevent reading dot files AutoRename no #Never overwrite files. When the uploaded file name has the same name as the file in the server, it will be renamed anonymousCantUpload automatically. no #Do not allow anonymous users to upload files (no = Allow uploads) MaxDiskUsage 99 #Protect log files. When the disk partition is more than x percent used, it will no longer accept new uploads CreateHomeDir yes #automatically create homedir when virtual user logs in for the first time add user--create system user and ftp home directory # groupadd -g 7777 pure-ftpd # pure-ftpd can be customized for group name # useradd -g 7777 -u 7777 -d /var/empty pure-ftpd #Two 7777 are UID and GID respectively, note MinUID# mkdir /ftp/# chown pure-ftpd:pure-ftpd /ftp configured above #Configure folder permissions--Create ftp virtual users and associate them with system users via uid and gid # pure-pw useradd xixi -u7777 -g7777 -d /ftp #Two 7777 are UID and GID respectively, note MinUID configured above--Create user database, execute this command to update user database # pure-pw mkdb# pure-pw list every time a user is changed, i.e. added or deleted #is to see the user list # pure-pw show tony #View details of this user tony # pure-pw passwd tony -m #change tony's password # pure-pw usermod #Modify user #Most important, be sure to create soft connection, otherwise prompt user authentication failure # ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/60puredb Restart service
service pure-ftpd restart
At this point, the study on "how to use pure-ftpd to build ftp server" is over, hoping to solve everyone's doubts. Theory and practice can better match to help you learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!
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.