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

📄 readme

📁 功能强大的ftp服务器源代码
💻
📖 第 1 页 / 共 5 页
字号:
                              .:. PURE-FTPD .:.                       Documentation for version 1.0.17           ------------------------ BLURB ------------------------Pure-FTPd is a fast, production-quality, standard-conformant FTP server,based upon Troll-FTPd.The server has been designed to be secure in default configuration, it has noknown vulnerability, it is really trivial to set up and it is especiallydesigned for modern kernels. It was successfully ported to Linux, FreeBSD,NetBSD, OpenBSD, ISOS, EkkoBSD, BSDi, Solaris, Darwin, Tru64, Irix, AIXand HPUX.Features include chroot()ed and/or virtual chroot()ed home directories,virtual domains, built-in 'ls', anti-warez system, configurable ports forpassive downloads, FXP protocol, bandwidth throttling, ratios,LDAP / MySQL / PostgreSQL-based authentication, fortune files, Apache-likelog files, fast standalone mode, text / HTML / XML real-time status report,virtual users, virtual quotas, privilege separation, SSL/TLS and more.      ------------------------ WHO'S USING IT? ------------------------Many people new to Unix are running Pure-FTPd because they find it easy toinstall. But that software is also used on embedded systems and highly loadedproduction servers, especially for hosting services. A list of some companiessuccessfully using it is available at http://www.pureftpd.org/users.shtmlPure-FTPd was also part of a crack-a-machine challenge with other software,and that machine never got compromised.For large sites with centralized user management, Pure-FTPd provides flexibleauthentication schemes including SQL and LDAP backends, plus the ability toeasily write new custom handlers in any language.        ------------------------ COMPILATION ------------------------        In its current form, Pure-FTPd uses some OS-specific system calls. And altoughsome portability work has been done in order to ease its port to otheroperating systems, only Linux FreeBSD, NetBSD, OpenBSD, ISOS, EkkoBSD, BSDi,Darwin, Solaris, Tru64, Irix, AIX and HPUX are known to work, other operatingsystems may need some tweaks. With Linux, any modern distribution should beok.An unofficial Windows port is available from http://www.pureftpd.org/windows/If you have Cdialog or Xdialog installed on your system, try the followingcommand to build and install Pure-FTPd:make -f Makefile.guiIf you don't have Cdialog or if you prefer the conventional way, here it is:./configuremake install-stripEt voila! The software is now installed in /usr/local/sbin/pure-ftpdTo launch the server, just type the following command:/usr/local/sbin/pure-ftpd &If you installed a binary package (RPM, SLP, Debian), maybe use thefollowing command instead:/usr/sbin/pure-ftpd &Your server is ready. Just type 'ftp localhost' to test it. If you want toautomatically run the server when the system boots, add the previous commandto /etc/rc.d/rc.local or /etc/rc.d/boot.local . Don't forget the '&' sign.Note 1:On Linux systems, you will notice that the server is always running as root.This is intentional and more secure that servers who are changing theireffective uid (and only effective uid, they still have root privileges infact, use ps -U to see what servers are really running as root) . We areusing Linux kernel-specific tricks to drop privileges that "ps" can't show.Note 2:To compile under Irix, you have to issue this before typing ./configure:export CC=ccexport CFLAGS=-I/usr/freeware/includeexport LDFLAGS=-L/usr/freeware/lib32To compile under Solaris 8, use GNU Make, not Solaris basic make. Then do:export PATH=/usr/ccs/bin:$PATHexport MAKE=gmakeNota 3:To deinstall Pure-FTPd (no, do you really want to do this?), use:./configuremake uninstall   ------------------------ ADVANCED COMPILATION ------------------------        The "./configure" script accepts some arguments you might want to add beforethe compilation:/--------------------"--with-" switches --------------------/--with-altlog: in addition to the syslog output, support logging into aspecific file, in an alternative format. Currently, the CLF, Stats and W3Cformats are implemented. CLF (common log format) is the basic format producedby Apache, WebFS, Roxen and most web servers. These log files only recordfile transfers and they can feed web statistic software (Analog, Webalizer,etc.) to analyze the load of your FTP server. The Stats format is a specialoutput format, designed for log file analys software. The W3C format is astandard format parsed by most commercial log analyzers (all analyzers withsupport for IIS should deal with it) . Check the -O option later in thisdocumentation for additional info.--with-brokenrealpath: some Solaris versions have a broken realpath()implementation. If altlog and/or pure-uploadscript doesn't seem to workproperly on your system, try to recompile with this switch.--with-certfile=<file>: the file with the SSL certificate (see README.TLS). Thedefault is /etc/ssl/private/pure-ftpd.pem .--with-cookie: display a fortune or a customized banner when an user logsin (see the '-F' option) .--with-diraliases: support directory aliases ("shortcuts" for the "cd"command) . Please read the appropriate section about this (further in thismanual) .--with-everything: build a big server with almost all features turned on:altlog, cookies, throttling, ratios, ftpwho, upload script, virtual users(puredb), quotas, virtual hosts, directory aliases and external authentication.--with-extauth: compiles support for external authentication modules. Pleaseread README.Authentication-Modules and the pure-authd(8) man page beforeenabling this feature. Most users don't need it.--with-ftpwho: support for the 'pure-ftpwho' command. Enabling this featureneeds some extra memory. Better use it when the server is run in standalonemode. It can be way slower in inetd mode.--with-language=english--with-language=german--with-language=romanian--with-language=french--with-language=polish--with-language=spanish--with-language=danish--with-language=italian--with-language=brazilian-portuguese--with-language=slovak--with-language=dutch --with-language=korean--with-language=swedish--with-language=norwegian--with-language=russian--with-language=traditional-chinese--with-language=simplified-chinese--with-language=czech: change the language of server messages.Default is english. If you want to contribute a translation, pleasetranslate the 'src/messages_en.h' file and send it to <j@pureftpd.org> .--with-largefile: support downloading of files larger than 2 gigabytes on32-bit architectures. Transfering so huge files through FTP is a strangeidea. And your filesystem has to support it. Your kernel and your libc aswell. And of course, the FTP client has to be safe against large files, too.And when this feature is enabled, downloads can be a bit slower (or morecpu-intensive) than without it, due to a limitation of actual Linux kernels.To summarize: don't enable this for fun, just if you are really planning todownload files over 2 gigabytes.--with-ldap: use the native LDAP directory support. When this option isenabled, system accounts can be bypassed. You need OpenLDAP to use thatfeature. If OpenLDAP is installed in a custom location, you can use the--with-ldap=<directory> syntax. See the README.LDAP file for more info aboutLDAP and Pure-FTPd.--with-minimal: to efficiently use features of modern FTP clients, Pure-FTPdimplements the basics of the FTP protocol, with many extensions (SITE IDLE,SITE CHMOD, MLSD, ...) . Using the --with-minimal directive, these extensionswon't be compiled in. Also, there will be no standalone server, no lookup foruser/group names, no humor and no ASCII support. But the executable file sizewill be smaller than in a default installation. You need at least GCC 3.0 tocompile with this option. Regular expressions are compiled in. If you stillwant to reduce the size, use --without-globbing in conjunction with--with-minimal. If you are building an embedded system, use this. In all othercases, to avoid complaints from customers (especially with Windows clients),forget this.--with-mysql: use the native MySQL support for users database. When thisoption is enabled, system accounts can be bypassed. MySQL client librariesshould be installed to use that feature. If MySQL is installed in a customlocation, you can use the --with-mysql=<directory> syntax. See theREADME.MySQL file for more info about MySQL and Pure-FTPd. --with-nonroot: set up a server that doesn't need root privileges to bestarted. Any regular user can run the server. It can be useful if you have alimited shell access to a non-dedicated hosting server. But some featureswill be disabled and passwords can only be checked via LDAP, SQL or PureDB.When virtual chroot is enabled, people will be restricted to the directorythe server was started in. This is an insecure mode, designed for setting upvery temporary servers by regular (non-root) users. Port 2121 will belistened by default in standalone mode. If you want to use the nonroot mode,you must compile and *install* the software (./configure --prefix=... &&make install-strip) . /sbin, /bin and /man directories will be created inthat prefix. But you must also add an /etc directory (readable and writeableby the user pure-ftpd will run as) .--with-pam: use pluggable authentification modules. Don't use this optionif your login/passwd pairs are always refused (but the real fix would be tofix your PAM configuration). You need to create a /etc/pam.d/pure-ftpd fileto properly use the PAM authentication. The 'pam' directory contains anexample of such a file.--with-paranoidmsg: favor paranoid messages over sysadmin-friendlymessages. When this option is enabled, login failures will show the samemessage to the user, regardless of the source of the problem. Without thisoption, "Authentication failure" is displayed when this is a passwordproblem and "Sorry, I can't trust you" is displayed when the user has beenbanned by the sysadmin.--with-peruserlimits: enable per-user concurrency limits. Avoid thison very loaded servers.--with-pgsql: use the native Postgres support for users database. When thisoption is enabled, system accounts can be bypassed. Postgres client librariesshould be installed to use that feature. If Postgres is installed in a customlocation, you can use the --with-pgsql=<directory> syntax. See theREADME.PGSQL file for more info about Postgres and Pure-FTPd. --with-probe-random-dev: Pure-FTPd uses /dev/arandom, /dev/urandom or/dev/random devices to provide hardly-predicable random numbers. Presence ofthese devices are usually probed at compile-time. If you want to compile abinary package on a host, then run it on another host, this option willenable the probe at run-time. This is useless on Linux and BSD systems, butit can be needed on Solaris and QNX.--with-puredb: support virtual users, ie. a local users database,independent of your system accounts. Please read the README.Virtual-Usersfile for more info about virtual users.--with-quotas: enable virtual quotas. With virtual quotas, you can restrictthe maximal number of files an user can store in his account. You can alsoof course restrict the total size. See the "quotas" section later in thisdocument.--with-ratios: support upload/download ratios, to please w4r3z fr34k2.--with-sysquotas: support system quotas (not Pure-FTPd's virtual quotas) .Only enable this if you really plan to use system quotas.--with-throttling: support bandwidth throttling (see below).--with-uploadscript: since 0.98, Pure-FTPd has a nice feature regardinguploads. Any external program or script can be automatically called after asuccessful upload. It needs another program installed by the Pure-FTPdpackage, called 'pure-uploadscript'. Check the man page for more info aboutthis.--with-virtualchroot: usually, when an user is chrooted (-A and -aoptions), it's impossible to go out of his home directory. Enabling thatfeature makes it possible: symbolic links are always followed, even if theyare pointing to directories not located in the user's home directory. Thisis very useful for having shared directories (for instance, have a symboliclink to /var/incoming in every home directory) .This feature isn't enabled by default.--with-virtualhosts: support virtual hosting. It means that you can havedifferent anonymouns FTP areas for each IP address. If your server has onlyone IP address, you don't need that feature. But if you have multiple IPaddresses and if you want a client that connects to IP xxx to getthe content of /etc/pure-ftpd/xxx/ instead of ~ftp/ , enable this option.And read the the "VIRTUAL SERVERS" section at the end of this file.--with-welcomemsg: read 'welcome.msg' files for compatibility with someother FTP servers. This is a security flaw (anonymous users may upload'welcome.msg' files to add random banners) . Pure-ftpd uses '.banner' filesby default.--with-boring: display "professionnal-looking" messages.--with-privsep: enable privilege separation (see notes about this later)./-----------------------"--without-" switches -----------------------/--without-ascii: does not support 7-bits transfers (ASCII) .  If you havecustomers using Windows clients to send scripts and HTML files, don't usethis option or they will yell at you.--without-banner: don't display the initial banner. This is stupid securitythrough obscurity.--without-capabilities: if the capabilities library (libcap) is found,Pure-FTPd will try to use it in order to enhance security. This optionoverrides the test to ignore the library. Try this if capabilities don'twork properly on your system. libcap can be downloaded fromftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/ .--without-globbing: don't include the globbing code. It reduces the memoryfootprint but regular expressions won't work any more (things like 'ls*.rpm') . Most people shouldn't use --without-globbing. Globbing is a nice

⌨️ 快捷键说明

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