# VI Sample pure-ftpd.conf # limit each user to their own home directory Chrooteveryone Yes # Compatible with IE and other non-normalized FTP clients. Default: No Brokenclientscompatibility Yes # Maximum number of user connections. Default: 50 Maxclientsnumber 2000 # background mode (daemon mode) Daemonize Yes # The same IP allow the number of connections (can prevent thunder, express and other programs crazy thread). Default: 8 Maxclientsperip 20 # If you want to log all client commands, set to ' yes ' this option to synchronize the log to the log server. Default: No Verboselog Yes # Show hidden files. Default: Yes Displaydotfiles Yes # The user is not allowed to authenticate. As an anonymous FTP server only. Default: No AnonymousOnly No # Anonymous user connections are not allowed. Only authenticated user connections are allowed. Default: No Noanonymous No # This option is to say what type of log synchronization is written to the syslog. # types include (auth, authpriv, daemon, FTP, security, user, local*) # The default is "FTP" If you do not want to display the FTP log in/var/log/message. Then disable: "None" Syslogfacility None # Show Cookies # Fortunesfile/usr/share/fortune/zippy # The host name is not resolved in the log file. The more verbose the log, the greater the bandwidth required. If the server's # DNS resolution is problematic or the server is overloaded, it is recommended that the option be configured yes. The default is: Yes Dontresolve Yes # Maximum idle time. Units: minutes (default = 15 minutes) MaxIdleTime 15 # LDAP configuration file # ldapconfigfile/etc/pureftpd-ldap.conf # MySQL configuration file (see README for details). MySQL) # mysqlconfigfile/etc/pureftpd-mysql.conf # Postgres configuration file (see README for details). Pgsql) # pgsqlconfigfile/etc/pureftpd-pgsql.conf # Puredb User Database (see README for details). Virtual-users) # puredb/etc/pureftpd.pdb # PURE-AUTHD Socket Path (see README for details). Authentication-modules) # Extauth/var/run/ftpd.sock # If you want to use Pam validation, uncomment the line below # pamauthentication Yes # If you want to use/etc/passwd file validation. Uncomment the following line # unixauthentication Yes # Note: ldapconfigfile, Mysqlconfigfile, Pamauthentication and Unixauthentication # Only one is enabled, but they can be used jointly. For example, you enabled the Mysqlconfigfile and then enabled the # unixauthentication so at the same time only SQL Server is available. If the SQL authentication fails, # For example, the user did not find, then the system will retry the other way to verify, this time it will find/etc/passwd and #/etc/shadow file. If the result of the SQL validation is a bad password, then the following # verified. As a result, the validation method can write multiple, but at the same time only one work, and when the verification is not found # The next authentication method is not performed until the information is made. However, validation is terminated when validation errors are made. # ' ls ' recursive limit. The first parameter is the maximum number of files that can be displayed. The second parameter is the subfolder depth Limitrecursion 2000 8 # Whether anonymous users can create new folders Anonymouscancreatedirs No # If the system load exceeds the number given below, anonymous users will not be able to download Maxload 4 # The range of ports assigned to it in passive connection mode. Facilitates the development of firewall configurations. PassivePortRange 45000 50000 # force an IP address to work in PASV/EPSV/SPSV mode. -For NAT. # FORCEPASSIVEIP 192.168.0.1 # Anonymous user upload/download rate # anonymousratio 1 10 # Upload/download rate for all users. This option can replace the above option # userratio 1 10 # prohibit downloading of files with owner ' FTP '. For example, files that were not authenticated by the local administrator after the anonymous user was uploaded. Antiwarez Yes # The IP address and port used for listening (default = All IP and port 21). # Bind 127.0.0.1,21 # Anonymous user maximum bandwidth limit, Unit kb/s Anonymousbandwidth 200 # Maximum bandwidth limit for all users (including anonymous) units KB/S # There's no need to open anonymousbandwidth and userbandwidth at the same time # Userbandwidth 8 # New File default mask. < file mask >:< directory mask > # can be set to 177:077 for security purposes Umask 133:022 # Verify minimum uid for logged-in user Minuid 100 # Allow authenticated users only for FXP transmissions ALLOWUSERFXP No # Allow anonymous FXP transmissions for anonymous and non-anonymous users ALLOWANONYMOUSFXP No # users cannot delete/write hidden files, even if they are not allowed by the owner of the file. # If the Trustedgid option is a member of the group that owns the enabled file, the hidden file can be accessed Prohibitdotfileswrite No # Prohibit reading of hidden files (such as. History,. SSH ...) Prohibitdotfilesread No # never overwrite files. If the uploaded file already exists, the system will automatically name it file.1, file.2, file.3, ... Autorename Yes # do not allow anonymous users to upload files (no = Allow upload) Anonymouscantupload No # only non-anonymous user connections from the following IP addresses are allowed. You can use this command to open a few public # network IP to provide anonymous FTP, while retaining a private firewall protected IP for remote management. You # You can also allow only one intranet address to authenticate, while providing a purely anonymous FTP service on another IP. #TrustedIP 10.1.1.1 # If you want to add a PID tag to each line in the log, remove the comments from the downlink #LogPID Yes # Create an additional log file with an Apache-like format, such as: # Fw.c9x.org-jedi [13/dec/1975:19:36:39] "get/ftp/linux.tar.bz2" 200 21809338 # This log file can be processed by WWW Traffic analysis tool Altlog Clf:/var/log/pureftpd.log # Create an extra log file for the statistic report using the optimized format # Altlog Stats:/var/log/pureftpd.log # Create an extra log file using the standard format of the PDF. (Compatible with most commercial log analyzer) # Altlog W3c:/var/log/pureftpd.log # The chmod command is not allowed. Users cannot modify the properties of their uploaded files #NoChmod Yes # Allow users to recover and upload files, but not be able to remove them #KeepAllFiles Yes # Automatically create a directory if the user's home directory does not exist #CreateHomeDir Yes # Enable virtual disk quotas. The first parameter is the maximum number of files, the second parameter is a total size, in megabytes # such as: 1000:10 limit each user maximum file 1000 and not more than 10MB #Quota 1000:10 # If you add the ' standalone ' option when compiling pure-ftpd, you can change the PID file location # default Directory/var/run/pure-ftpd.pid #PIDFile/var/run/pure-ftpd.pid # If you add the Pure-uploadscript option when compiling pure-ftpd, this instruction will make # pure-ftpd send information about new uploads to/var/run/pure-ftpd.upload.pipe, # so pure-uploadscript can read and call a script to handle the new uploads. #CallUploadScript Yes # This option is useful for anonymously uploaded servers. /var/ftp in/var, you need to keep a certain # disk space to protect log files. When the disk partition is in use more than X, the new upload is not accepted. Maxdiskusage 99 # If you don't want the user to rename the file, set it to Yes #NoRename Yes # ' Customer proof ': option to prevent error commands that ordinary users perform by mistake # such as: ' chmod 0 public_html ', this is a valid command, but after the execution of the command, the user # to lock their own files, then your trouble comes, you need to give users to solve this # Some stupid problems caused by the user. If you're sure that your users have some UNIX basics # knowledge, then this option is not necessary to set up, or it is recommended to enable it. Customerproof Yes # All users are doing the same limit. Only the--with-peruserlimits option is added at compile time # before it can be enabled. The format is: < maximum licensed process >:< anonymous user Max process for each user > # For example: 3:20 the same authenticated user can have a maximum of 3 simultaneous processes. And at the same time most # there can be only 20 anonymous user processes # peruserlimits 3:20 # When a file is uploaded, the old file will not be moved until a file with the same name is already on the server # will not be deleted. The uploaded part will be temporarily placed in a temporary file before the new file is uploaded. # in, when the upload is completed will automatically switch to the new uploaded files. For example: When there is a PHP on the server # The script is executing, but I'm uploading a new PHP script now, so when I'm finished uploading # old file switch to new file. Instead of putting old files in the beginning of the upload, as some programs do # covered, so the goal is to minimize the program errors that are running. This option # cannot be used at the same time as virtual quotas. # notruncate Yes # This option can accept 3 optional values: # 0: Disable SSL/TLS encryption Layer (default). # 1: Accept traditional and encrypted connections at the same time # 2: Deny connections without SSL/TLS security authentication, including anonymous connections # do not blindly uncomment without identifying the following three questions: # 1 whether SSL/TLS support (--WITH-TLS) is enabled when compiling pureftpd, # 2 Whether a valid certificate is included in the system # 3 after opening, only compatible clients can log on # TLS 1 # in standalone mode only listens for IPV4 address (same as disabled IPv6) # default is IPV4 and IPV6 simultaneously monitor # ipv4only Yes # in standalone mode only listens for IPV6 address (same as disabled IPv4) # ipv6only Yes # UTF-8 support for file name # Filesystemcharset Big5 # Clientcharset Big5 |