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 man hdiutil sukhyun 2008.04.04 136641
56 OSX에 설치형 웹하드를 설치해 보자! [5] [1062] file Shadow 2009.06.07 129284
55 XQuartz [5570] Shadow 2009.01.03 127841
54 com.apple.boot.plist & bootloader [6505] Shadow 2009.01.03 121375
53 [펌] CFGetHostUUIDString: unable to determine UUID for host. Error: 35 [5772] Shadow 2009.01.03 121219
52 MacBookPro 13" with Samsung S470 SSD [601] file Shadow 2011.01.20 87721
51 스노우 레퍼드 64bit 부팅 [3] [566] file Shadow 2009.09.07 81508
50 wget [364] Shadow 2009.04.29 81285
49 Snow Leopard에서 macports를 이용한 mplayer 설치 [202] Shadow 2009.09.09 57271
48 enblend-enfuse-3.2 on MacOSX [216] file Shadow 2009.03.19 52077
47 rox-filer [555] file Shadow 2009.04.14 51463
46 [작성중] 홈 서버 구성 가이드 - 4. 웹서버를 시동해 보자 - MAMP ( MacOSX Apach + MySQL + PHP ) [3] file sukhyun 2008.11.13 47388
45 [펌] 맥미니에 소요된 부품 목록 Administrator 2008.03.30 45270
44 [펌] PC에서 맥FTP서버로 접근시 한글 깨짐문제. [1] sukhyun 2008.04.06 38589
43 MacOSX System Configurations - MyConf! Shadow 2009.01.04 35925
42 [펌] 도구 없이 wire만으로 맥미니 분해하기!! [2] sukhyun 2008.03.30 35531
41 [펌] Tryout Mac Mini as Fileserver Administrator 2008.03.30 34181
40 [펌] Tutorial: Using what's new in Leopard's Accounts and File Sharing Preferences sukhyun 2008.04.07 32755
» Pure-ftpd sukhyun 2008.08.28 32170
38 [작성중] 홈서버 구성 가이드 - 2. 네트워크 구성과 공유기 설정 file sukhyun 2008.11.15 31260

사용자 로그인