Pure-ftpd

2008.08.28 02:31

sukhyun 조회 수:32170

내 서버에 적용하기 위한 컴파일 옵션과 기능들에 대한 정리

  ------------------------ ENABLING VIRTUAL USERS ------------------------
 
 
Of course, to use virtual users, you have to enable their support in the FTP
server itself. At compile-time, this is done by giving --with-puredb to
./configure (--with-everything also enables it and binary packages have it
compiled in) .

Then, add this switch to your usual pure-ftpd switches:

-l puredb:/path/to/puredb_file

If long options are enabled, you can also use --login instead of -l .

Let's run the server with automatic creation of home directories and puredb
authentication:

/usr/local/sbin/pure-ftpd -j -lpuredb:/etc/pureftpd.pdb &

Try to 'ftp localhost' and log in as joe.



   ------------------------ ADVANCED COMPILATION ------------------------

--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, external authentication
and Bonjour.


--with-ftpwho: support for the 'pure-ftpwho' command. Enabling this feature
needs some extra memory. Better use it when the server is run in standalone
mode. It can be way slower in inetd mode.


--with-language=korean


--with-largefile: support downloading of files larger than 2 gigabytes on
32-bit architectures. Transfering so huge files through FTP is a strange
idea. And your filesystem has to support it. Your kernel and your libc as
well. 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 more
cpu-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 to
download files over 2 gigabytes.


--with-peruserlimits: enable per-user concurrency limits. Avoid this
on very loaded servers.


--with-puredb: support virtual users, ie. a local users database,
independent of your system accounts. Please read the README.Virtual-Users
file for more info about virtual users.


--with-quotas: enable virtual quotas. With virtual quotas, you can restrict
the maximal number of files an user can store in his account. You can also
of course restrict the total size. See the "quotas" section later in this
document.


--with-ratios: support upload/download ratios, to please w4r3z fr34k2.


--with-throttling: support bandwidth throttling (see below).


--with-virtualchroot: usually, when an user is chrooted (-A and -a
options), it's impossible to go out of his home directory. Enabling that
feature makes it possible: symbolic links are always followed, even if they
are pointing to directories not located in the user's home directory. This
is very useful for having shared directories (for instance, have a symbolic
link to /var/incoming in every home directory) .
This feature isn't enabled by default.



    ------------------------ CHARSETS (RFC2640) ------------------------
       

Since version 1.0.21, pure-ftpd has *experimental* support for charsets
conversion. The server filesystem can use a different charset than the
charset assumed by clients, and pure-ftpd translates file names through the
iconv library.

Some modern clients like lftp will also try to use UTF-8 if the server
supports it.

Thus, charsets conversion can be very useful when dealing with file names
containing non-english characters.

In order to support this, pure-ftpd has to be compiled with:

./configure ... --with-rfc2640

This is not supported by default because it requires libiconv.

Then the server has to be started with --fscharset=<charset>. Replace
<charset> with the charset of the server's filesystem. For instance:

/usr/local/sbin/pure-ftpd --fscharset=ISO-8859-15

This is often enough to properly work with UTF-8 capable clients.

But optionnally, you can specify the default charset for clients, with
--clientcharset:

/usr/local/sbin/pure-ftpd --fscharset=iso-8859-15 --clientcharset=big5





./configure --with-everything --with-language=korean --with-largefile --with-peruserlimits --with-puredb --with-quitas --with-ratios --with-throttling --with-virtualchroot --with-rfc2640

make install-strip


번호 제목 글쓴이 날짜 조회 수
57 범인은 공유기... sukhyun 2008.04.25 22574
56 man ftpd.conf sukhyun 2008.04.25 20023
55 [펌] NFS exports and Mac OS X 10.5 Leopard sukhyun 2008.05.04 24250
54 [펌] Putty Proxy 우회하기(터널링) file sukhyun 2008.06.13 31166
53 Zip Test Script ( BASH ) sukhyun 2008.08.21 20567
52 [Script] the number of files (or directories) sukhyun 2008.08.25 19576
51 [Script] MAMP server backup sukhyun 2008.08.25 20468
» Pure-ftpd sukhyun 2008.08.28 32170
49 Pure-ftpd : Virtual users sukhyun 2008.08.29 23561
48 boot-132 secret sukhyun 2008.08.30 448
47 [펌] An A-Z Index of the Apple OS X command line sukhyun 2008.08.30 25917
46 [Script] Netstat - Bash sukhyun 2008.08.31 21770
45 boot132 (2nd) secret sukhyun 2008.09.27 370
44 [펌] Create & delete user accounts from the command line on Mac OS X sukhyun 2008.10.01 21799
43 [펌] Creating & deleting system service agent accounts on Mac OS X sukhyun 2008.10.01 28182
42 (비밀글) x86osx - 글 백업 secret sukhyun 2008.10.08 302
41 [작성중] 홈 서버 구성 가이드 - 4. 웹서버를 시동해 보자 - MAMP ( MacOSX Apach + MySQL + PHP ) [3] file sukhyun 2008.11.13 47390
40 [작성중] 홈 서버 구성 가이드 - 1. 홈서버 시스템의 선택 [4] sukhyun 2008.11.14 29198
39 [작성중] 홈서버 구성 가이드 - 2. 네트워크 구성과 공유기 설정 file sukhyun 2008.11.15 31261
38 [작성중] 홈서버 구성 가이드 - 5. FTP를 이용한 파일서버 - LukemFTPd / PureFTPd [1] file sukhyun 2008.11.19 24799

사용자 로그인