📄 readme.windows
字号:
------------------------ WINDOWS PORT OF PURE-FTPD ------------------------ Before all: Pure-FTPd was designed on Unix and for Unix. The Windows porthas been done because some people are forced to work on Win32 by theirpointy hairy boss. For these people, Apache is a nice alternative to IIS.But when it comes to FTP servers, most of them are designed for wareztrading rather than being secure. And closed-source doesn't help. So a Windows port of Pure-FTPd makes sense. As long as Cygwin32 is able tocompile and run this piece of software without any change to the sourcecode, Win32 binaries will be provided. But don't expect any Windows-specificchange or optimization. Also, a great part of the server security relies onCygwin's libraries emulation functions. So Pure-FTPd on Win32 should beconsidered experimental and unsupported. And some features may just not work. On the good side, initial testing showed that the server was immune tocommon attacks other Windows FTP daemons were vulnerable to (directorytraversals, device opening, etc) .------------------------ PURE-FTPD WIN32 REPOSITORY ------------------------ Info and download links about Pure-FTPd on Win32 platforms are availablefrom: http://www.pureftpd.org/windows/ ------------------------ INSTALLATION ------------------------ Copy the executable files (*.EXE) in a suitable directory. Also copyCYGWIN1.DLL in that directory. Create a C:\CYGWIN directory (you can leave it empty, but the directoryshould be there) . ------------------------ RUNNING THE SERVER ------------------------ PURE-FTPD.EXE works like Unix's /usr/local/sbin/pure-ftpd program and allcommand-line switches apply as well. A noticeable difference, though, is that users can't be stored in/etc/passwd (or equivalent files) . All users have the same UID/GID. Sobetter chroot everyone. Users must be in a puredb database. PURE-PW.EXE can be used to createvirtual users. It you use it in the default configuration, you have tocreate C:\CYGWIN\etc and C:\etc . Ray Jachrist says that Pure-FTPd can run as a service using Firedaemon:http://www.firedaemon.com/ . ------------------------ SERVER FILES ------------------------ All files managed by Pure-FTPd have their path relative to C:\CYGWIN . It means that starting the server with: pure-ftpd -lpuredb:/etc/pureftpd.pdb Will read: C:\CYGWIN\etc\pureftpd.pdb It also applies to log files and users directories. ------------------------ ANONYMOUS FTP ------------------------ Files for anonymous FTP must be stored in a directory called: C:\CYGWIN\FTP (of course you can use the -e switch to disable anonymous FTP) . Alternatively, you can have a WIN32_ANON_DIR environment variable todefine the directory for public files. Virtual hosting is supported as well. Files must be in: C:\CYGWIN\PURE-FTPD\<ip>\ If you don't want anonymous users to upload files, use the -i switch. ------------------------ COMPILATION ENVIRONMENT ------------------------ The Win32 version of Pure-FTPd has been configured with the followingcommand-line, using the Cygnus Win32 environment:env CFLAGS="-O2 -march=pentium -pipe" LDFLAGS="-static -s" \ ./configure --with-everything --with-brokenrealpath \ --without-shadow --with-nonroot --with-tls \ --with-probe-random-dev --without-ascii All these switches (except --with-everything and --with-tls) are highlyrecommended to compile Pure-FTPd on Windows. Needed packages are: base, gcc (+ dependencies), make and the cryptlibrary. All of these can be installed with the standard Cygwin32installer (http://www.cygwin.com/) .
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -