⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pure-ftpd.8

📁 功能强大的ftp服务器源代码
💻 8
📖 第 1 页 / 共 2 页
字号:
.\".\" Troll-FTPd is Copyright 1995-2000 Trolltech AS, and Copyright 2001-2002 Arnt Gulbrandsen..\" Pure-FTPd is (C)opyleft 2001-2003 by Frank DENIS <j@pureftpd.org> and the Pure-FTPd team..\".\" Use, modification and distribution is allowed without limitation, warranty, or liability of any kind..\".TH "pure-ftpd" "8" "1.0.17" "Pure-FTPd Team" "Pure-FTPd".SH "NAME"pure\-ftpd \- simple File Transfer Protocol server.SH "SYNOPSIS".B pure\-ftpd [\-0] [\-1] [\-4] [\-a gid] [\-A] [\-b] [\-B] [\-c clients] [\-C cnx/ip] [\-d [\-d]] [\-D] [\-e] [\-E] [\-f facility] [\-F fortunes file] [\-g pidfile] [\-G] [\-H] [\-i] [\-I] [\-j] [\-k percentage] [\-K] [\-l authentication[:config file]] [\-L max files:max depth] [\-m maxload] [\-M] [\-n maxfiles:maxsize] [\-N] [\-o] [\-O format:log file] [\-p first:last] [\-P ip address or host name] [\-q upload:download ratio] [\-Q upload:download ratio] [\-r] [\-R] [\-s] [\-S [address,][port]] [\-t upload bandwidth:download bandwidth] [\-T upload bandwidth:download bandwidth] [\-u uid] [\-U umask files:umask dirs] [\-V ip address] [\-w] [\-W] [\-x] [\-X] [\-y max user sessions:max anon sessions] [\-Y tls behavior] [\-z] [\-Z].brAlternative style :.br\-0 \-\-notruncate.br\-1 \-\-logpid.br\-4 \-\-ipv4only.br\-a \-\-trustedgid.br\-A \-\-chrooteveryone.br\-b \-\-brokenclientscompatibility.br\-B \-\-daemonize.br\-c \-\-maxclientsnumber.br\-C \-\-maxclientsperip.br\-d \-\-verboselog.br\-D \-\-displaydotfiles.br\-e \-\-anonymousonly.br\-E \-\-noanonymous.br\-f \-\-syslogfacility.br\-F \-\-fortunesfile.br\-g \-\-pidfile.br\-G \-\-norename.br\-h \-\-help.br\-H \-\-dontresolve.br\-i \-\-anonymouscantupload.br\-I \-\-maxidletime.br\-j \-\-createhomedir.br\-k \-\-maxdiskusagepct.br\-K \-\-keepallfiles.br\-l \-\-login.br\-L \-\-limitrecursion.br\-m \-\-maxload.br\-M \-\-anonymouscancreatedirs.br\-n \-\-quota.br\-N \-\-natmode.br\-o \-\-uploadscript.br\-O \-\-altlog.br\-p \-\-passiveportrange.br\-P \-\-forcepassiveip.br\-q \-\-anonymousratio.br\-Q \-\-userratio.br\-r \-\-autorename.br\-R \-\-nochmod.br\-s \-\-antiwarez.br\-S \-\-bind.br\-t \-\-anonymousbandwidth.br\-T \-\-userbandwidth.br\-u \-\-minuid.br\-U \-\-umask.br\-V \-\-trustedip.br\-w \-\-allowuserfxp.br\-W \-\-allowanonymousfxp.br\-x \-\-prohibitdotfileswrite.br\-X \-\-prohibitdotfilesread.br\-y \-\-peruserlimits.br\-Y \-\-tls.br\-z \-\-allowdotfiles.br\-Z \-\-customerproof.SH "DESCRIPTION".B Pure\-FTPdis a small, simple server for the old and hairy File TransferProtocol, designed to use less resources than older servers, besmaller and very secure, and to never execute any external program..PPIt support most\-used features and commands of FTP (including many modernextensions), and leaves out everything which is deprecated, meaningless,insecure, or correlates with trouble..PPIPv6 is fully supported..SH "OPTIONS".TP.B \-0When a file is uploaded and there is already a previous version of thefile with the same name, the old file will neither get removed nor truncated.Upload will take place in a temporary file and once the upload is complete,the switch to the new version will be atomic. This option should not be usedtogether with virtual quotas..TP.B \-1Add the PID to the syslog output. Ignored if .B -f.B noneis set..TP.B \-4Listen only for IPv4 connections. MANDATORY FOR IPv4 NETWORKS ONOPENBSD, NETBSD, MICROBSD and FREEBSD 5..TP.B \-a gidRegular users will be chrooted to their home directories, unlessthey belong to the specified gid. Note that root is always trusted,and that chroot() occurs only for anonymous ftp without this option..TP.B \-AChroot() everyone, but root..TP.B \-bBe broken. Turns on some compatibility hacks for shoddy clients, and for broken Netfilter gateways..TP.B \-BStart the standalone server in background (daemonize)..TP.B \-c clientsAllow a maximum of.I clientsto be connected..I clientsmust be at least 1, and if you combine it with.B \-pit will be forced down to half the number of ports specified by.B \-p.If more than.I clientsare connected, new clients are rejected at once, even clients wishingto upload, or to log in as normal users. Therefore, it is advisableto use.B \-mas primary overload protection. The default value is 50..TP.B \-C max connection per ipLimit the number of simultanous connectionscoming from the same IP address. This is yet another very effective way toprevent stupid denial of services and bandwidth starvation by a single user.It works only when the server is launched in standalone mode (if you use asuper\-server, it is supposed to do that). If the server is launched with.B \-C 2, it doesn't mean that the total number of connection is limited to 2.But the same client, coming from the same machine (or at least the same IP),can't have more than two simultaneous connections. This features needs somememory to track IP addresses, but it's recommended to use it..TP.B \-dturns on debug logging. Every command is logged, except that the argumentto PASS is changed to "<password>". If you repeat.B \-d, responses too are logged..TP.B \-eOnly allow anonymous users to log in..TP.B \-EOnly allow authenticated login. Anonymous users are prohibited..TP.B \-f facilitymakes ftpd use.I facilityfor all.BR syslog (3)messages..I facilitydefaults to.BR ftp .The facility names are normally listed in.IR /usr/include/sys/syslog.h .Note that if.B \-fis not the first option on the command line, a couple of messages maybe logged to local2 before the.B \-foption is parsed.Use.B \-f noneto disable logging..TP.B \-F fortunes fileDisplay a funny random message in the initial login banner. Therandom cookies are extracted from a text file, in the standard.B fortuneformat. If you installed the.B fortunepackage, you should have a directory(usually.B /usr/share/fortune) with binary files (.B xxxx.dat) and text files(without the.B .datextension)..TP.B \-g pidfileIn standalone mode, write the pid to that file in instead of/var/run/pure-ftpd.pid ..TP.B \-GWhen this option is enabled, people can no more change the name of alreadyuploaded files, even if they own those files or their directory..TP.B \-HDon't resolve host names ("192.0.34.166" will be logged instead of"www.example.com"). It can significantly speed up connections and reducebandwidth usage on busy servers. Use it especially on public FTP sites..TP.B \-iDisallow upload for anonymous users, whatever directory permissionsare. This option is especially useful for virtual hosting, to avoid yourusers create warez sites in their account..TP.B \-I timeoutChange the maximum idle time. The timeout is in minutes, and defaults to 15..TP.B \-jIf the home directory of an user doesn't exist, automaticallycreate it. The newly created home directory belongs to the user, andpermissions are set according to the current directory mask. To avoid localattacks, the parent directory should never belong to an untrusted user..TP.B \-k percentageDisallow upload if the partition is more than.B percentagefull. Example:\-k 95 will ensure that your disk will never get filled more than 95% by FTPusers..TP.B \-KAllow users to resume and upload files, but NOT to delete them. Directoriescan be removed, but only if they are empty..TP.B \-l authentication:fileEnable a new authentication method. It can be one of :.I -l unixFor standard (/etc/passwd) authentication..I -l pamFor PAM authentication..I -l ldap:LDAP config fileFor LDAP directories..I -l mysql:MySQL config fileFor MySQL databases..I -l pgsql:Postgres config fileFor Postgres databases..I -l puredb:PureDB database fileFor PureDB databases..I -l extauth:path to pure-authd socketFor external authentication handlers..brDifferent authentication methods can be mixed together. For instance if yourun the server with.I -lpuredb:/etc/pwd.pdb -lmysql:/etc/my.cf -lunixAccounts will first be authenticated from a PureDB database. If it fails, aMySQL server will be asked. If the account is still not found is thedatabase, standard unix accounts will be scanned. Authentication methods aretried in the order you give the -l options..brSee the.I README.LDAPand.I README.MySQLfiles for info about the built\-in LDAP and SQL directory support..TP.B \-L max files:max depthAvoid denial\-of\-service attacks by limiting the number of displayed filesin a 'ls' and the maximum depth of a recursive 'ls'. Defaults are 2000:5(2000 files displayed for a single 'ls' and walk through 5 subdirectoriesmax)..TP.B \-m loadDo not allow anonymous users to download files if the load is above.I loadwhen the user connects. Uploads and file listings are still allowed,as are downloads by real users. The user is not told about this untilhe/she tries to download a file..TP.B \-MAllow anonymous users to create directories..TP.B \-n maxfiles:maxsizeEnable.B virtual quotasWhen virtual quotas are enabled, .ftpquota files are created, and thenumber of files for an user is restricted to 'maxfiles'. The max total sizeof his directory is also restricted to 'maxsize' Megabytes. Members of thetrusted group aren't subject to quotas..TP.B \-NNAT mode. Force.B activemode. If your FTP server is behind a NAT boxthat doesn't support applicative FTP proxying, or if you use portredirection without a transparent FTP proxy, use this. Well... the previoussentence isn't very clear. Okay: if your network looks like this:.brFTP\-\-NAT.gateway/router\-\-Internet.brand if you want people coming from the internet to have access to your FTPserver, please try without this option first. If Netscape clients canconnect without any problem, your NAT gateway rulez. If Netscape doesn'tdisplay directory listings, your NAT gateway sucks. Use\fB\-N\fRas a workaround..TP.B \-oEnable.IR pure\-uploadscript ..TP.B \-O format:log fileRecord all file transfers into a specific logfile, in an alternative format. Currently, three formats are supported : CLF,Stats and W3C..brIf you add.br\fB\-O clf:/var/log/pureftpd.log\fR.brto your starting options,Pure-FTPd will log transfers in\fB/var/log/pureftpd.log\fRin a format similar tothe Apache web server in default configuration..brIf you add.br\fB\-O stats:/var/log/pureftpd.log\fR.brto your starting options,Pure-FTPd will create accurate log files designed for traffic analyssoftware like ftpStats..brIf you add.br\fB\-O w3c:/var/log/pureftpd.log\fR.brto your starting options,Pure-FTPd will create W3C\-conformant log files..brFor security purposes, the path must be absolute(eg.\fB/var/log/pureftpd.log\fR, not \fB ../log/pureftpd.log\fR)..TP.B \-p first:lastUse only ports in the range \fIfirst\fR to \fIlast\fRinclusive for passive\-mode downloads. This means that clients willnot try to open connections to TCP ports outside the range \fIfirst \- last\fR,which makes pure\-ftpd more compatible with packet filters. Note thatthe maximum number of clients (specified with \fB\-c\fR)is forced down to \fI(last + 1 \- first)/2\fRif it is greater, as the default is. (The syntax for the port rangeis, conveniently, the same as that of.BR iptables)..TP.B \-P ip address or host nameForce the specified IP address in reply to a.B PASV/EPSV/SPSVcommand. If the server is behind a masquerading (NAT) box that doesn'tproperly handle stateful FTP masquerading, put the ip address of that boxhere. If you have a dynamic IP address, you can use a symbolic host name(probably the one of your gateway), that will be resolved every time a newclient will connect..TP.B \-q upload:downloadEnable an upload/download ratio for anonymous users (ex:.I \-q 1:5means that 1 Mb of goodies have to be uploaded to leech 5 Mb)..TP.B \-Q upload:downloadEnable ratios for anonymous and non\-anonymous users. If the.I \-aoption is also used, users from the trusted group have no ratio..TP.B \-rNever overwrite existing files. Uploading a file whoose namealready exists cause an automatic rename. Files are called xyz.1, xyz.2,xyz.3, etc..TP.B \-RDisallow users (even non-anonymous ones) usage of the CHMODcommand. On hosting services, it may prevent newbies from doing mistakes,like setting bad permissions on their home directory. Only root can useCHMOD when this switch is enabled..TP.B \-sDon't allow anonymous users to retrieve files owned by "ftp"(generally, files uploaded by other anonymous users)..TP.B \-S [{ip address|hostname}] [,{port|service name}]This option isonly effective when the server is launched as a standalone server.Connections are accepted on the specified IP and port. IPv4 and IPv6 aresupported. Numeric and fully\-qualified host names are accepted. A servicename (see /etc/services) can be used instead of a numeric port number..TP.B \-t bandwidthor.B \-t upload bandwidth:download bandwidthEnable process priority lowering and bandwidth throttling for anonymoususers. Delay should be in kilobytes/seconds..TP.B \-T bandwidthor.B \-T upload bandwidth:download bandwidthEnable process priority lowering and bandwidth throttling for *ALL*users.Pure\-FTPd should have been explicitely compiled with throttling supportto have these flags work.It is possible to have different bandwidth limits for uploads and fordownloads. '\-t' and '\-T' can indeed be followed by two numbers delimited bya column (':'). The first number is the upload bandwidth and the next oneapplies only to downloads. One of them can be left blank which means infinity.A single number without any column means that the same limit applies to uploadand download..TP.B \-u uidDo not allow uids below \fIuid\fRto log in (typically, low\-numbered \fIuid\fRsare used for administrative accounts)..B "\-u 100"is sufficient to deny access to all administrative accounts on manylinux boxes, where 99 is the last administrative account. AnonymousFTP is allowed even if the uid of the ftp user is smaller than.IR uid ..B "\-u 1"denies access only to root accounts. The default is to allow FTPaccess to all accounts..TP.B \-U umask files:umask dirsChange the mask for creation of new files and directories. The default are 133 (files arereadable -but not writable- by other users) and 022 (same thing for directory, with the execute bit on).If new files should only be readable by the user, use 177:077. If you want uploaded files to be executable,use 022:022 (files will be readable by other people) or 077:077 (files will only bereadable by their owner)..TP.B \-V ip addressAllow non-anonymous FTP access only on this specificlocal IP address. All other IP addresses are only anonymous. With thatoption, you can have routed IPs for public access, and a local IP (like10.x.x.x) for administration. You can also have a routable trusted IPprotected by firewall rules, and only that IP can be used to login as anon-anonymous user..TP.B \-wEnable support for the FXP protocol, for non\-anonymous users only..TP.B \-WEnable the FXP protocol for everyone.\fIFXP IS AN UNSECURE PROTOCOL. NEVER ENABLE IT ON UNTRUSTED NETWORKS.\fR

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -