Wu-FTPd manual page Wu-FTPd group v1.13 2000³â 7¿ù 1ÀÏ ±èÁ¤±Õ, admin@oops.org v1.15 2000³â 8¿ù 5ÀÏ ÀÌ ¹®¼­´Â Wu-ftpdÀÇ manual page¸¦ ¹ø¿ªÇÑ °ÍÀÌ´Ù. Wu-ftpd¿¡ ´ëÇÑ º¯º¯ÇÑ ManualÀÌ ¾ø´ø Â÷¿¡ man page¸¦ ¹ø¿ªÇÏ°Ô µÇ¾ú°í Internet »ó¿¡ ¿Ã·ÁÁ® ÀÖ´Â ¾î¶°ÇÑ Wu-ftpd¿¡ ´ëÇÑ ÀÚ·á º¸´Ùµµ ¾ÆÁÖ »ó¼¼ÇÑ ³»¿ëµéÀÌ µé¾î ÀÖ´Ù. ´Ü ¹ø¿ªÀÚÀÇ ¹ø¿ª ½Ç·ÂÀÌ º°·Î¶ó´Â °ÍÀ» °¨¾ÈÇØ Áֱ⠹ٶõ´Ù. ______________________________________________________________________ ¸ñÂ÷ 1. INSTALLATION INSTRUCTIONS 2. ftpaccess 2.1 À̸§ 2.2 ¼³¸í 2.3 Á¢±Ù ¹æ¹ý ¼³Á¤ 2.3.1 autogroup [ ...] 2.3.2 class [ ...] 2.3.3 deny 2.3.4 User & Group 2.3.5 nice [] 2.3.6 defumask [] 2.3.7 tcpwindow [] 2.3.8 keepalive 2.3.9 timeout accept timeout connect timeout data timeout idle timeout maxidle timeout RFC931 2.3.10 file-limit [] [] 2.3.11 data-limit [] [] 2.3.12 limit-time {*|anonymous|guest} 2.3.13 guestserver [] 2.3.14 limit 2.3.15 noretrieve [absolute|relative] [class=] ... [-] ... 2.3.16 allow-retrieve [absolute|relative] [class=]... [-] ... 2.3.17 loginfails 2.3.18 private 2.3.19 group access file 2.4 Á¤º¸¿¡ °üÇÑ È°¿ë 2.4.1 greeting full|brief|terse greeting text 2.4.2 banner 2.4.3 hostname 2.4.4 email 2.4.5 message { { ...}} 2.4.6 readme { {}} 2.5 ·Î±× È°¿ë 2.5.1 log commands 2.5.2 log transfers 2.5.3 log security 2.5.4 log syslog+xferlog 2.6 ¿©·¯°¡Áö È°¿ë 2.6.1 alias 2.7 Upload/Download ºñÀ² 2.7.1 ul-dl-rate [ ...] 2.7.2 dl-free [ ...] 2.7.3 dl-free-dir [ ...] 2.8 ¿©·¯°¡Áö È°¿ë 2.8.1 alias 2.8.2 cdpath 2.8.3 compress & tar 2.8.4 shutdown 2.8.5 daemonaddress
2.8.6 virtual
2.8.7 virtual
2.8.8 virtual
allow [ ...] 2.8.9 virtual
private 2.8.10 virtual
passwd 2.8.11 virtual
shadow 2.8.12 defaultserver 2.8.13 defaultserver private 2.8.14 passive address 2.8.15 passive ports 2.8.16 pasv-allow & port-allow 2.8.17 lslong, lsshort, lsplain 2.8.18 mailserver 2.8.19 incmail, virtual incmail, defaultserver incmail 2.8.20 mailfrom, virtual mailfrom, defaultserver mailfrom 2.9 ±ÇÇÑ È°¿ë 2.9.1 chmod delete overwrite rename umask 2.9.2 passwd-check () 2.9.3 deny-email 2.9.4 path-filter { ...} 2.9.5 upload [absolute|relative] [class=]... [-] ["dirs"|"nodirs"] [] 2.9.6 throughput 2.9.7 anonymous-root [] 2.9.8 guest-root [] 2.9.9 deny-uid deny-gid allow-uid allow-gid 2.9.10 restricted-uid restricted-gid unrestricted-uid unrestricted-gid 2.9.11 site-exec-max-lines [ ...] 2.9.12 dns refuse_mismatch [override] 2.9.13 dns refuse_no_reverse [override] 2.9.14 dns resolveroptions [options] 2.10 ÆÄÀÏ 2.11 °ü·Ã Ç׸ñ 3. ftpconversions 3.1 À̸§ 3.2 ¼³¸í 3.3 ¾Ë·ÁÁø ¹®Á¦ 3.4 ÆÄÀÏ 4. ftpcount 4.1 À̸§ 4.2 ¹®¹ý 4.3 ¼³¸í 4.4 °ü·Ã Ç׸ñ 5. FTPD 5.1 À̸§ 5.2 °³¿ä 5.3 ¼³¸í 5.4 BSD/OS SYSTEM¸¸ÀÇ ÀÎÁõ MECHANISM 5.5 ÀϹÝÀûÀÎ FTP È®ÀåÀÚµé 5.6 °ü·Ã Ç׸ñ 5.7 ¹ö±× 6. ftphosts 6.1 À̸§ 6.2 ¼³¸í 6.3 Á¢±Ù »ç¿ë¹ý 6.4 ÆÄÀÏ 6.5 °ü·Ã Ç׸ñ 7. ftpshut 7.1 À̸§ 7.2 ¹®¹ý 7.3 ¼³¸í 7.4 Á¦ÇÑ 7.5 °ü·Ã Ç׸ñ 8. ftpwho 8.1 À̸§ 8.2 ¹®¹ý 8.3 ¼³¸í 8.4 Á¦ÇÑ 8.5 °ü·Ã Ç׸ñ 9. XFERLOG 9.1 À̸§ 9.2 ¼³¸í 9.2.1 current-time 9.2.2 transfer-time 9.2.3 remote-host 9.2.4 file-size 9.2.5 filename 9.2.6 transfer-type 9.2.7 special-action-flag 9.2.8 direction 9.2.9 access-mode 9.2.10 username 9.2.11 service-name 9.2.12 authentication-method 9.2.13 authenticated-user-id 9.2.14 completion-status 9.3 ÆÄÀÏ 9.4 °ü·Ã Ç׸ñ 10. ftprestart 10.1 À̸§ 10.2 ¹®¹ý 10.3 Ãâ·Â ¿¹Á¦ 10.4 °ü·Ã Ç׸ñ 11. ftpservers 11.1 À̸§ 11.2 ¼³¸í 11.3 ftpservers file Çü½Ä 11.4 °ü·Ã Ç׸ñ 12. Copyright ______________________________________________________________________ 1. INSTALLATION INSTRUCTIONS ## ¿ªÀÚ ÁÖ Wu-FTPd 2.6.0 ºÎÅÍ´Â GNU autoconf¸¦ »ç¿ëÇÏ°Ô µÇ¾ú´Ù. ±×·¯¹Ç·Î ±âÁ¸ÀÇ build script¸¦ »ç¿ëÇÏ´Â °Í º¸´Ù´Â configure¸¦ »ç¿ëÇÏ´Â °ÍÀ» ±ÇÀåÇÑ´Ù. ./configure [--opeiont] make make install ·Î »ç¿ëÇÏ¸é µÈ´Ù. [ configure option ] ¼³Á¤: --cache-file=FILE cache test results in FILE --help ÀÌ ¸Þ¼¼ÁöµéÀ» Ãâ·Â --no-create Ãâ·Â¹°À» ¸¸µéÁö ¾ÊÀ½ --quiet, --silent `checking...' ¸Þ¼¼Áö¸¦ Ãâ·ÂÇÏÁö ¾ÊÀ½ --version autoconfÀÇ ¹öÁ¯À» Ãâ·Â µð·ºÅ丮¿Í ÆÄÀÏÀ̸§: --prefix=PREFIX PRIFIX¿¡ µ¶¸³ÀûÀÎ ±¸Á¶·Î ÀνºÅç [/usr] --exec-prefix=EPREFIX EPREFIX¿¡ Á¾¼ÓÀûÀÎ ÆÄÀϱ¸Á¶·Î ÀνºÅç [same PREFIX] --bindir=DIR À¯Àú°¡ ½ÇÇàÇÒ ÆÄÀϵéÀÌ ÀÖ´Â µð·ºÅ丮 [EPREFIX/bin] --sbindir=DIR ROOT°¡ ½ÇÇàÇÒ ÆÄÀϵéÀÌ ÀÖ´Â µð·ºÅ丮 [EPREFIX/sbin] --libexecdir=DIR ÇÁ·Î±×·¥ÀÌ ½ÇÇàÇÒ ÆÄÀϵéÀÌ ÀÖ´Â µð·ºÅ丮 [EPREFIX/libexec] --datadir=DIR Àб⠼ӼºÀÇ µ¶¸³ÀûÀÎ data¸¦ °¡Áú µð·ºÅ丮 [PREFIX/share] --sysconfdir=DIR ¼³Á¤ÆÄÀÏÀÌ À§Ä¡ÇÒ µð·ºÅ丮 °æ·Î ÁöÁ¤ [PREFIX/etc] --sharedstatedir=DIR ¼öÁ¤ °¡´ÉÇÑ µ¶¸³±¸Á¶¸¦ °¡Áø µ¥ÀÌŸ°¡ À§Ä¡ÇÒ °æ·ÎÁöÁ¤ [PREFIX/com] --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] --libdir=DIR ¶óÀ̺귯¸® ÆÄÀϵéÀÌ À§Ä¡ÇÒ µð·ºÅ丮 °æ·Î [EPREFIX/lib] --includedir=DIR C Çì´õ ÆÄÀÏÀÌ À§Ä¡ÇÒ µð·ºÅ丮 °æ·Î [PREFIX/include] --oldincludedir=DIR GCC¸¦ À§ÇÑ°ÍÀÌ ¾Æ´Ñ C Çì´õ ÆÄÀÏÀÇ °æ·Î [/usr/include] --infodir=DIR ¹®¼­°¡ À§Ä¡ÇÒ µð·ºÅ丮 °æ·Î [PRE­ FIX/info] --mandir=DIR ¸Þ´º¾ó ÆäÀÌÁö°¡ À§Ä¡ÇÒ µð·ºÅ丮 °æ·Î [PREFIX/man] --srcdir=DIR ¼Ò½º°¡ ÀÖ´Â µð·ºÅ丮 ÁöÁ¤ [configure dir or ..] --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names È£½ºÆ® Çü½Ä: --build=BUILD configure for building on BUILD [BUILD=HOST] --host=HOST configure for HOST [guessed] --target=TARGET configure for TARGET [TARGET=HOST] ¿ä¼Ò¿Í ÆÐÅ°Áö: --disable-FEATURE FEATURE¸¦ Æ÷ÇÔÇÏÁö ¾ÊÀ½ (--enable- FEATURE=no ¿Í µ¿ÀÏ) --enable-FEATURE[=ARG] FEATURE Æ÷ÇÔ [ARG=yes] --with-PACKAGE[=ARG] PACKAGE¸¦ »ç¿ëÇÔ [ARG=yes] --without-PACKAGE PACKAGE¸¦ »ç¿ëÇÏÁö ¾ÊÀ½ (--with- PACKAGE=no ¿Í µ¿ÀÏ) --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR --enable °ú --with ¿É¼Ç ÀνÄ: --with-etc-dir=PATH ¼³Á¤ÆÄÀÏÀÌ À§Ä¡ÇÒ °æ·Î [/etc] --with-pid-dir=PATH run/pid ÆÄÀϵéÀÇ °æ·Î [/var/run] --with-log-dir=PATH log ÆÄÀÏ [/var/log] --disable-upload ftpaccess¿¡¼­ UPLOAD Å°¿öµå¸¦ »ç¿ëÇÏÁö ¾ÊÀ½ --disable-overwrite ftpaccess¿¡¼­ OVERWIRTE Å°¿öµå¸¦ »ç¿ëÇÏÁö ¾ÊÀ½ --disable-hostxs ftpaccess¿¡¼­ ALLOW/DENY Å°¿öµå¸¦ »ç¿ëÇÏÁö ¾ÊÀ½ --disable-logfailed ·Î±×ÀÎ ½Ã¿¡ ·Î±×½ÇÆРȽ¼ö ÁöÁ¤À» »ç¿ëÇÏÁö ¾ÊÀ½ --disable-logtoomany ·Î±×ÀÎ ½Ã¿¡ À¯Àú Á¦ÇÑÀ» »ç¿ëÇÏÁö ¾ÊÀ½ --disable-private don't support private files (SITE GROUP/SITE GPASS) --disable-dnsretry DNS lookupÀ» ÇÏÁö¾ÊÀ½ --enable-anononly À͸í Á¢¼Ó¸¸ °¡´ÉÇÔ --enable-paranoid ÁúÀÇ ¿ä¼ÒµéÀ» »ç¿ëÇÏÁö ¾ÊÀ½ --enable-quota ÄõŸ Áö¿ø (OS¿¡¼­ Áö¿øÀ» ÇØ¾ß ÇÔ) --enable-pam PAM Áö¿ø (PAM ¶óÀ̺귯¸®°¡ ÇÊ¿ä) --enable-skey S/KEY Áö¿ø (SKEY ¶óÀ̺귯¸® ÇÊ¿ä) --enable-opie OPIE Áö¿ø(OPIE ¶óÀ̺귯¸® ÇÊ¿ä) --disable-new-cd new-cd causes "cd " to return to chroot-relative dir --enable-chmod ftp À¯ÀúµéÀÌ SETUID/SETGID/STICKY bits¸¦ ¼ÂÆÃÇÏ´Â °ÍÀ» Çã¶ô --enable-rfc931 RFC931 lookupsÀ» ÇÔ(log Á¤º¸¸¦ ´õ ÀÚ¼¼È÷ ¾òÀ»¼ö ÀÖÀ¸³ª ´À¸²) --enable-ratios ¾÷·Îµå ´Ù¿î·Îµå ºñÀ²À» Áö¿ø --enable-passwd ´Ù¸¥ Æнº¿öµå ÆÄÀÏÀ» »ç¿ëÇÒ¼ö ÀÖ°Ô ÇÔ --disable-daemon standalone ¹æ½ÄÀ» »ç¿ëÇÏÁö ¾ÊÀ½ --disable-map-chdir don't keep track of user's path changes --disable-throughput don't keep track of user's through­ put --disable-count don't keep track of bytes for statistics --disable-newlines °ø¹é¶óÀÎÀÌ ÀÛµ¿ÇÏÁö ¸øÇÏ°Ô ÇÔ --enable-crackers À¯ÀúÀ̸§ÀÌ Á¸ÀçÇÏÁö ¾ÊÀ» °æ¿ì pass­ word¸¦ ±â´Ù¸®Áö ¾ÊÀ½ --disable-verbose ¿¡·¯·Î±×¸¦ °£´ÜÇÏ°Ô ÇÔ --enable-noop idle ½Ã°£ÃÊ°ú½Ã NOOP¸í·ÉÀ» ¸®¼Â --disable-log-rp log the relative path rather than the real one --disable-virtual °¡»ó È£½ºÆ®¸¦ Áö¿ø¾ÈÇÔ --disable-closedvirt °¡»ó È£½ºÆ®¿¡ guest log¸¦ Çã¶ô --disable-dns ¸ðµç DNS lookupÀ» ¾ÈÇÔ --disable-port port mode¸¦ Çã¶ôÇÏÁö ¾ÊÀ½ --disable-pasv passive mode¸¦ »ç¿ëÇÏÁö ¾ÊÀ½ --disable-plsm PID lock sleep message¸¦ »ç¿ëÇÏÁö ¾ÊÀ½(Æ®·¡ÇÈÀÌ ¸¹Àºsites) --disable-pasvip don't require require same IP for passive connections --disable-anonymous À͸í Á¢¼ÓÀ» Çã¶ôÇÏÁö ¾ÊÀ½ --enable-ls ³»ºÎ ls ¸í·ÉÀ» »ç¿ë (½ÇÇèÀûÀÎ ¿ä¼Ò) --disable-numericuid ³»ºÎ ls»ç¿ë½Ã À¯ÀúÀ̸§ ´ë½Å UID¸¦ Ç¥½Ã (ºü¸§) --disable-hidesetuid ³»ºÎ ls »ç¿ë½Ã setuid/setgid bits¸¦ Ãâ·Â --disable-mail À͸í upload½Ã¿¡ ÅëÁö ¸ÞÀÏÀ» ¹ß¼ÛÇÏÁö ¾ÊÀ½ --enable-badclients support broken clients (see CHANGES) --with-bufsize=x set buffer size to x --with-backlog=x number of incoming processes to backlog in daemon mode <1a> source treeÀÇ Á¦ÀÏ »óÀ§¿¡¼­ "./build xxx" ¸¦ ½ÇÇàÇÑ´Ù. "./build xxx"¸¦ ½ÇÇà ÇÒ¶§ C compiler¸¦ ´ë½ÅÇÏ¿© "./build CC=yyy xxx" ¿Í °°ÀÌ yyy¿¡ cc¸¦ ´ë½ÅÇÒ compiler¸¦ ÁöÁ¤ÇÏ¿© ½ÇÇàÇÒ¼öµµ ÀÖ´Ù. ["gcc"¸¦ »ç¿ëÇϱâ À§Çؼ­´Â ´ÙÀ½°ú °°ÀÌ ½ÇÇàÇÑ´Ù. "./build CC=gcc xxx".] "./build xxx" ¸í·É¿¡¼­ xxx´Â ¾Æ·¡ÀÇ os typeÁß Çϳª¸¦ ¼±ÅÃÇÏ¸é µÈ´Ù.: gen : generic make (copy this when porting to a new sys­ tem) aix : IBM AIX aux : AU/X bdi : BSD/OS bsd : BSD dec : DEC Unix 3.X or later dyn : Dynix fbs : FreeBSD 2.0 or later hiu : Hitachi Unix hpx : HP-UX lnx : Linux (tested on 2.0.30) nbs : NetBSD 1.X nx2 : NeXTstep 2.x nx3 : NeXTstep 3.x osf : OSF/1 ptx : ??? sco : SCO Unix 3.2v4.2/SCO OpenServer 5 sgi : SGI Irix 4.0.5a sny : Sony NewsOS sol : SunOS 5.x / Solaris 2.x s41 : SunOS 4.1.x ult : Ultrix 4.x uxw : UnixWare 1.1 or later clean : Clean up object files and such to reduce disk space after building. install: Install ftpd <1b> ¸¸¾à ³ÊÀÇ systemÀÌ À§ÀÇ list¿¡ ¾ø°Å³ª ¿¡·¯°¡ ¹ß»ýÇÑ´Ù¸é... cp src/config/config.gen src/config/config.xxx cp src/makefiles/Makefile.gen src/makefiles/Makefile.xxx cp support/makefiles/Makefile.gen support/makefiles/Makefile.xxx Àû´çÇÏ°Ô 3°³ÀÇ ÆÄÀÏÀ» ÆíÁýÇØ¾ß ÇÑ´Ù. ´Ù½Ã step 1a·Î µ¹¾Æ°£´Ù. ÀÌ°ÍÀº »ç¼ÒÇÑ °ÍÀÌ ¾Æ´Ï´Ù. mailling list³ª Áú¹®À» ¿øÇÒ¼öµµ ÀÖ´Ù. [wu-ftpd-bugs@academ.com À¸·Î ±×·± º¯È­µé¿¡ ´ëÇØ º¸³»¸é µÈ´Ù!] <2> wu-ftpdÀÇ »õ·Î¿î versionÀ¸·Î upgrade¸¦ ÇÏ·Á ÇÑ´Ù¸é, ¿¹ÀüÀÇ ¸ðµç configure fileµéÀ» backup ÇØ ³õ¾Æ¾ß ÇÑ´Ù. ±×·¸Áö ¾ÊÀ¸¸é »õ·ÎÀÌ installÀ» ÇßÀ» °æ¿ì¿¡ »õ versionÀÇ sample fileµéÀÌ ¿¹ÀüÀÇ °Íµé·Î ´ëü µÇ¾î ¹ö¸°´Ù. <3> super-userÀÇ ±ÇÇÑÀ¸·Î "./build install" À» ½ÇÇàÇÑ´Ù. <4> »õ·Î¿î versionÀÇ ftpd¸¦ "/etc/inetd.conf"¿¡ ÁöÁ¤À» ÇÑ´Ù. ´ëºÎºÐÀÇ °æ¿ì, old versionÀÌ ¼³Ä¡µÇ¾î ÀÖ´Ù¸é ÀÌ ´Ü°è´Â »ý·«Çصµ µÈ´Ù. ¸¸¾à ÀÌ serverÀÇ È®Àå ±â´ÉµéÀ» »ç¿ëÇÏ°íÀÚ ÇÑ´Ù¸é Ftpd¸¦ ½ÇÇàÇÒ¶§ -a optionÀ» °°ÀÌ ½ÇÇàÇØ Áà¾ß ÇÑ´Ù. ÀϹÝÀûÀ¸·Î ÀÌ°ÍÀº server¸¦ ½ÇÇàÇÒ ¶§ /etc/inetd.confÀÇ lineÀÇ ³¡¿¡ "-a"(µû¿ÈÇ¥´Â »ý·«)À» Ãß°¡ÇؾßÇÑ´Ù´Â °ÍÀ» ÀǹÌÇÑ´Ù. /etc/inetd.conf¸¦ ÀÌ¿ëÇÏÁö ¾Ê´Â OS ¿¡¼­´Â standalone mode·Î ½ÇÇàÀ» Çϰųª ¶Ç´Â ´Ù¸¥ ¹æ¹ýÀ¸·Î ½ÇÇà½ÃÅ°´Â ¹æ¹ýÀ» À§ÇÏ¿© OS documentationÀ» Àо¾Æ¾ß ÇÑ´Ù. ±âº»ÀûÀ¸·Î inetd·Î ½ÇÇàÀ» Çϰųª ´Ù¸¥ ¹æ¹ýÀ¸·Î ½ÇÇàÀ» Çϰųª Å« Â÷ÀÌ´Â ¾ø´Ù. <5> BSD °è¿­ÀÇ sytem¿¡¼­´Â, type "kill -1 `ps t"?" | grep inetd`" SGI system¿¡¼­´Â, type "/etc/killall -HUP inetd" AIX system¿¡¼­´Â, type "refresh -s inetd" <6> Ftpd°¡ directoryÀÇ .tar.Z ÀÇ »ý¼ºÀ» Áö¿øÇÏ°Ô Çϱâ À§Çؼ­´Â GNU tar¸¦ ¼³Ä¡ ÇØ¾ß ÇÑ´Ù. [anonymous ftp ¿¡ copy¸¦ ÇØ Áà¾ß ÇÏ´Â °ÍÀ» ±â¾ïÇؾßÇÑ´Ù.] GNU tar°¡ ÇÊ¿ä ÇÏ´Ù¸é, prep.ai.mit.eduÀÇ /pub/gun directory¿¡¼­ ±¸ÇÒ¼ö ÀÖ´Ù. <7> ~ftp/bin/compress·Î ¾ÐÃà programÀ» copyÇÑ´Ù. "ls" programÀ» ~ftp/bin/ls ·Î copy¸¦ ÇÑ´Ù. OS°¡ °øÀ¯ librariy¸¦ »ç¿ëÇÑ´Ù¸é ÀÌ programµéÀº Á¤ÀûÀ¸·Î link µÇ¾îÁø °ÍÀÌ ¾Æ´Ï´Ù. »õ·ÎÀÌ ÀÌ linkµéÀ» Á¤È®ÇÑ °æ·Î·Î ¼³Á¤À» ÇØÁÙ ÇÊ¿ä°¡ ÀÖ´Ù. <8> ftpd¸¦ À§ÇÑ ¿©·¯ ¼³Á¤ fileµé(ftpconversions, ftpusers, ftpgroups)À» À§Ä¡ ÇÒ °÷À» Á¶»çÇϱâ À§ÇÑ Ã¹´Ü°è¸¦ ÇàÇÒ¶§, ckconfig ¸¦ »ç¿ëÇ϶ó. ÀÌ fileµéÀÇ ¿¹Á¦µéÀº doc/examples directory¿¡ Á¸ÀçÇÑ´Ù. ckconfig´Â bin direcoty¿¡ ÀÖ´Ù. ckconfig report·Î ¾î¶² ¹®Á¦Á¡µéÀ» ¼öÁ¤Çϵµ·Ï ÇÑ´Ù. <9> anonymous userµéÀÌ _SITE_EXEC¿¡¼­ ½ÇÇàÀÌ °¡´ÉÇÏ°Ô Çϱ⸦ ¿øÇÏ¸é ¾î¶² ½ÇÇà °¡´ÉÇÑ °ÍÀ» ³Ö¾î Áà¾ß ÇÑ´Ù. ÀÌ°ÍÀ» ³ÖÀ»¶§´Â ¸Å¿ì ÁÖÀÇÇØ¾ß ÇÑ´Ù. <10> bin/ckconfig·Î ´Ù½Ã ¼³Á¤ fileµéÀÌ Á¦´ë·Î installÀÌ µÇ¾ú´ÂÁö È®ÀÎÀ» ÇÑ´Ù. <11> virtual ftp¸¦ Áö¿øÇϱâ À§Çؼ­´Â MakefileÀÇ CFLAGS¿¡ -DVIRTUALÀ» Ãß°¡ÇÏ¿© compileÀ» ÇØ¾ß ÇÑ´Ù. 2. ftpaccess 2.1. À̸§ ftpaccess - ftpd ¼³Á¤ file 2.2. ¼³¸í ftpaccess fileÀº ftpd(1) ¸¦ ¾î¶»°Ô ¿î¿µÇÒ°ÍÀÎÁö¸¦ ¼³Á¤Çϴµ¥ »ç¿ëÇÑ´Ù. 2.3. Á¢±Ù ¹æ¹ý ¼³Á¤ 2.3.1. autogroup [ ...] Anonymous user°¡ ƯÁ¤ ÀÇ memberÀ϶§, ftp server´Â ¿¡ setegid()¸¦ ½ÇÇàÇÒ °ÍÀÌ´Ù. ÀÌ°ÍÀº ƯÁ¤ groupÀÇ anonymous userµé¿¡°Ô file°ú directory¸¦ group-and-owner-read- onlyÀÇ ±ÇÇÑÀ¸·Î Á¢±ÙÀ» Çã¶ô ÇÏ´Â °ÍÀ» ¸»ÇÑ´Ù. Àº /etc/group¿¡ Á¸ÀçÇÏ´Â groupÀ̾î¾ß ÇÑ´Ù. 2.3.2. class [ ...] Çü½ÄÀÇ source addressµé·Î userÀÇ ¸¦ Á¤ÀÇÇÑ´Ù. ´Â Áߺ¹µÇ¾î ¼³Á¤À» ÇÒ¼ö ÀÖÀ¸¸ç "class"¸¦ Áߺ¹µÇ°Ô ³ª¿­ÇÏ¿© classÀÇ Ãß°¡ member¸¦ Á¤ÀÇÇÒ¼ö ÀÖ´Ù. ÀÌ Áߺ¹µÈ "class"µéÀÌ ÇöÀç session¿¡ Àû¿ëÀÌ µÈ´Ù¸é access file¿¡ ³ª¿­µÇ¾î ÀÖ´Â °ÍµéÁß °¡Àå ¸ÕÀú ³ª¿À´Â °ÍÀÌ »ç¿ëµÇ¾î Áø´Ù. classÀÇ ¼³Á¤À» À߸øÇϸé Á¢¼Ó °ÅºÎ¸¦ ´çÇÏ°Ô µÈ´Ù. ´Â "anonymous", "guest", "real"ÀÇ keyword°¡ Á¸ÀçÇϸç ÀÌ 3°³ÀÇ keyword´Â comma(Äĸ¶)·Î¼­ ±¸ºÐÀ» ÇÑ´Ù. "real"Àº real account·Î ftp¸¦ »ç¿ëÇÏ´Â user¸¦ ¸»Çϸç, "anonymous"´Â anonymous FTP¸¦ À§ÇÑ user(anonymous, ftp)¸¦ ¸»ÇÑ´Ù. "guest"´Â ¼Õ´Ô »ç¿ëÀڷΠ󸮵Ǵ user¸¦ ¸»ÇÑ´Ù. ( "guestgroup"À» ÂüÁ¶ ÇÏ¸é ´õ ¸¹Àº Á¤º¸¸¦ ¾òÀ»¼ö ÀÖ´Ù.) ´Â µµ¸ÞÀγ×ÀÓ ¶Ç´Â ip address·Î ¼³Á¤À» Çϸç, ½½·¡½¬("/") ·Î ½ÃÀÛÀ» ÇÏ´Â file À̸§Àϼöµµ ÀÖ´Ù. ÀÌ ÆÄÀÏÀº address:netmask ¶Ç´Â address/cidrÀÇ Çü½Ä°ú °°Àº Ãß°¡ ÁÖ¼Ò¸¦ Æ÷ÇÔÇÑ´Ù. ¾Õ¿¡ "!"¸¦ À§Ä¡½ÃÅ°¸é, ¿¹¸¦ µé¾î class rmtuser real !*.example.com rmtuser classó·³ example.com µµ¸ÞÀÎ ¿Ü¿¡¼­ Á¢±ÙÇÒ¼ö ÀÖ´Â ½ÇÁ¦ À¯Àú¸¦ ÁöÁ¤ ÇÒ¼ö ÀÖ´Ù. 2.3.3. deny ¿Í ºñ±³ÇÏ¿© ¸ÅÄ¡µµ´Â hostÀÇ Á¢±ÙÀ» °ÅÀýÇÏ¸ç ¿¡¼­ ÁöÁ¤ÇÒ fileÀÇ ³»¿ëÀ» Ãâ·ÂÇÑ´Ù. ´Â nameserver¿¡ µî·ÏµÇ¾î ÀÖÁö ¾ÊÀº siteµéÀÇ Á¢¼ÓÀ» °ÅºÎÇϱâ À§ÇÑ nameserÀÇ ¿ªÇÒÀ» ÇÏ¸ç ¿Í °°ÀÌ ½½·¡½¬("/")·Î ½ÃÀÛÇÏ´Â fileÀÇ À̸§À» ÁöÁ¤ÇÒ¼öµµ ÀÖÀ¸¸ç ÀÌ ÆÄÀÏ¿¡´Â address:netmask ¶Ç´Â address/cidrÀÇ Çü½Ä°ú °°Àº Ãß°¡ ÁÖ¼Ò¸¦ Æ÷ÇÔÇÑ´Ù. 2.3.4. User & Group guestgroup [ ...] guestuser [ ...] realgroup [ ...] realuser [ ...] REAL user°¡ ÀÇ ÇÑ member¶ó¸é, guestgroupÀ» À§ÇÑ sessionÀº anonymous FTP¿Í °°ÀÌ Á¤È®ÇÏ°Ô ¼³Á¤µÇ¾î¾ß ÇÑ´Ù. ´Ù½Ã ¸»ÇØ, chroot()°¡ ½ÇÇàµÇ¾î Á®¾ß Çϸç, USER¿Í PASS ¸í·ÉÀÌ Á¦°øµÇ¾îÁ®¾ß ÇÑ´Ù. Àº /etc/group¿¡ Á¸ÀçÇÏ´Â groupÀ̾î¾ß ÇÑ´Ù. userÀÇ home directory´Â anonymous FTP°¡ ±×·¯ÇÑ °Í ó·³ Á¤È®ÇÏ°Ô ¼³Á¤ µÇ¾î¾ß ÇÑ´Ù. passwd entryÀÇ home directory field´Â µÎ°³ÀÇ directory µé·Î ³ª´µ¾îÁ® ÀÖ´Ù. ù¹ø° field´Â chroot(2)°¡ ºÎ¸£´Â ÀÎÀÚ°¡ µÉ root directoryÀÌ´Ù. µÎ¹ø° ¹ÝÀº root directory·Î ¿¬°üµÈ userÀÇ home directoryÀÌ´Ù. µÎ µð·ºÅ丮ÀÇ ±¸ºÐÀº "/./"·Î¼­ ÇÑ´Ù. ¿¹¸¦ µé¾î /etc/passwd¿¡¼­, real entry: guest1::100:92:Guest Account:/ftp/./incoming:/etc/ftponly guest1ÀÌ log inÀ» ¼º°øÀûÀ¸·Î ¼öÇàÇßÀ»¶§ ftp server´Â chroot("/ftp") ¸¦ ÇÑ´ÙÀ½ chdir("/incoming") À» ÇÒ °ÍÀÌ´Ù. guest user´Â anonymous FTP user°¡ ±×·¯ÇϵíÀÌ¿ÀÁ÷ /ftp ÇÏÀ§ÀÇ directory ±¸Á¶¿¡ Á¢±ÙÀÌ °¡´ÉÇÏ´Ù. (guest1¿¡°Ô´Â /·Î¼­ º¸À̸ç ÀÛµ¿ÇÑ´Ù.) group nameÀº À̸§À̳ª ¼ýÀÚ ID·Î ÁöÁ¤µÇ¾î¾ß ÇÑ´Ù. ¼ýÀÚ·Î µÈ group ID¸¦ »ç¿ëÇϱâ À§Çؼ­´Â, ¼ýÀÚ ÀÌÀü¿¡ "%"¸¦ À§Ä¡½ÃÄÑ¾ß ÇÑ´Ù. ¸ðµç goupÀ» ³ªÅ¸³»´Â asterisk(*)-¸¦ »ç¿ëÇÏ´Â °Í ó·³ ¿µ¿ªÀ» ÁöÁ¤ÇÒ¼öµµ ÀÖ´Ù. guestuser´Â user name(¶Ç´Â ¼ýÀÚ ID)À» »ç¿ëÇÏÁö ¾Ê´Â °ÍÀ» Á¦¿ÜÇÏ°í´Â guestgroupó·³ ÀÛµ¿ÇÑ´Ù. realuser¿Í realgroupÀº µ¿ÀÏÇÑ ¹®¹ýÀ» °¡ÁöÁö¸¸, guestuser¿Í guestgroupÀÇ ¿µÇâ°ú´Â ¹Ý´ëÀÌ´Ù. relauser¿Í realgroupÀº ¿ø°Ý Á¢¼Ó user°¡ guest·Î °áÁ¤ µÇ¾îÁö´Â °ÍÀÌ ¾Æ´Ò¶§ real user Á¢¼ÓÀ» Çã¶ôÇÑ´Ù. ¿¹¸¦ µé¾î: guestuser * realgroup admin ¿Í °°ÀÌ ¼³Á¤À» ÇßÀ»¶§ À¯ÀÏÇÏ°Ô real user Á¢±ÙÀ» Çã¶ô¹ÞÀº admin group¿¡ ÀÖ´Â userµéÀ» Á¦¿Ü ÇÏ°í´Â ¸ðµç non-anonymous userµéÀº guest·Î Ãë±ÞÀÌ µÇ¾îÁö±â ¶§¹®ÀÌ´Ù. 2.3.5. nice [] ¿ø°Ý user°¡ ¿¡ Á¤ÀÇµÈ ¸â¹ö¶ó¸é ÁöÁ¤µÈ ÀÇÇØ ftp server processÀÇ process nice value¸¦ Á¶Àý ÇÑ´Ù. ¸¸¾à °¡ ÁöÁ¤µÇÁö ¾ÊÀ¸¸é, ftp server process nice value ´Â ±âº»À¸·Î ÁöÁ¤µÈ ¸¦ »ç¿ëÇÑ´Ù. ÀÌ ±âº» nice value Á¶Á¤Àº ftpaccess file¿¡ Á¸ÀçÇÏ´Â class-specific "nice" Áö½ÃÀÚ¿¡ ´ëÇØ ¾î¶² class¿¡µµ ¼ÓÇÏÁö ¾Ê´Â userµéÀ» À§ÇØ server processÀÇ nice value¸¦ Á¶Á¤Çϱâ À§ÇÏ¿© »ç¿ëµÇ¾î Áø´Ù. 2.3.6. defumask [] ¿ø°Ý user°¡ class¿¡ Á¤ÀÇµÈ ¸â¹ö¶ó¸é, daemon¿¡ ÀÇÇØ ¸¸µé¾îÁø fileµéÀÇ umask¸¦ ÁöÁ¤ÇÑ´Ù. °¡ ÁöÁ¤µÇÁö ¾ÊÀ¸¸é, ¾î¶² °Íµµ ÁöÁ¤µÇÁö ¾ÊÀº classµéÀ» À§ÇØ umask´Â ±âº»°ªÀ¸·Î »ç¿ëÀÌ µÈ´Ù. 2.3.7. tcpwindow [] data connection¿¡ ´ëÇÑ TCP window size¸¦ ÁöÁ¤ÇÑ´Ù. ÀÌ°ÍÀº network trafficÀ» Á¶Á¤Çϱâ À§ÇØ »ç¿ëÇÒ¼ö ÀÖ´Ù. ¿¹¸¦ µé¾î ´À¸° PPP dialin linkµéÀº È¿À²À» ³ôÀ̱â À§ÇØ ´õ ÀÛÀº TCP windowµéÀÌ ÇÊ¿äÇÏ°Ô µÈ´Ù. ÀÌ°Í¿¡ ´ëÇØ Àß ¸ð¸£°Ú´Ù¸é ±×³É ³ªµÎµµ·Ï ÇÑ´Ù. 2.3.8. keepalive data socketÀ» À§ÇÏ¿© TCP SO_KEEPALIVE¸¦ ÁöÁ¤ÇÏ¿© ³×Æ®¿öÅ©¸¦ ²÷´Â °ÍÀ» Á¶ÀýÇÒ¼ö ÀÖ´Ù. Yes: ´Â »ç¿ëÀ» ÇÏ´Â °ÍÀ̸ç No´Â systemÀÇ ±âº»°ªÀ» »ç¿ë ÇÏ°Ú´Ù´Â °ÍÀ» ÀÇ¹Ì ÇÑ´Ù(º¸Åë offÀÌ´Ù). ´ç½ÅÀº ¾Æ¸¶µµ ÀÌ°ÍÀ» ¼ÂÆÃÇÏ´Â °ÍÀ» ¿øÇÒ°ÍÀÌ´Ù. 2.3.9. timeout accept timeout connect timeout data timeout idle timeout maxidle time­ out RFC931 ´Ù¾çÇÏ°Ô timeoutÀ» ÁöÁ¤ÇÒ¼ö ÀÖ´Ù. Accept (±âº» 120ÃÊ): µ¥¸óÀÌ ¾ó¸¶³ª incoming(PASV) data Á¢¼ÓÀ» ±â´Ù¸±Áö¸¦ ¼³Á¤ÇÑ´Ù. Connect (±âº» 120ÃÊ): µ¥¸óÀÌ ¾ó¸¶³ª outgong(PORT) data Á¢¼ÓÀ» ÀÌ·ç±â À§ÇØ À§ÇØ ½Ãµµ ÇÏ´Â °ÍÀ» ±â´Ù¸±Áö¸¦ ¼³Á¤Çϸç, ½ÇÁ¦ Á¢¼Ó ½Ãµµ¿¡ ¿µÇâÀ» ¹ÌÄ£´Ù. µ¥¸óÀº ¿©·¯¹ø ½Ãµµ¸¦ ÇÏ°Ô µÇ¸ç, ¿ÏÀüÈ÷ Á¢¼ÓÀÌ µÇ±â Àü±îÁö °¢°¢ÀÇ ½Ãµµ »çÀÌ¿¡ ÅÒÀ» °¡Áö°Ô µÈ´Ù. Data (±âº» 1200ÃÊ): µ¥¸óÀÌ ¾î¶² ½ÇÁ¦ dataÁ¢¼ÓÀ» ÀÌ·ç±â À§ÇØ ±â´Ù¸®´Â ½Ã°£À» ÁöÁ¤ÇÑ´Ù. ¿ø°Ý Á¢¼ÓÀÚµéÀÌ Å¬¶óÀ̾ðÆ®¸¦ ÅëÇØ ¾ÆÁÖ ÀÛÀº µ¥ÀÌŸ Å¥¿Í ´À¸° °áÇÕÀ» °¡Áú¼ö ÀÖµµ·Ï ±æ°Ô Àâ¾Æ Áà¾ß ÇÑ´Ù. Idle (±âº» 900ÃÊ): µ¥¸óÀÌ »õ·Î¿î ¸í·ÉÀ» ¼öÇàÇÒ¶§ ±îÁö ¾ó¸¶³ª ±â´Ù¸±Áö¸¦ ¼³Á¤ÇÑ´Ù. ±âº»À¸·Î ftp µ¥¸óÀ» ½ÇÇàÇÒ¶§ -a ¿É¼ÇÀ» »ç¿ëÇÏ¿© ÁöÁ¤ÇÒ¼ö ÁöÁ¤ÇÒ¼ö ÀÖÀ¸¸ç À̶§¿¡´Â ¼³Á¤ÆÄÀÏ¿¡¼­ÀÇ °ªÀº ¹«½ÃµÇ¾î Áø´Ù. MaxIdle (±âº» 1200ÃÊ): SITE IDLE ¸í·ÉÀº ¿ø°Ý À¯Àú°¡ idle ½Ã°£ ÃÊ°ú¸¦ ÅëÇÏ¿© ³ôÀº °ªÀ» Çü¼ºÇϵµ·ÏÇÑ´Ù. ÀÌ°ÍÀº Ŭ¶óÀ̾ðÆ®°¡ ¿äûÇÏ´Â °ÍµéÀ» Á¦ÇÑÇÏ´Â ÃÖ´ë°ªÀ» ÁöÁ¤ÇÑ´Ù. ftpd ½ÃÀ۽ÿ¡ -A ¿É¼ÇÀ¸·Î ÁöÁ¤ÇÒ¼ö ÀÖÀ¸¸ç À̶§¿¡´Â ¼³Á¤ÆÄÀÏ¿¡¼­ÀÇ °ªÀº ¹«½ÃµÇ¾î Áø´Ù. RFC931 (±âº» 10ÃÊ): µ¥¸óÀÌ Àüü RFC931(AUTH/ident) ¼ÒÅëÀ» Çã¶ôÇÒ ÃÖ´ë »ç°£À» ÁöÁ¤ÇÑ´Ù. 0À¸·Î ¼³Á¤À» ÇÏ¸é µ¥¸óÀÌ ÀÌ ÇÁ·ÎÅäÄÝÀ» »ç¿ëÇÏ´Â °ÍÀ» ¿ÏÀüÈ÷ ¸·´Â´Ù. RFC931À» ÅëÇØ ¾ò´Â Á¤º¸µéÀº ½Ã½ºÅÛ ·Î±×¿¡ ±â·ÏÀÌ µÇ°í, ½ÇÁ¦·Î ¾î¶°ÇÑ ÀÎÁõ¿¡µµ »ç¿ëÀÌ µÇÁö´Â ¾Ê´Â´Ù. 2.3.10. file-limit [] [] ÁöÁ¤µÈ class¿¡¼­ user°¡ Àü¼ÛÇÒ¼ö ÀÖ´Â data fileµéÀÇ ¼ö¸¦ Á¦ÇÑÇÑ´Ù. limit´Â in, out ¶Ç´Â µÑ´Ù file¾È¿¡ À§Ä¡ÇÑ´Ù. class°¡ ÁöÀåµÇÁö ¾Ê¾Ò´Ù¸é, limit´Â limit°¡ ÁöÁ¤µÇÁö ¾ÊÀº classµéÀ» À§ÇÑ ±âº»°ªÀ¸·Î »ç¿ëµÈ´Ù. ºÎ°¡ÀûÀ¸·Î raw parameter´Â ´ÜÁö date fileµé º¸´Ù´Â total trafficÀ» Á¦ÇÑÇϴµ¥ Àû¿ëÀ» ÇÑ´Ù. 2.3.11. data-limit [] [] class¿¡ ÁöÁ¤µÈ user°¡ Àü¼ÛÇÏ´Â data¸¦ byte ´ÜÀ§·Î Á¦ÇÑÇÑ´Ù. limit´Â in, out ¶Ç´Â µÑ´Ù¸¦ byte¸¦ ±âÁØÀ¸·Î ÇÑ´Ù. class¸¦ ÁöÁ¤ÇÏÁö ¾ÊÀ¸¸é, limit ´Â limit¸¦ ÁöÁ¤ÇÏÁö ¾ÊÀº classµéÀ» À§ÇÑ ±âº»°ªÀ¸·Î »ç¿ëµÈ´Ù. limit¸¦ ÁöÁ¤À» Çϸé ÁöÁ¤ÇÑ ÀÌ»óÀ» ÃÊ°úÇÏ¿© Àü¼ÛÀ» ÇÒ¼ö ¾ø´Ù. ÇÏÁö¸¸ ÁøÇàÁßÀÎ Àü¼Û¿¡´Â Àû¿ëÀÌ µÇÁö ¾Ê´Â´Ù. ºÎ°¡ÀûÀ¸·Î raw parameter´Â ´ÜÁö date fileµé º¸´Ù´Â total trafficÀ» Á¦ÇÑÇϴµ¥ Àû¿ëÀ» ÇÑ´Ù. 2.3.12. limit-time {*|anonymous|guest} sessionÀÌ °¡Áú¼ö ÀÖ´Â ÃÑ ½Ã°£À» Á¦ÇÑÇÑ´Ù. ±âº»ÀûÀ¸·Î Á¦ÇÑÀÌ °É·ÁÀÖÁö ¾Ê´Ù. real userµéÀº Á¦ÇÑÀ» ¹ÞÁö ¾Ê´Â´Ù. 2.3.13. guestserver [] anonymous ¶Ç´Â guest Á¢¼ÓÀ» À§ÇØ »ç¿ëµÇ¾î Áö´Â hostµéÀ» Á¶Á¤ÇÑ´Ù. ¾øÀÌ »ç¿ëÀ» ÇÑ´Ù¸é, ¸ðµç guest ³ª anonymous Á¢¼ÓÀº Á¢±ÙÀ» °ÅºÎ´çÇÑ´Ù. Çϳª ÀÌ»óÀÇ À» ÁöÁ¤ÇØ¾ß ÇÑ´Ù. guest¿Í anonymolus Á¢¼ÓÀº machainµéÀÇ À̸§¿¡ ±â¹ÝÇؼ­ Çã¶ôµÇ¾î Áø´Ù. Á¢±ÙÀÌ °ÅÀýµÇ¸é, user´Â ¸ÕÀú list¿¡ µî·ÏÀÌ µÇ¾îÁ®¾ß¸¸ »ç¿ëÀÌ °¡´ÉÇÏ´Ù. 2.3.14. limit ¿¡¼­ Á¢±ÙÀ» ÇÏ´Â userµéÀ» ½Ã°£¿¡ Á¦ÇÑÇϸç, user°¡ Á¢±ÙÀ» °ÅÀý ´çÇÒ¶§ À» Ãâ·ÂÇÑ´Ù. Limit check´Â login½Ã¿¡¸¸ ¼öÇàµÈ´Ù. ´ÙÁß "limit" ¸í·ÉÀÌ ÇöÀçÀÇ session¿¡ Àû¿ëÀÌ µÈ´Ù¸é ¸ÕÀú ¼³Á¤µÈ °ÍÀÌ »ç¿ëµÇ¾î Áø´Ù. limit Á¤ÀÇ°¡ ºüÁö°Å³ª limit°¡ -1·Î ¼³Á¤ÀÌ µÇ¸é unlimit·Î ÀÛµ¿À» ÇÑ´Ù. ´Â UUCP L.sys file¿¡¼­ÀÇ time°ú °°Àº Çü½ÄÀÌ´Ù. 2.3.15. noretrieve [absolute|relative] [class=] ... [-] ... ¼³Á¤µÈ fileµéÀÇ »ó´ëÀû ±â´ÉÀ» Á¦ÇÑÇÑ´Ù. fileµéÀÌ Àý´ë °æ·Î ¼³Á¤À» »ç¿ë ("/" character·Î ½ÃÀÛÇÏ´Â °Í ó·³) ÇÑ´Ù¸é, ÀÌ fileµéÀº ¾òÀ»¼ö ¾ø´Â °ÍÀ¸·Î Ç¥±â°¡ µÇ¾îÁø´Ù. ´Ù½Ã¸»ÇØ filename°ú ¸ÅÄ¡µÇ´Â ¸ðµç fileµéÀº Àü¼ÛÀÌ °ÅÀýµÈ´Ù. ¿¹¸¦µé¾î noretrieve /etc/passwd core ¼³Á¤Àº /etc/passwd fileÀ» ¾ò¾î°¥¼ö ¾ø°Ô ÇÑ´Ù. ÀÌ¿¡ ¹ÝÇØ ÀÌ°ÍÀÌ /etc¿¡ ÀÖÁö ¾Ê´Â ´Ù¸é "passwd" fileÀ» Àü¼Û ¹Þ¾Æ °¥¼ö°¡ ÀÖ´Ù. ´Ù¸¥ ¸é¿¡¼­ "core"¶ó´Â À̸§À» °¡Áø fileÀº ¾îµð¼­µµ Àü¼ÛÀ» ¹ÞÀ»¼ö°¡ ¾ø´Ù. ½½·¡½¬("/")·Î ³¡³ª´Â Àý´ë °æ·Î´Â ±× directory¾ÈÀÇ ¸ðµç fileµéÀ» Àü¼Û ÇÒ¼ö ¾ø°Ô Ç¥±âµÇ¾î Áö´Â °ÍÀ» ÀǹÌÇÑ´Ù. Àº ÇϳªÀÇ file ¶Ç´Â ÀϹÝÀûÀΠǥÇöÀ¸·Î¼­ Á¤ÀǵǾî Áø´Ù. ºÎ°¡ÀûÀΠù¹ø°ÀÇ ¸Å°³º¯¼ö´Â ÇöÀçÀÇ chroot'd ȯ°æ¿¡ Àý´ëÀû ¶Ç´Â »ó´ëÀûÀ¸·Î Çؼ®µÇ¾îÁö´Â À̸§µéÀÎÁö ¾Æ´ÑÁö¸¦ ¼±ÅÃÇÑ´Ù. ±âº»Àº slash·Î ½ÃÀÛÇÏ´Â Àý´ë°æ·Î·Î Çؼ®À» ÇÑ´Ù. noretrieve Á¦ÇÑÀº ƯÁ¤ classµéÀÇ memberµéÀ» ±â¹ÝÀ¸·Î ÇÑ´Ù. ¾î¶² class°¡ ÁöÁ¤µÇ¾îÁ® ÀÖ°í ÇöÀç user°¡ ¾î¶² ÁÖ¾îÁø classµéÀÇ memberµéÀ̶ó¸é ÁöÁ¤µÈ fileµéÀº »ó´ëÀûÀÎ °ÍÀÌ ¾Æ´Ï´Ù. 2.3.16. allow-retrieve [absolute|relative] [class=]... [-] ... noretrieve¿¡ ÀÇÇØ °ÅÀýµÇ¾îÁø fileµéÀÇ º¹±¸¸¦ Çã¶ôÇÑ´Ù. 2.3.17. loginfails login ½ÇÆÐÈÄ¿¡, "repeated login failusers" message¸¦ Ãâ·ÂÇÑ ÈÄ, FTP ¿¬°áÀ» Á¾·áÇÑ´Ù. ±âº»°ªÀº 5ÀÌ´Ù. 2.3.18. private user login ÈÄ, SITE GROUP°ú SITE GPASS ¸í·ÉÀº °­È­µÈ Á¢¼Ó group°ú ¿¬°áµÈ password¸¦ ÁöÁ¤ Çϱâ À§ÇØ »ç¿ëµÇ¾î Áø´Ù. group name°ú password°¡ ÁöÁ¤µÇ¸é, user´Â setgid()¸¦ ÅëÇؼ­ group Á¢±Ù file /etc/ftp/groups ¿¡ Á¤ÀÇµÈ groupÀÇ member°¡ µÈ´Ù. 2.3.19. group access file group access fileÀÇ Çü½ÄÀº access_group_name:encrypted_password:real_group_name access_group_nameÀº¹®ÀÚ ¼ýÀÚ½Ä(alphanumeric)°ú ±¸µÔÁ¡(punctuation) À¸·Î ÀÌ·ç¾îÁø ÀÓÀÇÀÇ ¹®ÀÚ¿­À̸ç, encrypted_password´Â /etc/passwd ¿Í °°ÀÌ Á¤È®ÇÏ°Ô crypt(3) ¸¦ ÅëÇؼ­ ¾Ïȣȭ µÇ¾îÁø passwordÀÌ´Ù. real_group_name Àº /etc/group ¿¡ ¼ÓÇØÀÖ´Â À¯È¿ÇÑ group À̸§ÀÌ´Ù. ÁÖÀÇ:anonymous FTP userµé¿¡ ´ëÇÑ ÀÛ¾÷À» Çϱâ À§ÇÏ¿© ÀÌ optionµéÀ» ÅëÇØ ftp server´Â /etc/group À» °è¼Ó Âü°í¸¦ Çϸç, group access fileÀº memory¿¡ load°¡ µÇ¾îÁ® ÀÖ¾î¾ß ÇÑ´Ù. ÀÌ°ÍÀº (1) ftp server´Â additional file descriptor openÀ» °¡Á®¾ß Çϸç, (2) necessary passwordµé°ú Á¢±Ù ±ÇÇѵéÀº FTP sessionÀÇ Áö¼ÓÀ» À§ÇØ SITE GROUPÀ» ÅëÇØ Á¤ÀûÀ¸·Î userµé¿¡°Ô ÁÖ¾î Áø´Ù´Â °ÍÀ» ¶æÇÑ´Ù.¸¸¾à access groupµé °ú/¶Ç´Â password¸¦ º¯°æÇϱâ À§Çؼ­´Â ÀÛµ¿ÇÏ°í ÀÖ´Â ¸ðµç FTP serverµéÀ» Á׿©¾ß ÇÑ´Ù. 2.4. Á¤º¸¿¡ °üÇÑ È°¿ë 2.4.1. greeting full|brief|terse greeting text remote user°¡ login Çϱâ Àü¿¡ ¾ó¸¶³ª ¸¹Àº Á¤º¸¸¦ º¸¿©ÁÙÁö¸¦ ¼³Á¤ÇÒ¼ö ÀÖ´Ù. "greeting full"ÀÌ ±âº»À̸ç, hostname°ú daemon versionÀ» º¸¿©ÁØ´Ù. "greeting brief"´Â hostnameÀ» º¸¿©ÁØ´Ù. ºñ·Ï fullÀÌ ±âº»ÀÌÁö¸¸ briefµµ ¸¹ÀÌ »ç¿ëµÇ¾î Áø´Ù. ¿øÇÑ´Ù¸é "text" ÇüÅ·εµ ÁöÁ¤À» ÇÒ¼ö°¡ ÀÖ´Ù. ´Â ¾î¶°ÇÑ ¹®ÀÚ¿­µµ »ç¿ëÇÒ¼öÀÖ´Ù. whitespace(°ø¹é¹®ÀÚ¿Í tab)Àº ÇϳªÀÇ single space·Î º¯È¯µÈ´Ù. 2.4.2. banner banner´Â user°¡ username/password¸¦ ÀÔ·ÂÇϱâ Àü¿¡ Ãâ·ÂÀÌ µÈ´Ù´Â °ÍÀ» Á¦¿ÜÇÏ°í´Â message ¸í·É°ú À¯»çÇÏ°Ô ÀÛµ¿À» ÇÑ´Ù. ´Â anonymous FTP directory ÀÇ base(/home/ftp)°¡ ¾Æ´Ï¶ó real system root¸¦ ±âÁØÀ¸·Î ÇÑ´Ù. °æ°í: ÀÌ ¸í·ÉÀ» »ç¿ëÇÏ´Â °ÍÀº FTP serverÀÇ »ç¿ëÀ» Ç¥½ÃÇÏ´Â °ÍÀ¸·Î ºÎÅÍ ÁÁÁö ¾ÊÀº ÀǵµÀÇ FTP clientµéÀ» ¿ÏÀüÇÏ°Ô ¸·À»¼ö ÀÖ´Ù. ¸ðµç clientµéÀÌ multi-line ÀÀ´äµéÀ» Á¶Á¤ÇÒ¼ö ÀÖ´Â °ÍÀº ¾Æ´Ï´Ù. (¾î¶»°Ô bannerµéÀÌ Ãâ·Â µÇ¾îÁö´ÂÁö ) 2.4.3. hostname ftp serverÀÇ ±âº» host nameÀ» Á¤ÀÇÇÑ´Ù. ÀÌ stringÀº magic cookie %LÀ» »ç¿ëÇÒ ¶§¸¶´Ù greeting message¿¡ Ãâ·ÂÀÌ µÇ¾î Áø´Ù. virtual serverµéÀÇ host nameÀº ÀÌ °ªÀ» µ¤¾î¾²°Ô µÈ´Ù. ÁöÁ¤À» ÇÏÁö ¾ÊÀ¸¸é, local machineÀÇ ±âº» host nameÀÌ »ç¿ëµÇ¾î Áø´Ù. 2.4.4. email ftp main °ü¸®ÀÚÀÇ email address¸¦ Á¤ÀÇÇÑ´Ù. ÀÌ stringÀº magic cookie %E¸¦ »ç¿ëÇÒ¶§ ¸¶´Ù Ãâ·ÂÀÌ µÇ¾î Áø´Ù. 2.4.5. message { { ...}} ¿Í ÇÔ²² fileÀ» ÁöÁ¤Çϸç user°¡ loginÀ» ÇÒ¶§³ª working directory¸¦ º¯°æÇÒ¶§ ftpd°¡ user¿¡°Ô ÀÌ fileÀÇ ³»¿ëÀ» Ãâ·ÂÇÏ°Ô²û ÇÑ´Ù. parameter´Â "LOGIN" ¶Ç´Â "CWD="À» ÀÌ¿ëÇÑ´Ù. ÀÌ "CWD="ÀÌ¸é ¿¡´Â °øÁö¸¦ º¸¿©ÁÙ »õ·Î¿î ±âº» directory¸¦ ÁöÁ¤À» ÇÑ´Ù. ´Â ºÎ°¡ÀûÀ¸·Î »ç¿ëÀÌ µÇ¾î Áö¸ç, ¿ÀÁ÷ ƯÁ¤ classÀÇ member µé¿¡°Ô Ãâ·ÂÀÌ µÇ¾îÁú message¸¦ ÁöÁ¤À» ÇÑ´Ù. ÇϳªÀÌ»óÀÇ class°¡ ÁöÁ¤µÇ¾î Áú¼ö ÀÖ´Ù. readmi file¿¡¼­ ÁöÁ¤µÈ text string·Î¼­ cookie¸¦ ´ëüÇϱâ À§ÇØ "magic cookie"¸¦ »ç¿ëÇÒ¼ö°¡ ÀÖ´Ù. %T local time (form Thu Nov 15 17:12:42 1990) %F free space in partition of CWD (kbytes) [¸ðµç sys­ tem¿¡¼­ Àû¿ëµÇÁö´Â ¾ÊÀ½] %C ÇöÀç ÀÛ¾÷ÁßÀÎ directory %E ftpaccess ¿¡¼­ Á¤ÀÇÇÑ adminÀÇ Email address %R ¿ø°Ý host name %L local host name %u RFC931 ÀÎÁõÀ» ÅëÇØ °áÁ¤µÈ username %U login time¶§ ÁÖ¾îÁø username %M ÇØ´ç classÀÇ ÃÖ´ë Á¢¼ÓÀÚ¼ö %N ÇØ´ç class¿¡¼­ÀÇ ÇöÀç Á¢¼ÓÀÚ ¼ö %B disk blockµé¿¡ ÇÒ´çµÇ¾îÁø Àý´ëÀû limit %b disk blockµé¿¡ ÇÒ´çµÇ¾îÁø limit %Q ÇöÀç block ¼ö %I inode (+1)¿¡ ÇÒ´çµÈ ÃÖ´ë °ª %i ÇÒ´çµÈ inode limit %q inode¿¡ ÇÒ´çµÈ ÇöÀç °ª %H excessive disk use ¿¡ ´ëÇÑ ½Ã°£ Á¦ÇÑ %h texcessive files¿¡ ´ëÇÑ ½Ã°£ Á¦ÇÑ ratios: %xu ¾÷·Îµå bytes %xd ´Ù¿î·Îµå bytes %xR ¾÷·Îµå/´Ù¿î·Îµå ºñÀ² (1:n) %xc Credit bytes %xT ½Ã°£ Á¦ÇÑ (ºÐ) %xE Elapsed time since login (minutes) %xL ³²Àº ½Ã°£ %xU ¾÷·Îµå ÇÑ°è %xD ´Ù¿î·Îµå ÇÑ°è ÀÌ message´Â userµéÀ» ±ÍÂú°Ô ÇÏ´Â °ÍÀ» ÇÇÇϱâ À§ÇÏ¿© ¿ÀÁ÷ Çѹø¸¸ Ãâ·ÂÀÌ µÈ´Ù. ¸Þ¼¼ÁöµéÀÌ À͸í FTP user¿¡ ÀÇÇؼ­ ¼öÇàµÇ¾úÀ»¶§ ´Â À͸í FTP directory treeÀÇ root·Î º¯°æÀÌ µÊÀ» ±â¾ïÇØ¾ß ÇÑ´Ù. 2.4.6. readme { {}} ftp°¡ login½Ã³ª fileµéÀÌ Á¸ÀçÇÏ°í ±× fileµéÀÇ date°¡ º¯°æµÈ working directory·Î À̵¿À» ÇÒ¶§ userµé¿¡°Ô °øÁöÇÒ fileµéÀ» ·Î¼­ Á¤ÀÇ ÇÑ´Ù. parameter´Â "LOGIN" ¶Ç´Â "CWD=" Áß¿¡ Çϳª¸¦ ¼±ÅÃÇÑ´Ù. ÀÌ "CWD=" À̸é, Àº °øÁö°¡ ½ÇÇàµÉ »õ·Î¿î ±âº» directory¸¦ ÁöÁ¤ÇÑ´Ù. message´Â userµéÀ» ±ÍÂú°Ô ÇÏ´Â °ÍÀ» ÇÇÇÏ°Ô Çϱâ À§ÇÏ¿© ¿ÀÁ÷ Çѹø¸¸ Ãâ·ÂÀÌ µÉ°ÍÀÌ´Ù. README message µéÀÌ À͸í FTP user¿¡ ÀÇÇØ ¼öÇàÀÌ µÉ¶§, ´Â À͸í FTP directory treeÀÇ root·Î º¯°æÀÌ µÊÀ» ±â¾ïÇØ¾ß ÇÑ´Ù. option ÁöÁ¤Àº messageµéÀÌ ¿ÀÁ÷ ƯÁ¤ classÀÇ member µé¿¡°Ô¸¸ Ãâ·ÂÀÌ µÇ¾îÁöµµ·Ï ÇÒ¼ö ÀÖ´Ù. Çϳª ÀÌ»óÀÇ class°¡ ÁöÁ¤µÉ¼ö ÀÖ´Ù. 2.5. ·Î±× È°¿ë 2.5.1. log commands userµé¿¡ ÀÇÇØ °³º°ÀûÀÎ ¸í·ÉÀÇ loggingÀ» °¡´ÉÄÉ ÇÑ´Ù. ´Â "anonymous", "guest", "real" À̶ó´Â keywordµéÀÇ list¸¦ ½°Ç¥(comma) ·Î¼­ ºÐ¸®ÇÏ¿© ÁöÁ¤ÇÒ¼ö ÀÖ´Ù. "real" keyword°¡ Æ÷ÇԵǾî ÀÖ´Ù¸é, loggingÀº real account·Î Á¢±ÙÇϱâ À§ÇØ FTP¸¦ »ç¿ëÇÏ´Â userµéÀ» À§ÇØ ÀÛµ¿À» ÇÒ °ÍÀÌ´Ù. ±×¸®°í "anonymous" keyword°¡ Æ÷ÇԵǾî Áø´Ù¸é, loggingÀº anonymous FTP¸¦ »ç¿ëÇÏ´Â userµéÀ» À§ÇØ ÀÛµ¿ÇÒ °ÍÀÌ´Ù. "guest" keyword´Â guest Á¢±Ù °èÁ¤µé°ú ¸ÅÄ¡°¡ µÈ´Ù. (´õ ¸¹Àº Á¤º¸¸¦ ¾ò±â À§Çؼ­´Â "guestgroup"À» ÂüÁ¶Ç϶ó) 2.5.2. log transfers real user³ª anonymous userµé ¸ðµÎ¸¦ À§ÇÑ file Àü¼ÛÀÇ loggingÀ» °¡´ÉÄÉ Çϸç, inbound¿Í outbound¸¦ ºÐ¸®ÇÏ¿© loggingÀ» ÇÒ¼ö°¡ ÀÖ´Ù. ´Â "anonymous", "guest", "real"°ú °°Àº keywordÀÇ listµéÀ» ½°Ç¥(comma)·Î¼­ ±¸ºÐÀ» ÇÑ´Ù. "real" keyword°¡ Æ÷ÇԵǾî ÀÖ´Ù¸é, loggingÀº real account·Î Á¢±ÙÇϱâ À§ÇØ FTP¸¦ »ç¿ëÇÏ´Â userµéÀ» À§ÇØ ÀÛµ¿À» ÇÒ °ÍÀÌ´Ù. ±×¸®°í "anonymous" keyword°¡ Æ÷ÇԵǾî Áø´Ù¸é, loggingÀº anonymous FTP¸¦ »ç¿ëÇÏ´Â userµéÀ» À§ÇØ ÀÛµ¿ÇÒ °ÍÀÌ´Ù. "guest" keyword´Â guest Á¢±Ù °èÁ¤µé°ú ¸ÅÄ¡°¡ µÈ´Ù. (´õ ¸¹Àº Á¤º¸¸¦ ¾ò±â À§Çؼ­´Â "guestgroup"À» ÂüÁ¶Ç϶ó) Àº "inbound"¿Í "outbound" µÎ°³ÀÇ keyword¸¦ ½°Ç¥·Î¼­ ±¸ºÐÀ» ÇÏ¿© ÁöÁ¤À» Çϸç, ÀÌ optionÀ¸·Î¼­ server·Î º¸³»°í ¹Þ´Â fileµéÀ» À§ÇÑ Àü¼Û log¸¦ ±â·ÏÇÑ´Ù. 2.5.3. log security real, guest, anonymous userµéÀ» À§ÇÑ º¸¾È ruleµé(noretrieve, .notar, µî)À» ¾î±â´Â °ÍµéÀÇ log¸¦ ±â·ÏÇϵµ·Ï ÇÑ´Ù. ´Â "anonymous", "guest", "real" À̶ó´Â keywordµéÀÇ list¸¦ ½°Ç¥(comma)·Î¼­ ºÐ¸®ÇÏ¿© ÁöÁ¤ÇÒ¼ö ÀÖ´Ù. "real" keyword°¡ Æ÷ÇԵǾî ÀÖ´Ù¸é, loggingÀº real account·Î Á¢±ÙÇϱâ À§ÇØ FTP¸¦ »ç¿ëÇÏ´Â userµéÀ» À§ÇØ ÀÛµ¿À» ÇÒ °ÍÀÌ´Ù. ±×¸®°í "anonymous" keyword°¡ Æ÷ÇԵǾî Áø´Ù¸é, loggingÀº anonymous FTP¸¦ »ç¿ëÇÏ´Â userµéÀ» À§ÇØ ÀÛµ¿ÇÒ °ÍÀÌ´Ù. "guest" keyword´Â guest Á¢±Ù °èÁ¤µé°ú ¸ÅÄ¡°¡ µÈ´Ù. (´õ ¸¹Àº Á¤º¸¸¦ ¾ò±â À§Çؼ­´Â "guestgroup" À» ÂüÁ¶Ç϶ó) 2.5.4. log syslog+xferlog incoming, outgoing Àü¼Ûµé¿¡ ´ëÇÑ logging messageµéÀ» syslog·Î ÇâÇÏ°Ô ÇÑ´Ù. 2.6. ¿©·¯°¡Áö È°¿ë 2.6.1. alias directory¿¡ ´ëÇÑ alias¿Í À» Á¤ÀÇÇÑ´Ù. ³í¸®Àû directoryÀÇ °³³äÀ» Ãß°¡ÇÏ¿© »ç¿ëÇÒ¼ö ÀÖ´Ù. ÀÌ ¿É¼ÇÀÌ ¾øÀ¸¸é ¸Þ¼¼ÁöµéÀº xferlog¿¡ ±â·ÏµÈ´Ù. syslog+xferlog´Â system log¿Í xferlog ¾çÂÊ¿¡ ¸Þ¼¼Áö¸¦ ±â·ÏÇÑ´Ù 2.7. Upload/Download ºñÀ² ÀÌ ¸í·ÉµéÀ» »ç¿ëÇϱâ À§Çؼ­´Â WU-FTPD ÄÄÆÄÀÏ ½Ã¿¡ --enable- ratios ¿É¼ÇÀ» Áà¾ß ÇÑ´Ù. 2.7.1. ul-dl-rate [ ...] ¾÷·Îµå/´Ù¿î·Îµå ºñÀ²À» ÁöÁ¤ÇÑ´Ù. (1:rate) ftp user°¡ 1 byte¸¦ ¾÷·Îµå ÇÒ¶§ byte¸¦ ¾ò°Ô µÈ´Ù. ±âº»°ªÀ¸·Î´Â ºñÀ²ÀÌ ¾ø´Ù. 2.7.2. dl-free [ ...] fileÀº ´Ù¿î·Îµå°¡ ratio¿¡ Àû¿ë¹ÞÁö ¾Ê´Â´Ù. 2.7.3. dl-free-dir [ ...] µð·ºÅ丮¿¡ ÀÖ´Â ¸ðµç ÆÄÀϵéÀº ratio¿¡ Àû¿ëÀ» ¹ÞÁö ¾Ê´Â´Ù. dl-free and dl-free-dir´Â chroot() ȯ°æÀÌ ¾Æ´Ñ ½Ã½ºÅÛ root¸¦ »ç¿ëÇÏ¿© Á¦ÇÑÀ» ÇÏ°Ô µÈ´Ù´Â °ÍÀ» ÁÖÀÇÇØ¾ß ÇÑ´Ù. 2.8. ¿©·¯°¡Áö È°¿ë 2.8.1. alias directory¿¡ ´ëÇÑ alias¿Í À» Á¤ÀÇÇÑ´Ù. ³í¸®Àû directoryÀÇ °³³äÀ» Ãß°¡ÇÏ¿© »ç¿ëÇÒ¼ö ÀÖ´Ù. ¿¹¸¦ µé¾î: alias rfc: /pub/doc/rfc Àº userµéÀÌ ¸í·É¾î "cd frc:"¿¡ ÀÇÇØ ¾î¶² directory·Î ºÎÅÍ /pub/doc/rfc·Î accessÇÏ´Â °ÍÀ» °¡´ÉÄÉ ÇÑ´Ù. 2.8.2. cdpath cdpath¾È¿¡ entry¸¦ Á¤ÀÇÇÑ´Ù. ÀÌ°ÍÀº directory º¯°æ½Ã¿¡ »ç¿ëµÇ¾î Áö´Â search path¸¦ Á¤ÀÇÇÑ´Ù. ¿¹¸¦ µé¾î: cdpath /pub/packages cdpath /.aliases Àº userµéÀÌ /pub/packages ¶Ç´Â /.aliases directoryµé ÇÏÀ§¿¡ ÀÖ´Â ¾î¶² directory·Î Á÷Á¢ cd¸¦ ÇÏ´Â °ÍÀ» Çã¶ôÇÑ´Ù. search path´Â ftpaccess file¿¡ ±â·ÏµÈ lineµéÀÇ ¼ø¼­¿¡ ÀÇÇØ Á¤ÀǵǾîÁø´Ù. userµéÀÌ ¸í·ÉÀ» ½ÇÇàÇϸé: cd foo directoryµéÀº ¾Æ·¡ÀÇ ¼ø¼­¸¦ ÅëÇØ Ã£¾Æ Áú°ÍÀÌ´Ù. ./foo an alias called "foo" /pub/packages/foo /.aliases/foo cd path´Â ¿ÀÁ÷ cd ¸í·É¾î·Î¼­¸¸ °¡´ÉÇÏ´Ù. ¸¸¾à ¸¹Àº ¼öÀÇ aliasµéÀ» °¡Áö°í ÀÖ´Ù¸é ¾Æ¸¶ userµé¿¡°Ô »ç¿ë°¡´ÉÇÏ°Ô ¸¸µé°í ½ÍÀº ¸ðµç °÷À¸·Î ¸µÅ©¸¦ ÇÏ´Â °ÍÀ¸·Î aliasµéÀ» ¼³Ä¡Çϱ⸦ ¿øÇÒ°ÍÀÌ´Ù. 2.8.3. compress & tar compress [ ...] tar [ ...] ¿Í ¸ÅÄ¡ÇÏ´Â class¸¦ À§ÇØ compress¿Í tar »ç¿ëÀ» °¡´ÉÇÏ°Ô ÇÑ´Ù. ½ÇÁ¦ ÀüȯÀº ¿ÜºÎ file FTPLIB/ftpconversions¿¡ ÀÇÇØ Á¤ÀÇ°¡ µÇ¾î Áø´Ù. 2.8.4. shutdown ¿¡ fileÀÌ ÁöÁ¤ÀÌ µÇ¸é, ¼­¹ö´Â Á¤±âÀûÀ¸·Î ÀÌ fileÀÇ ³»¿ëÀ» È®ÀÎÀ» ÇÏ¿© ¼Ë´Ù¿îÀ» Çϵµ·Ï ÇÑ´Ù. ¼Ë´Ù¿î °èȹÀÌ Á¸ÀçÇϸé user´Â ¼­¹ö·Î ºÎÅÍ ÀÌ¿¡ ´ëÇÑ Å뺸¸¦ ¹Þ°Ô µÈ´Ù. ¼Ë´Ù¿î ÀüÀÇ ÁöÁ¤µÈ ½Ã°£ ÀÌÈÄ¿¡´Â »õ·Î¿î Á¢¼ÓÀÌ °ÅÀýµÇ¸ç, ¼Ë´Ù¿î ÀÌÀüÀÇ ÁöÁ¤µÈ ½Ã°£¿¡´Â ÇöÀç Á¢¼ÓÀÚµéÀÇ ¿¬°áÀÌ ÇØÁ¦µÈ´Ù. ¿¡ ÁöÁ¤µÈ ÆÄÀÏÀÇ ±¸Á¶´Â ¾Æ·¡¿Í °°´Ù : <¿¬µµ> <¿ù> <ÀÏ> <½Ã> <ºÐ> <°ÅÀý_offset> <ÇØÁ¦_offset> > <¿¬µµ> 1970³âµµ ÀÌÈÄ·Î ÁöÁ¤À» ÇÑ´Ù. <¿ù> 1-12¿ùÀ» 0-11·Î ÁöÁ¤À» ÇÑ´Ù. <ÀÏ> 0-23 <ºÐ> 0-59 <°ÅÀý_offset> ¿Í <ÇØÁ¦_offset> Àº ¼Ë´Ù¿îÀ» Çϱâ Àü¿¡ »õ·Î¿î Á¢¼ÓÀ» °ÅÀýÇÏ´Â °Í°ú ÇöÀç Á¸ÀçÇÏ´Â Á¢¼ÓÀ» ÇØÁ¦ÇÏ´Â offsetÀ» HHMM Çü½ÄÀ¸·Î ÁöÁ¤À» ÇÑ´Ù. 0120Àº 1½Ã°£ 20ºÐÀ» ÀǹÌÇÑ´Ù. ´Â "message"ÀÇ ruleµéÀ» µû¸£¸ç, ¾Æ·¡¿¡ ³ª¿­µÇ¾î ÀÖ´Â Ãß°¡ÀûÀÎ magic cookie¸¦ »ç¿ëÇÒ¼öµµ ÀÖ´Ù. %s ½Ã½ºÅÛÀÌ ¼Ë´Ù¿î µÇ´Â ½Ã°£ %r »õ·Î¿î Á¢¼ÓÀÌ °ÅºÎµÇ´Â ½Ã°£ %d ÇöÀç »ç¿ëÀÚµéÀÌ °­Á¦ logoutµÇ´Â ½Ã°£ ¸ðµç ½Ã°£µéÀº ddd MMM DD hh:mm:ss YYYY ÀÇ ÇüÅ·Π»ç¿ëÀÌ µÈ´Ù. ¼³Á¤ file¿¡´Â ¿ÀÁ÷ ÇϳªÀÇ "shutdown" ¸í·É¸¸ °¡´ÉÇÏ´Ù. ¼³Á¤ file¿¡¼­ÀÇ shutdown ¸í·ÉÀº ¿ÜºÎ ÇÁ·Î±×·¥ÀÎ ftpshut(8)À» ÀÚµ¿À¸·Î »ç¿ëÀ» ÇÏ°Ô µÈ´Ù. 2.8.5. daemonaddress
ÀÌ °ªÀÌ ÁöÁ¤ÀÌ µÇ¾î ÀÖÁö ¾ÊÀ¸¸é, ¼­¹ö´Â ¸ðµç IP address¿¡¼­ÀÇ Á¢¼Ó¿¡ ±Í¸¦ ±Í¿ïÀÌ°Ô µÈ´Ù. ¹Ý¸é¿¡ ÁöÁ¤ÀÌ µÇ¾î ÀÖÀ¸¸é ¿ÀÁ÷ ÁöÁ¤µÈ IP address ¿¡¸¸ ±Í¸¦ ±Í¿ïÀÌ°Ô µÈ´Ù. ÀÌ ÀýÀÇ »ç¿ëÀº ¾ÈÇÏ´Â °ÍÀÌ ÁÁ´Ù. ÀÌ°ÍÀº ÇϳªÀÇ site¸¸À» Áö¿øÇÒ¶§ Ãß°¡°¡ µÇ¾îÁø´Ù. ÀÌ°ÍÀº virtual hosting ¼³Á¤À» ¹«½ÃÇϸç, ±¸¹®Àº ¾Æ¸¶µµ daemonÀÇ ´ÙÀ½ ¹öÁ¯¿¡¼­´Â º¯È­ÇÒ°Í °°´Ù. 2.8.6. virtual
virtual ftp server¸¦ °¡´ÉÇÏ°Ô ÇÑ´Ù.
´Â virtual serverÀÇ ip address¸¦ ÁöÁ¤ÇÑ´Ù. µÎ¹ø° ÀÎÀÚÁß root ´Â virtual server¸¦ À§ÇÑ ftprootÀÇ °æ·Î¸¦ ÁöÁ¤À» Çϸç, banner ´Â virtual server¿¡ Á¢¼ÓÀ» ÇÒ¶§ user¿¡°Ô Ãâ·ÂÀ» ÇÒ ³»¿ëÀÇ °æ·Î¸¦ ÁöÁ¤À» Çϸç logfile Àº virtual server¸¦ À§ÇÑ Àü¼ÛÀ» ±â·ÏÇϱâ À§ÇÑ fileÀÇ °æ·Î¸¦ ÁöÁ¤À» ÇÑ´Ù. ¸¸¾à logfile ¸¦ ÁöÁ¤ÇÏÁö ¾ÊÀ¸¸é ±âº»ÀûÀÎ ftp logfileÀÌ »ç¿ëÀÌ µÇ¾îÁø´Ù. virtual serverµé¿¡ Àû¿ëÀÌ µÇ¾î Áö´Â message fileµéÀÇ ¹®¹ý°ú permissionµéÀº ´Ù¸¥ message file¿¡¼­ »ç¿ëÇÏ´Â °Í°ú °°´Ù. ÁÖÀÇ: OS¿¡¼­ ÀÌ ¿ä¼Ò°¡ Áö¿øÀÌ ¾ÈµÉ¼öµµ ÀÖ´Ù. ÀÌ°ÍÀº BSD/OS, Solaris 2.X ¿Í Linux ¿¡¼­ Å×½ºÆ®°¡ µÇ¾îÁ³´Ù.
´Â IP numberº¸´Ù´Â hostnameÀ¸·Î ÁöÁ¤ÀÌ µÇ¾îÁ®¾ß ÇÑ´Ù. ¸¸¾à FTP sessionÀÌ ½ÃÀÛ µÇ¾îÁú¶§ DNS check°¡ ºÒ°¡´ÉÇÏ´Ù¸é hostnameÀÌ match°¡ µÇ¾î ÁöÁö ¾ÊÀ¸¹Ç·Î À̶§´Â »ç¿ëÀ» ÇÏÁö ¸»¾Æ¾ß ÇÑ´Ù. ³ª(¹ø¿ªÀÚ ^^)ÀÇ °æÇèÀ¸·Î´Â hostnameº¸´Ù´Â ip address·Î ÁöÁ¤À» ÇÏ´Â °ÍÀÌ ÁÁ´Ù. ƯÈ÷ ip address Çϳª·Î name-based virtual server¸¦ ¿î¿µÇϱ⸦ ¿øÇÑ´Ù¸é wu-ftpd ¿¡¼­´Â Áö¿øÀ» ÇÏÁö ¾Ê´Â ´Ù´Â Á¡À» ÁÖÀÇÇϵµ·Ï ÇÏÀÚ. 2.8.7. virtual
ȯ¿µ message¿Í status ¸í·É¿¡ hostnameÀ» º¸¿©ÁÖµµ·Ï ¼³Á¤À» ÇÑ´Ù. ¶ÇÇÑ message file°ú HELP ¸í·É¿¡¼­ ÁÖ¾îÁø ¿¡ email address¸¦ »ç¿ë Çϵµ·Ï ÇÑ´Ù. 2.8.8. virtual
allow [ ...] virtual
deny [ ...] ÀϹÝÀûÀ¸·Î, real°ú guest À¯ÀúµéÀº À̵éÀÌ guestµéÀÌ°í virtual root·Î chroot°¡ ÁöÁ¤ÀÌ µÇ±â Àü±îÁö´Â virtual server·Î Á¢±ÙÀÌ Çã¶ôµÇÁö ¾Ê´Â´Ù. virtual allow lineµéÀÇ list¿¡ ÀÖ´Â user µéÀº Á¢±ÙÀ» Çã¶ôµÈ´Ù. username¿¡ "*"¸¦ ÁöÁ¤ÇÏ¸é ¸ðµç userµéÀÌ Á¢¼ÓÀ» Çã¶ôÇÑ´Ù´Â Àǹ̷Π»ç¿ëÀÌ µÇ¾îÁø´Ù. virtual deny ÀýµéÀº virtual allow Àýµé ÀÌÈÄ¿¡ ÁøÇàÀÌ µÇ¸ç, ¸ðµç userµéÀÌ Çã¶ôµÇ¾î Á³À»¶§ deny access¸¦ ÁöÁ¤À» Çϱâ À§ÇÏ¿© »ç¿ëµÇ¾î Áø´Ù. 2.8.9. virtual
private ÀϹÝÀûÀ¸·Î, ÀÍ¸í »ç¿ëÀÚµéÀº virtual server¿¡ log°¡ Çã¶ôµÇ¾î Áø´Ù. ÀÌ optionÀº ±×µéÀÇ Á¢±ÙÀ» °ÅÀýÇϴµ¥ »ç¿ëÀ» ÇÑ´Ù. 2.8.10. virtual
passwd °¡»ó µµ¸ÞÀθ¶´Ù ´Ù¸¥ Æнº¿öµå ÆÄÀÏÀ» »ç¿ëÇÒ¼ö ÀÖ´Ù. ÀÌ ¿É¼ÇÀ» »ç¿ëÇϱâ À§Çؼ­´Â ÄÄÆÄÀϽÿ¡ --enable- passwd(¶Ç´Â ´Ù¸¥ PASSWD)¸¦ ÁÖ°í ÄÄÆÄÀÏÀ» ÇØ¾ß ÇÑ´Ù. 2.8.11. virtual
shadow °¡»ó µµ¸ÞÀθ¶´Ù ´Ù¸¥ ½¦µµ¿ì ÆÄÀÏÀ» »ç¿ëÇÒ¼ö ÀÖ´Ù. ÀÌ ¿É¼ÇÀ» »ç¿ëÇϱâ À§Çؼ­´Â ÄÄÆÄÀϽÿ¡ --enable- passwd(¶Ç´Â ´Ù¸¥ PASSWD)¸¦ ÁÖ°í ÄÄÆÄÀÏÀ» ÇØ¾ß ÇÑ´Ù. 2.8.12. defaultserver defaultserver deny [ ...] defaultserver allow [ ...] ÀϹÝÀûÀ¸·Î, ¸ðµç userµéÀº default FTP server (virtual FTP server°¡ ¾Æ´Ñ)·ÎÀÇ Á¢±ÙÀÌ Çã¶ôµÇ¾î Áø´Ù. defaultserver ´Â ƯÁ¤ userµéÀÇ Á¢¼ÓÀ» °ÅºÎ¸¦ Çϴµ¥ »ç¿ëÀ» ÇÑ´Ù; "*"¸¦ ÁöÁ¤À» ÇÏ¸é ¸ðµç userµéÀÇ Á¢±ÙÀ» °ÅÀý ÇÑ´Ù. ƯÁ¤ÇÑ userµéÀº defaultserver allow¸¦ »ç¿ëÇÔÀ¸·Î¼­ Á¢±ÙÀÌ °¡´É ÇÏ°Ô µÈ´Ù. 2.8.13. defaultserver private ÀϹÝÀûÀ¸·Î, À͸í userµéÀº virtual FTP°¡ ¾Æ´Ñ ±âº» FTP server·Î Á¢±ÙÀÌ Çã¶ôµÇ¾î Áø´Ù. ÀÌ ¹®ÀåÀº À͸í Á¢±ÙÀ» °ÅºÎÇϴµ¥ »ç¿ëÀ» ÇÑ´Ù. virtual°ú defaultserverÀÇ allow, deny, privateÀýÀº ¾î¶² userµéÀÌ ¾î¶°ÇÑ FTP serverµé¿¡ Á¢±ÙÀÌ Çã¶ôµÇ¾î Áö´Â °ÍÀ» Á¶ÀýÇÒ¼ö ÀÖ´Ù´Â Àǹ̸¦ Á¦°øÇÑ´Ù. 2.8.14. passive address PASV ¸í·ÉÀ¸·Î ¿Â ÀÀ´äÀ¸·Î ¸®Æ÷Æ®µÈ ÁÖ¼ÒÀÇ Á¶ÀýÀ» Çã¶ôÇÑ´Ù. ¾î¶² control connectionÀÌ ÀÌ ¿ä±¸ÇÏ´Â passive data connection (PASV)¿Í ¸ÅÄ¡¸¦ ÇÒ¶§ ÁÖ¼Ò°¡ ¸®Æ÷Æ® µÇ¾îÁø´Ù. ÁÖÀÇ: ÀÌ°ÍÀº daemonÀÌ ½ÇÁ¦·Î ±Í¸¦ ±Í¿ïÀÌ´Â ÁÖ¼Ò¸¦ º¯È­ ½ÃÅ°´Â °ÍÀº ¾Æ´Ï´Ù. ¿ÀÁ÷ client·Î ¸®Æ÷Æ® µÇ´Â ÁÖ¼ÒÀÏ »ÓÀÌ´Ù. ÀÌ ¿ä¼Ò´Â IP-renumbering firewallµé µÚ¿¡¼­ daemonµéÀÌ Á¤È®ÇÏ°Ô µ¿ÀÛÇÏ°Ô ÇÏ´Â °ÍÀ» Çã¶ôÀ» ÇÑ´Ù. ¿¹¸¦ µé¾î: passive address 10.0.1.15 10.0.0.0/8 passive address 192.168.1.5 0.0.0.0/0 ¸ðµç °÷À¸·Î ºÎÅÍÀÇ Á¢¼ÓÀÌ 192.168.1.5¿¡ ±Í¸¦ ±Í¿ïÀÌ°í ÀÖ´Â µ¿¾È A classÀÇ network 10À¸·Î ºÎÅÍÀÇ clientÀÇ Á¢¼ÓÀº passive connection ÀÌ ip address 10.0.1.15¿¡ ±Í¸¦ ±Í¿ïÀÌ°í ÀÖ´Ù´Â °ÍÀ» ÀǹÌÇÑ´Ù. Multiple passive addressµéÀº complexÀÇ Á¶Á¤À¸·Î Á¤ÀÇ°¡ µÇ°Å³ª, multi-gateway ¶Ç´Â networkµéÀÇ Á¶Á¤À¸·Î Á¤ÀÇ°¡ µÇ¾î Áø´Ù. 2.8.15. passive ports passive data connectionÀ» ÅëÇØ »ç¿ëµÇ¾î Áö´Â TCP port numberµéÀÇ controlÀ» Çã¶ôÇÑ´Ù. control connectionÀÌ ¿¡¼­ ±îÁöÀÇ ¿µ¿ª¿¡ ÀÖ´Â Æ÷Æ®¿Í ¸ÅÄ¡µÈ´Ù¸é, daemonÀÌ ±Í¸¦ ±Í¿ïÀÌ´Â °ÍÀ» ÅëÇØ ¸¶±¸ ÀâÀÌ·Î ¼±ÅÃÀÌ µÉ °ÍÀÌ´Ù. ÀÌ ¿ä¼Ò´Â remote clientµéÀÌ ¾ÈÀüÀåÄ¡°¡ µÇ¾î ÀÖ´Â network¿¡ Á¢±ÙÀ» ÇÒ¶§ »ç¿ëÀ» ÇÏ´Â portµéÀ» Á¦ÇÑ ÇÏ´Â firewallµéÀ» Çã¶ôÇÑ´Ù. Àº machine address¿Í´Â ¹Ý´ëµÇ´Â slashµÚ¿¡ 4ÀÚ¸®·Î Ç¥±âµÇ°í ¶Ç´Â °¢ ÀÚ¸®ÀÇ bitÀÇ ÇÕÀ¸·Î Ç¥½ÃµÇ´Â network address¸¦ ÅëÇØ Ç¥½ÃµÈ´Ù. ¿¹¸¦ µé¾î, 10´ëÀÇ A class·Î ¿¹¾àµÈ ´ë¿ªÀ» »ç¿ëÇÑ´Ù¸é, netmask 255.0.0.0 ´ë½Å CIDR "/8"À» »ç¿ëÇÒ¼ö ÀÖÀ¸¸ç network¸¦ 10.0.0.0/8 ·Î Ç¥ÇöÀ» ÇÒ¼ö°¡ ÀÖ´Ù. 2.8.16. pasv-allow & port-allow pasv-allow [ ...] port-allow [ ...] ÀϹÝÀûÀ¸·Î µ¥¸óÀº ÁöÁ¤Áö ¾ÊÀº ÁÖ¼Ò¿¡¼­´Â PORT ¸í·ÉÀ» Çã¶ôÇÏÁö ¾Ê´Â´Ù. ±×¸®°í ÀÌ°ÍÀº ´Ù¸¥ ÁÖ¼Ò·Î ºÎÅÍ PASV Á¢¼ÓÀ» Çã¶ôÇÏÁö ¾Ê´Â´Ù´Â °ÍÀ» ÀǹÌÇÑ´Ù. port-allow ÀýÀº PORT ¸í·ÉÀÌ ÁÖ¾îÁø À¯Àú class·Î ÁöÁ¤µÈ ÁÖ¼ÒÀÇ ¸®½ºÆ®µéÀ» ±ÔÁ¤ÇÑ´Ù. ÀÌ ÁÖ¼ÒµéÀº ºñ·Ï Ŭ¶óÀ̾ðÆ®ÂÊÀÇ IP address°¡ ¸ÅÄ¡°¡ µÇÁö ¾Ê´Â´Ù Çصµ Çã¶ôÀÌ µÈ´Ù. pasv-allow ÀýÀº µ¥ÀÌÅÍ Á¢¼ÓÀ» ¸¸µå´Â À¯Àú Ŭ·¡½º·Î ÁöÁ¤µÈ ÁÖ¼Ò ¸®½ºÆ®¸¦ ±ÔÁ¤ÇÑ´Ù. ÀÌ ÁÖ¼ÒµéÀº ºñ·Ï Ŭ¶óÀ̾ðÆ®ÂÊÀÇ IP address°¡ ¸ÅÄ¡°¡ µÇÁö ¾Ê´Â´Ù Çصµ Çã¶ôÀÌ µÈ´Ù. 2.8.17. lslong, lsshort, lsplain lslong [ ...] lsshort [ ...] lsplain [ ...] lslogn, lsshort, lsplain ÀýÀº commnad¿Í optionsµéÀ» ¿­°ÅÇÏ¿© directory listingÀ» »ç¿ëÇÏ´Â °ÍÀ» Çã¶ôÇÑ´Ù. optionµéÀº °ø¹éÀ» Æ÷ÇÔÇÒ¼ö ¾øÀ¸¸ç, ±âº»ÀûÀÎ °ÍµéÀº ÀÌ ÀýµéÀ» ÅëÇØ ÀϹÝÀûÀ¸·Î Á¶Á¤ÀÌ µÈ´Ù´Â °ÍÀ» ÁÖÀÇÇØ¾ß ÇÑ´Ù; Àý´ëÀûÀ¸·Î ÇÊ¿äÇÒ °æ¿ì¿¡¸¸ lslong, lsshort ¶Ç´Â osplain À» »ç¿ëÇÑ´Ù. 2.8.18. mailserver FTP µ¥¸óÀÌ ¾î¶°ÇÑ upload°¡ ¹ß»ýÇßÀ» °æ¿ì ¸ÞÀÏÀ» º¸³¾ ¸ÞÀÏ ¼­¹ö¸¦ÁöÁ¤ÇÑ´Ù. ÇÑÁÙ¿¡ Çϳª¾¿ ½á¼­ ¿©·¯°³ÀÇ ¸ÞÀÏ ¼­¹ö¸¦ ÁöÁ¤ÇÒ¼ö ÀÖ´Ù; µ¥¸óÀº ÇϳªÀÇ ¸Þ¼¼Áö°¡ ¹Þ¾ÆÁú ±îÁö °¢ ¾÷·Îµå ÅëÁöÀÇ ¹è´ÞÀ» ½ÃµµÇÏ°Ô µÈ´Ù. ¸ÞÀÏ ¼­¹ö¸¦ ÁöÁ¤ÇÏÁö ¾ÊÀ¸¸é ·ÎÄà ȣ½ºÆ®·Î º¸³»°Ô µÈ´Ù. ÀÌ ¿É¼ÇÀº ÀÍ¸í ¾÷·ÎµåÀÇ °øÁö¸¦ ÀǹÌÇÑ´Ù. (incmailÀ» ÂüÁ¶Ç϶ó) 2.8.19. incmail, virtual incmail, defaultserver incmail incmail virtual
incmail defaultserver incmail ÀÍ¸í ¾÷·Îµå½Ã ÅëÁö¸¦ ÇÒ ¸ÞÀÏ ¾îµå·¹½º¸¦ ±â·ÏÇÑ´Ù. ¿©·¯°³¸¦ ÁöÁ¤ÇÏ¿© °¢°¢ ÅëÁö¸¦ ¹ÞÀ»¼ö°¡ ÀÖ´Ù. ÁöÁ¤ÇÏÁö ¾ÊÀ¸¸é, ÅëÁö¸¦ º¸³»Áö ¾Ê´Â´Ù. °¡»ó È£½ºÆ®¿¡ ´ëÇØ ÁöÁ¤À» Çϸé, ¿ÀÁ÷ ÀÌ ÁÖ¼Ò¸¸ÀÌ ÀÍ¸í ¾÷·Îµå¿¡ ´ëÇÑ ÅëÁö¸¦ ¹Þ°Ô µÈ´Ù. ¹Ý´ë·Î ÁöÁ¤ÇÏÁö ¾ÊÀ¸¸é Àüü ÁÖ¼Ò·Î ÅëÁö°¡ º¸³»Áø´Ù. Defaultserver ÁÖ¼Ò´Â ¿ÀÁ÷ FTP sessionÀÌ ÇϳªÀÇ °¡»ó È£½ºÆ®·Î¸¸ »ç¿ëµÇÁö ¾ÊÀ» °æ¿ì¿¡¸¸ Àû¿ëµÈ´Ù. ÀÌ °æ¿ì¿¡´Â ±âº» ÀÍ¸í ¿µ¿ª¿¡ ´ëÇؼ­¸¸ ÅëÁö¸¦ ¹Þ°Ô µÇ¸ç ÅëÁö¸¦ ÁöÁ¤ÇÏÁö ¾ÊÀº °¡»ó È£½ºÆ®µé¿¡°Ô´Â ÅëÁö¸¦ º¼¼ö°¡ ¾ø´Ù. 2.8.20. mailfrom, virtual mailfrom, defaultserver mailfrom mailfrom virtual
mailfrom defaultserver mailfrom ÀÍ¸í ¾÷·Îµå ÅëÁö¸¦ À§ÇÑ º¸³»´Â »ç¶÷ÀÇ ¸ÞÀÏ ÁÖ¼Ò¸¦ ÁöÁ¤ÇÑ´Ù. ÇϳªÀÇ ÁÖ¼Ò´Â ÁöÁ¤ÀÌ µÇ¾î ÀÖ¾î¾ß ÇÑ´Ù. mailfromÀÌ Àû¿ëµÇ¾î ÀÖÁö ¾Ê´Ù¸é, ¸ÞÀÏÀº ±âº» ¸ÞÀϹڽº À̸§ÀÎ "wu-ftpd"·Î ¸ÞÀÏÀ» º¸Àç°Ô µÈ´Ù. ÅëÁö¿¡ ´äÀåÀ» ½Ãµµ ÇÏ´Â °ÍÀ» ÇÇÇϱâ À§Çؼ­´Â ¶Ç´Â ¹Ý¼ÛÀÌ µÇ´Â °ÍÀ» ¸·±â À§Çؼ­, mailfrom ÁÖ¼Ò¸¦ ¹Ýµå½Ã ÁöÁ¤ÇÏ´Â °ÍÀÌ ÁÁ´Ù. 2.9. ±ÇÇÑ È°¿ë 2.9.1. chmod delete overwrite rename umask chmod delete overwrite rename umask ƯÁ¤ functionµéÀ» ¼öÇàÇÒ¼ö ÀÖ´Â ±ÇÇѵéÀ» Çã¶ôÇÏ°í ºÒÇãÇÑ´Ù. ±âº»ÀûÀ¸·Î, ¸ðµç userµé¿¡°Ô Çã¶ôÀÌ µÇ¾îÁø´Ù. ´Â keyword "anonymous", "guest", "real", "class=" µéÀ» Äĸ¶(",")·Î¼­ ±¸ºÐÇÏ¿© ³ª¿­ÇÑ´Ù. "class="¸¦ ³ªÅ¸³¾¶§´Â, classname ÀÌ ²À µû¶ó¿Í¾ß ÇÑ´Ù. ¾î¶² "class=" ¸¦ ³ªÅ¸³¾¶§, Á¦ÇÑÀº ¿ÀÁ÷ classÀÇ userµé¿¡°Ô¸¸ Àû¿ëÀÌ µÈ´Ù. 2.9.2. passwd-check () anonymous ftp¸¦ ÅëÇØ server¿¡ Á¢±ÙÀ» ÇÒ¶§ level°ú password check ÀÇ ÇüŸ¦ Á¤ÀÇÇÑ´Ù. none password check¸¦ ÇÏÁö ¾Ê´Â´Ù. trivial password¿¡ "@"ÀÌ ¹Ýµå½Ã Æ÷ÃcµÇ¾î ÀÖ´ÂÁö¸¦ checkÇÑ´Ù. rfc822 password°¡ rfc822¿¡ ÀÇ°ÅÇÑ ÁÖ¼Ò·Î µÇ¾î ÀÖ´ÂÁö¸¦ È®ÀÎÇÑ´Ù. warn user¿¡°Ô °æ°í´Â ÇϵÇ, loginÀº Çã¶ôÇÑ´Ù. enforce user¿¡°Ô °æ°í¸¦ Çϸç loginÀº Çã¶ôÇÏÁö ¾Ê´Â´Ù. 2.9.3. deny-email e-mail ÁÖ¼Ò¸¦ È¿·ÂÀÌ ¾ø´Â ¿ä¼Ò·Î¼­ °ËÅ並 ÇÏ°Ô ÇÑ´Ù. ¸¸¾à passwd- check°¡ enforce·Î ¼ÂÆõǾî ÀÖÀ¸¸é, À͸í userµéÀº ÀÌ ÁÖ¼Ò¸¦ password·Î »ç¿ëÇÏ¿© loginÇÒ¼ö°¡ ¾ø´Ù. ÀÌ°ÍÀ» ÀÌ¿ëÇÏ¿© IEUser@ or mozilla@ ¿Í °°Àº ¾î¸®¼®À» WWW brosers°¡ »ç¿ëÀ» ÇÏ´Â °ÅÁþµÈ ÁÖ¼ÒµéÀ» »ç¿ëÇÏ´Â userµéÀ» ¸·À»¼ö°¡ ÀÖ´Ù. (ÀÌ°ÍÀ» »ç¿ëÇÔÀ¸·Î¼­, ftp¸¦ À§ÇØ WWW browser¸¦ »ç¿ëÇÏ´Â userµéÀ» ¸·´Â °Í¿¡ ´ëÇØ °í½ÉÇÒ ÇÊ¿ä°¡ ¾ø´Ù. ´Ü ±×µéÀÌ »ç¿ëÀ» ÇÏ´Â browser¸¦ Á¤È®ÇÏ°Ô settingÀ» ÇØ¾ß ÇÑ´Ù.) ¿ÀÁ÷ ÇÑ line´ç ÇϳªÀÇ ÁÖ¼Ò¸¸ ¼³Á¤ÀÌ µÇÁö¸¸, ¿øÇÏ´Â ¸¸Å­ÀÇ deny-email address¸¦ °¡Áú¼ö°¡ ÀÖ´Ù. 2.9.4. path-filter { ...} ÀÇ userµéÀ» ÅëÇØ, path-filter´Â Á¤±Ô Ç¥Çö½ÄÀ» filenameÀ¸·Î ÇÒÁö ¾ÈÇÒÁö¸¦ Á¤ÀÇÇÑ´Ù. ´ÙÁßÀ¸·Î Á¤±Ô Ç¥Çö½ÄµéÀ» Çã¶ôÇÏÁö´Â ¾Ê´Â´Ù. ¸¸¾à filenameÀÌ Á¤±Ô Ç¥Çö½ÄÀÇ Ã´µµ¿Í ¸ÅÄ¡ÇÏÁö ¾Ê´Â ´Ù¸é, °¡ user µé¿¡°Ô Ãâ·ÂÀÌ µÇ¾î Áú °ÍÀÌ´Ù. ¿¹¸¦ µé¾î: path-filter anonymous /etc/pathmsg ^[-A-Za-z0-9._]*$ ^\. ^- ´Â ÀÍ¸í »ç¿ëÀÚµéÀ» ÅëÇÑ ¸ðµç upload filename µéÀº ¹Ýµå½Ã A-Z, a- z, 0-9, "._- "À¸·Î À¸·Î ÀÌ·ç¾î Á®¾ß ÇÏ¸ç ½ÃÀ۽ÿ¡ "."¿Í "-" ´Â »ç¿ëÇÒ ¼ö°¡ ¾ø´Ù´Â °ÍÀ» Á¤ÀÇÇÑ´Ù. ¸¸¾à filenameÀÌ À§ÀÇ ³»¿ë°ú ºÎÇÕÇÏÁö ¾Ê´Â´Ù¸é /etc/pathmsg ÀÌ userµé ¿¡°Ô Ãâ·ÂÀÌ µÉ°ÍÀÌ´Ù. 2.9.5. upload [absolute|relative] [class=]... [-] ["dirs"|"nodirs"] [] ·Î¼­ upload¸¦ Çã¶ôÇϰųª Çã¶ôÇÏÁö ¾ÊÀ» directory¸¦ ÁöÁ¤ÇÑ´Ù. upload¸¦ Çã¶ôÇÑ´Ù¸é, ¸ðµç fileµéÀº ¿Í À¸·Î ¼ÒÀ¯±ÇÀ» °¡Áú°ÍÀ̸ç, permissionsµéÀº ¿¡ µû¸¥´Ù. directoryµéÀº °¡Àå ¸ÅÄ¡°¡ ÀߵǴ ¿øÄ¢¿¡ µû¸¥´Ù. ¿¹¸¦ µé¾î: upload /var/ftp * no upload /var/ftp /incomingyes ftp daemon 0666 upload /var/ftp /incoming/gifs yes jlc guest 0600 nodirs ÀÌ°ÍÀº /incoming °ú /incoming/gifs ¿¡¸¸ upload¸¦ Çã¶ôÇÑ´Ù. /incoming ¿¡ upload µÈ fileµéÀº ftp/daemon ÀÇ ¼ÒÀ¯±ÇÀ» °¡Áö¸ç, Æ۹̼ÇÀº 0666À» °¡Áö°Ô µÈ´Ù. /incoming/gifs¿¡ upload µÇ¾îÁø fileÀº jlc/guestÀÇ ¼ÒÀ¯±ÇÀ» °¡Áö¸ç, 0600ÀÇ Æ۹̼ÇÀ» °¡Áö°Ô µÈ´Ù. ¿©±â¼­ Àº passowrd file¿¡¼­ "ftp" user¿¡°Ô ÁöÁ¤µÈ directory¿Í ¹Ýµå½Ã ¸ÅÄ¡°¡ µÇ¾î¾ß ÇÑ´Ù´Â °ÍÀ» ¸í½ÉÇØ¾ß ÇÑ´Ù. ºÎ°¡ÀûÀ¸·Î "dirs" ¿Í "nodirs" keyword´Â mkdir ¸í·ÉÀ» »ç¿ëÇÏ¿© ¾î¶°ÇÑ »õ·Î¿î subdirectory¸¦ ¸¸µå´Â °ÍÀ» Çã¶ô Çϰųª Çã¶ôÇÏÁö ¾Ê´Â °ÍÀ» ÁöÁ¤ÇÑ´Ù. upload ¸í·ÉÀ» »ç¿ëÇÒ¶§, directory »ý¼ºÀº default·Î Çã¶ôÀÌ µÇ¾î Áø´Ù´Â °ÍÀ» ÁÖÀÇÇØ¾ß ÇÑ´Ù. default °ªÀ» off·Î ¹Ù²Ù±â À§Çؼ­´Â ÀÌ config file¿¡¼­ upload ¸í·ÉÀ» »ç¿ëÇÏ°í ÀÖ´Â lineÁß °¡Àå À­ÁÙ¿¡ user, group, mode¸¦ ÁöÁ¤ÇØ¾ß Çϸç, "nodirs"°¡ ¹Ýµå½Ã µÚ¿¡ µû¶ó¿Í¾ß ÇÑ´Ù. directory »ý¼ºÀ» Çã°¡ÇÒ¶§ ºÎ°¡ÀûÀ¸·Î ¶ó´Â Áö½ÃÀÚ¸¦ »ç¿ëÇÒ¼ö ÀÖÀ¸¸ç ÀÌ°ÍÀº directory¸¦ »ý¼ºÇÒ ½ÃÀÇ direcotory permissionÀ» ÁöÁ¤ÇÑ´Ù. ¸¦ »ý·«Çϸé, permissionÀº ¸¦ µû¶ó°¡¸ç, ¸¶Á® »ý·«µÇ¾î ÀÖÀ¸¸é 0777ÀÌ µÈ´Ù. upload keyword´Â ¿ÀÁ÷ ÀÇ (chroot()°¡ Àû¿ëÀÌ µÇ´Â)home directory¸¦ °¡Áö°í ÀÖ´Â user(Áï anonymous)¿¡°Ô¸¸ Àû¿ëÀÌ µÈ´Ù. Àº ¾î¶°ÇÑ home directory¿Í ¸ÅÄ¡ ½ÃÅ°±â À§ÇÏ¿© "*" ·Î¼­ ÁöÁ¤À» ÇÒ¼öµµ ÀÖ´Ù. ¿Í/¶Ç´Â Àº ¾î¶² upload fileÀ̳ª directory µéÀÌ ±×µéÀÌ ¸¸µé¾îÁø directoryÀÇ ÀÚ½ÅÀÇ ¼ÒÀ¯±ÇÀ¸·Î¼­ »ý¼ºÀ» ½ÃÅ°°íÀÚ ÇÒ °æ¿ì¿¡´Â "*" ·Î¼­ °¢°¢ ÁöÁ¤À» ÇÒ¼öµµ ÀÖ´Ù. ºÎ°¡ÀûÀ¸·Î ù¹ø° parameter´Â ÇöÀç chroot ȯ°æ¿¡ µû¶ó¼­ Àý´ëÀûÀ¸·Î³ª »ó´ëÀûÀ¸·Î Çؼ®ÇÏ¿© ¼±ÅÃÀ» ÇÑ´Ù. ±âº»°ªÀ¸·Î´Â À» Àý´ë°ªÀ¸·Î Çؼ®À» ÇÑ´Ù. ÇÑ´Ù¸é, ÀÌ uploadÀýÀº ¿ÀÁ÷ ÇöÀç user°¡ ¾î¶² classÀÇ member À϶§ ¸¸ ¿µÇâÀ» ¹Þ´Â´Ù. ¼­¹ö¿¡ ¾÷·Îµå ÆÄÀÏÀ» Çã¶ôÇϵµ·Ï ¼³Á¤À» Çϱâ À§Çؼ­´Â upload.cofiguration.HOWTO ¸¦ ²À ÀÐ¾î º¸±â ¹Ù¶õ´Ù. 2.9.6. throughput remote hostname ¶Ç´Â remote IP address°¡ comma·Î ºÐ¸®µÈ ¿Í ¸ÅÄ¡°¡ µÉ¶§, ¾Æ·¡ÀÇ ¿Í ¸ÅÄ¡°¡ µÇ´Â subdir¿¡¼­ comma·Î ±¸ºÐµÈ ¸¦ ÅëÇÏ¿© ´Ù¿î·Îµå¿¡¼­ ÀÇ Àü¼Û 󸮷®ÀÌ Á¦ÇѵǴ fileµéÀ» ÁöÁ¤ÇÒ¼ö ÀÖ´Ù. EntryµéÀº °¡Àå ºÎÇյǴ ¿øÄ¢¿¡ ¸ÅÄ¡°¡ µÇ¾îÁø´Ù. ¿¹¸¦ µé¾î: throughput /e/ftp * * oo - * throughput /e/ftp /sw* * 1024 0.5 * throughput /e/ftp /sw* README oo - * throughput /e/ftp /sw* * oo - *.foo.com ÀÌ°ÍÀº defalut·Î ÃÖ´ë Àü¼Û·®À» ÁöÁ¤ÇÑ´Ù. ÇÏÁö¸¸ README¶ó´Â À̸§ Áö¾îÁöÁö ¾ÊÀº e/ftp/sw/ ¾Æ·¡ÀÇ ¾î¶² fileµé¿¡ ´ëÇؼ­ ÃÊ´ç 1024byte·Î download¸¦ Á¦ÇÑÇÑ´Ù. domain foo.comÀÇ µµ¸ÞÀÎÀ» °¡Áø ³×Æ®¿÷¿¡¼­ ¿À´Â remote hostµéÀº ¿¹¿Ü·Î Ç×»ó ÃÖ´ë Àü¼Û·®À» ¾òÀ»¼ö ÀÖ´Ù. ¸Å ½Ã°£ remote clientµéÀº /e/ftp/sw ¾Æ·¡ÀÇ fileÀ» Á¦ÇÑ ¹ÞÀ¸¸ç, entry line°ú ¸ÅÄ¡°¡ µÇ´Â byte per second´Â ³»ºÎÀûÀ¸·Î °è¼ö(¿©±â¼­´Â 0.5)¸¸Å­¾¿ Áõ°¡ µÇ¾îÁø´Ù. ±×¸®°í remote client°¡ µÎ¹ø° ÆÄÀÏÀ» Á¦ÇÑ ÇÒ¶§, ÀÌ°ÍÀº 512byte/s·Î Á¦°øÀÌ µÇ¸ç ¼¼¹ø° ½Ãµµ½Ã¿¡´Â 254byte/s, 4¹ø° ½Ãµµ½Ã¿¡´Â 128byte/s µîÀ¸·Î Á¦ÇÑÀÌ µÇ¾îÁø´Ù. byte per second fieldÀÇ "oo"´Â Àü¼Û·® Á¦ÇÑÀ» ÇÏÁö ¾Ê´Â °ÍÀ» ÀǹÌÇÑ´Ù. 1.0 ¾¿ÀÇ °è¼ö Áõ°¡³ª "-" ´Â ¸Å¹ø ¼º°øÀûÀÎ Àü¼ÛÈÄ¿¡ Àü¼Û·®ÀÇ º¯È­°¡ ¾øÀ½À» ÀǹÌÇÑ´Ù. ¿©±â¼­ Àº password database¿¡ ÀÖ´Â "ftp" user¿¡°Ô ÁöÁ¤ µÇ¾îÁø home directory¿Í ¹Ýµå½Ã ¸ÅÄ¡°¡ µÇ¾î¾ß ÇÑ´Ù´Â °ÍÀ» ÁÖÀÇÇØ¾ß ÇÑ´Ù. throughput(Àü¼Û·®) keyword´Â ¿ÀÁ÷ ÀÇ (chroot()°¡ Àû¿ëÀÌ µÇ´Â) home directory¸¦ °¡Áö°í ÀÖ´Â user(Áï anonymous)¿¡°Ô¸¸ Àû¿ëÀÌ µÈ´Ù. 2.9.7. anonymous-root [] Àº anonymous userµéÀÇ chroot() path¸¦ ÁöÁ¤ÇÑ´Ù. anonymous-root °¡ ¸ÅÄ¡°¡ µÇÁö¸¦ ¾ÊÀ¸¸é, ÀüÅëÀûÀ¸·Î ³»·Á¿À´Â ±¸¹®ÀÇ ¹æ¹ýÀ¸·Î "ftp" userÀÇ home directory¸¦ »ç¿ëÀ» ÇÑ´Ù. °¡ ÁöÁ¤ÀÌ µÇÁö ¾ÊÀ¸¸é, ¾î¶² anonymous-root ÁöÁ¤ÀÌ µÇÁö ¾ÊÀº anonymous userµéÀÇ root directory°¡ µÈ´Ù. ¶óÀο¡ ¿©·¯°³ÀÇ class¸¦ ÁöÁ¤ÇÒ¼öµµ ÀÖ´Ù. userµéÀ» À§ÇÑ anonymous root°¡ ¼±ÅÃÀÌ µÇ¸é, /etc/passwd file¿¡ ÀÕ´Â "ftp" userµéÀÇ home directory°¡ »ç¿ëµÇ¾î Áö¸ç, ÃÖÃÊÀÇ directory¿Í system Àü¹ÝÀûÀÎ /etc/passwdÀÇ "ftp" userµéÀÇ home directory´Â »ç¿ëÀÌ µÇÁö ¾Ê´Â´Ù. ¿¹¸¦ µé¸é: anonymous-root /home/ftp anonymous-root /home/localftp localnet ´Â ¸ðµç anonymous userµéÀÇ chroot()¸¦ /home/ftp·Î ÁöÁ¤À» Çϸç, ÃÖÁ¶ÀÇ CWD´Â ÀÌ home directory°¡ µÈ´Ù. ±×·¯³ª class localnetÀÇ anonymous userµéÀÇ chroot()´Â /home/localftp°¡ µÇ¸ç, ±×µéÀÇ ÃÖÃÊ CWD´Â /home/localftp/etc/passwd ¿¡ ÀÖ´Â "ftp" userµéÀÇ home directory·Î ºÎÅÍ ¿µÇâÀ» ¹Þ°Ô µÈ´Ù. 2.9.8. guest-root [] Àº guest userµéÀÇ chroot() path¸¦ ÁöÁ¤ÇÑ´Ù. guest-root°¡ ¸ÅÄ¡°¡ µÇÁö ¾ÊÀ¸¸é ÀüÅëÀûÀ¸·Î ³»·Á¿À´Â ±¸¹®ÀÇ ¹æ¹ýÀ¸·Î userµéÀÇ home directory°¡ »ç¿ëµÇ¾î Áø´Ù. °¡ ÁöÁ¤ÀÌ µÈ ¾ÊÀ¸¸é, ¾î´À ´Ù¸¥ guest-root°¡ ÁöÁ¤ÀÌ µÇÁö ¾ÊÀº guest userµéÀ» À§ÇÑ root directory°¡ µÈ´Ù. ÇÑ ¶óÀο¡ ¿©·¯°³ÀÇ uid rangeµéÀ» ÁöÁ¤ÇÒ¼öµµ ÀÖ´Ù. userµéÀ» À§ÇÑ guest- root°¡ ¼±ÅÃÀÌ µÇ¸é, /etc/passwd file¿¡ ÀÖ´Â userµéÀÇ home directory°¡ »ç¿ëÀÌ µÇ¾îÁö¸ç, ÃÖÃÊÀÇ directory¿Í system Àü¹ÝÀûÀ¸·Î »ç¿ëÀÌ µÇ¾îÁö´Â /etc/passwdÀÇ home directory´Â »ç¿ëÀÌ µÇÁö ¾Ê´Â´Ù. ´Â UID°ªÀÇ ¼ýÀÚ·Î ÁöÁ¤À» ÇÑ´Ù. rangeµéÀº dash¿¡ ÀÇÇØ ±¸ºÐµÇ¾î Áö´Â »ó,ÇÏ °æ°è°¡ ÁÖ¾îÁü¿¡ µû¶ó ÁöÁ¤µÇ¾î Áø´Ù. ÇÏ°è(lower bound)¸¦ »ý·«ÇÏ´Â °ÍÀº "all up to"¸¦ ¶æÇϸç, »ó°è(upper bound)¸¦ »ý·«ÇÏ´Â °ÍÀº "all starting from"À» ÀǹÌÇÑ´Ù. ¿¹¸¦ µé¾î: guest-root /home/users guest-root /home/staff %100-999 sally guest-root /home/users/frank/ftp frank ´Â ¸ðµç userµéÀÇ chroot()¸¦ /home/users·Î ÇÏ°í, /home/users/etc/passwd ¿¡¼­ ÁöÁ¤µÈ ±×µéÀÇ home directory ¿¡¼­ ½ÃÀÛÇÏ°Ô ÇÑ´Ù. range 100 ºÎÅÍ 999±îÁö¿¡ Æ÷ÇԵǴ userµé°ú user sally´Â /home/staff·Î chroot()°¡ µÇ¾î Áö¸ç, /home/staff/etc/passwdÀÇ ±×µéÀÇ entry¿¡·Î ºÎÅÍ CWD°¡ ¿µÇâÀ» ¹Þ´Â´Ù. single user frank´Â /home/users/owner/ftp°¡ chroot()·Î µÇ¸ç, CWD´Â /home/users/owner/ftp/etc/passwdÀÇ ±×ÀÇ entry·ÎºÎÅÍ ¿µÇâÀ» ¹Þ´Â´Ù. anonymous-root ¿Í guest-root¸¦ À§ÇÑ ¸í·ÉµéÀº ¸Å¿ì Áß¿äÇÏ´Ù´Â °ÍÀ» ÁÖÀÇÇØ¾ß ÇÑ´Ù. user°¡ ¿©·¯°³ÀÇ ±¸¹®¿¡ Áߺ¹µÇ¾î ¸ÅÄ¡°¡ µÈ´Ù¸é, ¿ÀÁ÷ óÀ½ °Í¸¸ Àû¿ëÀÌ µÈ´Ù. ³ª °¡ ¾ø´Â ±¸¹®Àº Á¦¿ÜµÇ¸ç, ¾î¶² ±¸¹®µµ ¸ÅÄ¡°¡µÇÁö ¾ÊÀ» °æ¿ì¿¡¸¸ Àû¿ëÀÌ µÈ´Ù. 2.9.9. deny-uid deny-gid allow-uid allow-gid deny-uid [...] deny-gid [...] allow-uid [...] allow-gid [...] ÀÌ ÀýµéÀº UID¿Í GID °ªÀ¸·Î ftp server ·ÎÀÇ Á¢±Ù °ÅºÎ¸¦ ÁöÁ¤ÇÑ´Ù. allow-uid ¿Í allow-gid ÀýÀº °ÅºÎ¿Í´Â ´Þ¸® uid/gid ¸¦ ÅëÇØ Á¢±Ù Çã¶ôÇÑ´Ù. ÀÌ Ã¼Å©µéÀº ¸ðµç ´Ù¸¥ ¼³Á¤µé ÀÌÀü¿¡ ÀÌ·ç¾îÁø´Ù. deny´Â allow ÀÌÀü¿¡ üũ°¡ µÈ´Ù. defalut·Î´Â ¸ðµÎ Á¢±ÙÀ» Çã¶ôÀ» ÇÑ´Ù. ¸ðµç °æ¿ì¿¡¼­, ÀÌ°ÍÀº /etc/ftpusers fileÀ» ÅëÇÑ Çʿ伺À» Á¦°Å ÇÒ¼ö ÀÖ´Ù. ¿¹¸¦ µé¾î: deny-gid %-99 %65535 deny-uid %-99 %65535 allow-gid ftp allow-uid ftp anonymous "ftp" user/groupÀ» Á¦¿ÜÇÑ Linux BoxÀÇ ¸ðµç Ư±ÇÀ» °¡Á³°Å³ª ƯÁ¤ÇÑ userµé°ú groupµéÀÇ ftp Á¢±ÙÀ» °ÅºÎÇÑ´Ù. ¸¹Àº °æ¿ì, ÀÌ°ÍÀ» ÀÌ¿ëÇÏ¿© /etc/ftpusers fileÀÇ ¿ªÇÒÀ» ´ë½ÅÇÒ¼ö ÀÖ¸¸ ÀÌ°ÍÀº /etc/ftpaccess fileÀÇ º¯°æÀ» ¹Ù¶óÁö ¾ÊÀ»¶§ »ç¿ëÇϱâ À§ÇÏ¿© Á¸À縦 ÇÑ´Ù. ftpaccess fileÀ» ÅëÇØ single UID¿Í GID¸¦ »ç¿ëÇÒ¶§ À̸§À̳ª ¼ýÀÚ µÑ´Ù »ç¿ëÀ» ÇÒ¼ö°¡ ÀÖ´Ù. ¼ýÀÚ¸¦ »ç¿ëÇϱâ À§Çؼ­´Â, ¼ýÀÚ ÀÌÀü¿¡ 2.9.10. restricted-uid restricted-gid unrestricted-uid unrestricted- gid restricted-uid [...] restricted-gid [...] unrestricted-uid [...] unrestricted-gid [...] ÀÌ ÀýµéÀº real ¶Ç´Â guest userµéÀÌ ÀڽŵéÀÇ home directory ÀÌ¿ÜÀÇ FTP site ¿µ¿ª¿¡ Á¢±Ù ÇÏ´Â °ÍÀ» Á¶ÀýÇÑ´Ù. ÀÌ°ÍÀº guestgroup°ú guestuserÀÇ »ç¿ëÀ» ´ë½ÅÇÏ´Â °ÍÀ» ¶æÇÏÁö´Â ¾Ê´Â´Ù. ´ë½Å, guestµéÀÇ ÀÛ¿ëÀ» º¸¿ÏÇϴµ¥ »ç¿ëÇÒ¼ö´Â ÀÖ´Ù. unrestricted-uid¿Í unrestircted- gid ÀýÀº restricted¿Í´Â ´Þ¸® ±×µéÀÇ home directoryµé ÀÌ¿ÜÀÇ directory¿¡ userµéÀÇ Á¢±ÙÀ» Çã¶ôÇÑ´Ù. ÀÌ ÀýÀÇ »ç¿ëÀÇ ¿¹´Â ±×µéÀÇ »ç¿ë°æÇâÀ» º¸¿©ÁØ´Ù. user "dick"ÀÇ home directory°¡ /home/dick ÀÌ°í, "jane"ÀÌ /home/jane À̶ó°í °¡Á¤À» Çϸé : guest-root /home dick jane restricted-uid dick jane dick°ú janeÀÇ chroot'd°¡ /homeÀÏ µ¿¾È, ±×µéÀÇ home directory µéÀ» Á¦ÇÑ ¹Þ±â ¶§¹®¿¡ °¢°¢ ´Ù¸¥ fileµéÀ» access ÇÒ¼ö°¡ ¾ø´Ù. Whereever possible, in situations such as this example, try not to rely solely upon the ftp restrictions. ´Ù¸¥ ¸ðµç ftp aceess ¹ýÄ¢¿¡¼­, ftpaccess ¼³Á¤ÀÇ ÀÛµ¿À» º¸¿ÏÇϱâ À§ÇØ directory¿Í fileÀÇ Æ۹̼ÇÀ» »ç¿ëÇϵµ·Ï ³ë·Âµµ ÇØ¾ß ÇÑ´Ù. 2.9.11. site-exec-max-lines [ ...] SITE EXEC ÀÇ Æ¯Â¡Àº ÀüÅëÀûÀ¸·Î ¿ø°Ý client·Î º¸³»Áö´Â lineµéÀÇ Ãâ·ÂÀÇ ¼ö¸¦ Á¦ÇÑÇÑ´Ù. ÀÌ ±¸¹®Àº Á¦ÇÑÀ» ¼ÂÆÃÇÒ¼ö ÀÖ°Ô²û ÇÑ´Ù. »ý·«Çϸé 20 lineµé·Î Á¦ÇÑÀÌ µÈ´Ù. limit 0Àº Á¦ÇÑÀ» ÇÏÁö ¾Ê´Â´Ù´Â °ÍÀ» ÀǹÌÇÑ´Ù; limit¸¦ ¾ø¾Ö·Á°í ÇÑ´Ù¸é Á¶½ÉÇØ¾ß ÇÑ´Ù. ÀÌ ±¸¹®ÀÌ ¿ø°ÝÀÇ user class¿Í ¸ÅÄ¡°¡ µÈ¸é limit°¡ ¹Ù·Î Àû¿ëÀÌ µÈ´Ù. ¹Ý¸é¿¡ "*" class³ª class°¡ ÁÖ¾îÁöÁö ¾ÊÀº ±¸¹® ¿ª½Ã »ç¿ëµÇ¾î Áú¼ö ÀÖ´Ù. ¿¹¸¦ µé¾î; site-exec-max-lines 200 remote site-exec-max-lines 0 local site-exec-max-lines 25 Limits´Â "remote" classÀÇ userµé¿¡°Ô SITE EXEC (¿Í ±×°á°ú SITE INDEX) ·Î ºÎÅÍ 200 lineÀ» Ãâ·ÂÇϸç, local classÀÇ userµé¿¡°Ô´Â Á¦ÇÑÀ» ÇÏÁö ¾Ê´Â´Ù. ±×¸®°í ¸ðµç ´Ù¸¥ userµé¿¡°Ô´Â 25 lineÀÇ Á¦ÇÑÀ» Àû¿ëÇÑ´Ù. 2.9.12. dns refuse_mismatch [override] ¿ø°Ý »çÀÌÆ®ÀÇ forward¿Í reverse lookupÀÌ ¸ÂÁö ¾ÊÀ»¶§, FTP ¼¼¼ÇÀ» °ÅºÎÇϸç, ¸Þ¼¼Áö ÆÄÀÏ°ú °°Àº ÆÄÀÏÀ» Á¢±Ù À¯Àú¿¡°Ô Ãâ·ÂÀ» ÇÑ´Ù. ¿É¼ÇÀ¸·Î [override]¸¦ ÁöÁ¤À» ÇÒ °æ¿ì¿¡´Â ¸Þ¼¼Áö¸¦ Ãâ·ÂÇÑ ÈÄ¿¡ Á¢±ÙÀ» Çã¶ôÇÑ´Ù. 2.9.13. dns refuse_no_reverse [override] ¿ø°Ý »çÀÌÆ®°¡ DNS Ç׸ñ¿¡ µé¾î ÀÖÁö ¾ÊÀ» °æ¿ì FTP¼¼¼ÇÀ» °ÅºÎÇϸç, ¸Þ¼¼Áö ÆÄÀÏ °ú °°Àº ÆÄÀÏÀ» Á¢±Ù À¯Àú¿¡°Ô Ãâ·ÂÇÑ´Ù. ¿É¼ÇÀ¸·Î [override]¸¦ ÁöÁ¤À» ÇÒ °æ¿ì¿¡´Â ¸Þ¼¼Áö¸¦ Ãâ·ÂÇÑ ÈÄ¿¡ Á¢±ÙÀ» Çã¶ôÇÑ´Ù. 2.9.14. dns resolveroptions [options] resolveroptions ¿É¼ÇÀº name server ¿É¼ÇµéÀ» ÇÇÇÏ´Â °ÍÀ» Çã¶ôÇÑ´Ù. ÀÌ ¶óÀÎÀº resolver(3) ÀÇ ¹®¼­Ã³·³ Ç÷¡±×ÀÇ Á¾·ù¸¦ ÃëÇÑ´Ù. ºÎ°¡ÀûÀ¸·Î + ³ª - ¿¡ ÀÇÇØ ¼³Á¤À» ÇØ ³ª°¥¼ö ÀÖ´Ù. ¿¹¸¦ µé¾î dns resolveroptions +aaonly -dnsrch ´Â aaonly ¿É¼ÇÀ» È°¼ºÈ­ ÇÏ°í(¿ÀÁ÷ ¹ÏÀ»¼ö ÀÖ´Â ÀÀ´äµé¸¸), dnsrch ¿É¼Ç (µµ ¸ÞÀÎ °æ·Î¸¦ ã´Â°Í)Àº ºñÈ°¼ºÈ­ ÇÏ°Ô µÈ´Ù. 2.10. ÆÄÀÏ FTPLIB/ftpaccess 2.11. °ü·Ã Ç׸ñ ftpd(8), umask(2), ftplog(5), ftpconversions(5), ftpshut(8) 3. ftpconversions 3.1. À̸§ ftpconversions - ftpd º¯È¯ ¸ñ·Ï 3.2. ¼³¸í ftpd(8) ¿¡ ÀÇÇØ ¾Ë·ÁÁø conversions¿Í ±×µéÀÇ ¼Ó¼ºÀº ¾Æ·¡¿Í °°ÀÌ ±¸¼ºµÈ ASCII file¾È¿¡ ÀúÀåµÇ¾î ÀÖ´Ù. file ÀÇ °¢ lineÀº ÄÝ·Ð(:)À¸·Î ±¸ºÐµÇ¾îÁø ÇϳªÀÇ conversion. field ¿¡ ´ëÇÑ ¼³¸íÀ» º¸¿©ÁØ´Ù. %s:%s:%s:%s:%s:%s:%s:%s 1 2 3 4 5 6 7 8 Field Description 1 strip prefix 2 strip postfix 3 addon prefix 4 addon postfix 5 ¿ÜºÎ ¸í·É 6 Çü½Ä 7 ¿É¼Ç 8 ¼³¸í 3.3. ¾Ë·ÁÁø ¹®Á¦ conversions mechanism¿¡¼­ strip prefix¿Í addon prefix field´Â ¾ÆÁ÷±îÁö Áö¿øµÇÁö ¸øÇÑ´Ù. 3.4. ÆÄÀÏ ÂüÁ¶ ftpd(1), ftpaccess(5) 4. ftpcount 4.1. À̸§ ftpcount - °¢ classÀÇ ÇöÀç user¼ö¸¦ º¸¿©ÁØ´Ù. 4.2. ¹®¹ý ftpcount 4.3. ¼³¸í ¸í·ÉÀº ftpaccess file¿¡¼­ Á¤ÀÇµÈ °¢ class¿¡ ´ëÇÑ userÀÇ ¼ö ¶Ç´Â Á¦ÇÑµÈ userÀÇ ÇöÀç Á¢¼Ó¼ö¸¦ º¸¿©ÁØ´Ù. 4.4. °ü·Ã Ç׸ñ ftpwho(1) 5. FTPD 5.1. À̸§ ftpd - DARPA ÀÎÅÍ³Ý ÆÄÀÏ Àü¼Û ÇÁ·ÎÅäÄÝ ¼­¹ö 5.2. °³¿ä ftpd [ -d ] [ -v ] [ -l ] [ -ttimeout ] [ -Tmaxtimeout ] [ -a ] [ -A ] [ -L ] [ -i ] [ -o ] [ -pctrlport ] [ -Pdataport ] [ -q ] [ -Q ] [ -rrootdir ] [ -s ] [ -S ] [ -uumask ] [ -V ] [ -w ] [ -W ] [ -X ] 5.3. ¼³¸í Ftpd ´Â DARPA internet file Àü¼Û ÇÁ·ÎÅäÄÝ serverÀÇ ¿ªÇÒÀ» ÇÑ´Ù. server´Â TCP protocolÀ» »ç¿ëÇϸç `ftp" service·Î ÁöÁ¤ µÈ ƯÁ¤ÇÑ prot¿¡ ±Í¸¦ ±â¿ïÀδÙ.; ÀÚ¼¼ÇÑ °ÍÀº services(5) À» ÂüÁ¶Ç϶ó. -d ¶Ç´Â -v optionsÀ» ÁöÁ¤Çϸé, syslog¿¡ µð¹ö±ë Á¤º¸°¡ ±â·ÏµÈ´Ù. -l optionÀº syslog¿¡ °¢ ftpÀÇ sessionÀ» ±â·ÏÇÑ´Ù. ftp server´Â 15ºÐÀÌ Áö³ªµµ·Ï ¾Æ¹« ÀÔ·ÂÀÌ ¾øÀ¸¸é(inactive sessionÀÌ ¹ß»ýÇϸé) timeoutÀÌ µÈ´Ù. -t optionÀ¸·Î inactive timeout ½Ã°£À» ÁöÁ¤ÇÒ¼ö ÀÖ´Ù. ¼³Á¤Àº ´ÜÀ§·Î Çϸç options°ú Ãʸ¦ ºÙ¿©¼­ ¾´´Ù. -t optionÀ» ÁöÁ¤ÇÏÁö ¾Ê¾ÒÀ»¶§ÀÇ ±âº»°ªÀº 900ÃÊÀÌ´Ù. ¶ÇÇÑ ÀÌ¿Í´Â ´Ù¸¥ timeout period°¡ Àִµ¥ ÀÌ´Â -T optionÀ» ÀÌ¿ëÇÏ¿© ÃÖ´ë·Î ¿­¾î ³õÀ»¼ö ÀÖ´Â session timeout period¸¦ ÁöÁ¤ÇÒ¼ö ÀÖ´Ù. ÀÌ°ÍÀº inactive session°ú ¹«°üÇÏ´Ù. ¼³Á¤Àº -t ¿Í µ¿ÀÏÇϸç default´Â 2½Ã°£ ÀÌ´Ù. -a optionÀº ftpaccess(5) ¼³Á¤ fileÀ» »ç¿ëÇϵµ·Ï ÇÑ´Ù. -A optionÀº ftpaccess(5) ¼³Á¤ fileÀ» »ç¿ëÇÏÁö ¾Êµµ·Ï ÇÑ´Ù. ÀÌ optionÀº ±âº» optionÀÌ´Ù. -L optionÀº syslog¿¡ ftpd(8) server¿¡ º¸³»Áö´Â ¸í·ÉµéÀ» ±â·ÏÇϵµ·Ï ÇÑ´Ù. -L optionÀº ftpaccess(5) fileÀÇ »ç¿ë¿¡ ÀÇÇØ ¹«½ÃµÇ¾î Áú¼öµµ ÀÖ´Ù. -L flag°¡ »ç¿ëµÇ¾î Áø´Ù¸é, ±âº»ÀûÀ¸·Î ftp server°¡ ¿äû µÉ¶§¸¶´Ù ¸í·ÉÀÌ logging µÇ¾îÁú ¼ö ÀÖ´Ù. ÀÌ°ÍÀº ¸ðµç USERµéÀÇ ¸í·ÉÀÌ ±â·ÏµÇ´Â °ÍÀ» ¶æÇÏ¸ç ¸¸¾à user°¡ ¿ì¿¬È÷ usernameÀ» ´ë½ÅÇÏ´Â ¸í·ÉÀ¸·Î password¸¦ º¸³ÂÀ»¶§ syslog¸¦ ÅëÇؼ­ password°¡ ´©ÃâµÉ¼öµµ ÀÖ´Ù. -i optionÀ» ÁöÁ¤Çϸé ftpd(8) server¿¡ ÀÇÇØ ¹Þ¾Æµé¿´´ø fileµéÀÌ xferlog(5) ·Î logµÇ¾î Áø´Ù. -i optionÀº ftpaccess(5) fileÀ» »ç¿ëÇÏ¸é ¹«½ÃµÇ¾î Áø´Ù. -o optionÀ» ÁöÁ¤Çϸé ftpd(8) server¿¡ ÀÇÇØ ÀüÇØÁø fileµéÀÌ xferlog(5) ·Î logµÇ¾î Áø´Ù. -o optionÀº ftpaccess(5) fileÀ» »ç¿ëÇÏ¸é ¹«½ÃµÇ¾î Áø´Ù. ¸¸¾à -X optionÀ» ÁöÁ¤Çϸé, -i ¿Í -o options¿¡ ÀÇÇØ »ý¼ºµÈ outputÀº xferlog¿¡ ÀúÀåµÇÁö ¾Ê´Â´Ù. ±×·¯³ª ÇϳªÀÇ Áß¾Ó loghost¿¡ ¿©·¯ hostµé·Î ºÎÅÍÀÇ outputÀ» ¹Þ¾ÆµéÀÌ´Â °æ¿ì¿¡´Â syslog¸¦ ÅëÇØ ÀúÀåÀÌ µÈ´Ù. -u optionÀº umask ¸¦ ±âº» umask·Î settingÀ» ÇÑ´Ù. -W optionÀº user loginÀ» wtmp file¿¡ ±â·ÏÇÏÁö ¾Ê°Ô ÇÑ´Ù. Default ( -w ) ·Î´Â ¸ðµç login°ú logoutÀÌ ±â·ÏÀÌ µÈ´Ù. -s ¿Í -S optionµéÀº standalone ÀÛµ¿ ¸ðµå·Î daemonÀ» ½ÇÇàÇÏ°Ô ÇÑ´Ù. -S optionÀº daemonÀ» background·Î ½ÇÇàÀ» Çϸç, system booting½Ã¿¡ startup srcitps(ie., in rc.local)¸¦ ÀÌ¿ëÇÒ¶§ »ç¿ëÇÑ´Ù. -s optionÀº daemonÀ» foreground·Î ½ÇÇàÀ» ½ÃÅ°¸ç, init·Î ºÎÅÍ ½ÇÇà µÉ¶§ ÁÖ·Î »ç¿ëÀ» ÇÑ´Ù. (ie., /etc/inittab) -p ¿Í -P optionµéÀº daemon¿¡ ÀÇÇØ »ç¿ëµÇ¾îÁö´Â port number¸¦ ¹«½ÃÇÑ´Ù. ÀϹÝÀûÀ¸·Î daemonÀº "ftp"¿Í ftp-data"¿¡ ´ëÇØ /etc/services ¸¦ ÂüÁ¶ÇÏ¿© port number¸¦ °áÁ¤ÇÑ´Ù. ¸¸¾à /etc/services¿¡ "ftp-data"°¡ ÁöÁ¤µÇ¾î ÀÖÁö ¾Ê°í -P optionÀÌ ÁöÁ¤µÇ¾î ÀÖÁö ¾Ê´Ù¸é daemonÀº control connection port º¸´Ù ¾Õ¼± port¸¦ »ç¿ëÇÑ´Ù. -p optionÀº standalone mode·Î ½ÇÇàµÉ¶§¸¸ »ç¿ëÀ» ÇÒ¼ö°¡ ÀÖ´Ù. -q and -Q optionµéÀº daemonÀÌ PID fileµéÀÇ »ç¿ë¿©ºÎ¸¦ °áÁ¤ÇÑ´Ù. ÀÌ fileµéÀº °¢ Á¢±Ù class¸¶´Ù ÇöÀç userÀÇ ¼ö¸¦ °áÁ¤ÇÏ´Â limit Áö½ÃÀÚ¿¡ ÀÇÇØ ¿ä±¸µÇ¾î Áø´Ù. PID fileµéÀÇ »ç¿ëÀ» ¾ÈÇϸé user limit¸¦ »ç¿ëÇÒ¼ö ¾ø´Ù. Default ( -q ) ·Î´Â PID fileµéÀ» »ç¿ëÀ» ÇÑ´Ù. access permissionÀÌ PID fileÀÇ »ç¿ëÀ» ¸·À»¶§ ÀÏ¹Ý user·Î¼­ server¸¦ testÇÒ¶§ -Q ¸¦ ÁöÁ¤ÇÑ´Ù. Á»´õ ³ª¾Æ°¡¼­ µ¿½Ã »ç¿ëÀÚÀÇ ¼ö¸¦ Á¦ÇÑÇÏ´Â °ÍÀ» ¸·°í ½ÍÀº busy site¿¡¼­´Â PID fileÀÇ »ç¿ëÀ» ºÒ°¡´ÉÇÏ°Ô ÇÏ´Â °ÍÀ» °í·ÁÇØ º¼¸¸ÇÏ´Ù. -r optionÀº ÀÌ¹Ì loading½Ã¿¡ rootdir·Î ÁöÁ¤µÇ¾îÁø °ÅÀ» chroot·Î daemonÀ» ÁöÁ¤ÇÑ´Ù. ÀÌ°ÍÀº daemonÀ» ÅëÇØ ¹ß»ýÇÑ ¼Õ»óÀ» ÀÔÀº fileµéÀ» Á¦ÇÑÇÔÀ¸·Î¼­ system security¸¦ ÁõÁø½Ãų¼ö ÀÖ´Ù. Set is much like anonymous FTP, with additional files needed which vary from system to system. ftp server´Â ÇöÀç ¾Æ·¡¿¡ ³ª¿­µÈ ftp reuestµéÀ» Áö¿øÀ» ÇÑ´Ù.; case´Â ±¸º°µÇ¾î ÀÖÁö ¾Ê´Ù. Request ¼³¸í ABOR ÀÌÀü ¸í·ÉÀ» ÁßÁö ACCT ÁöÁ¤ÇÑ account¸¦ ¹«½Ã ALLO ºñ¾îÀÖ´Â ÀúÀå°ø°£À» ÇÒ´ç APPE file¿¡ ÷°¡ CDUP ÇöÀç ÀÛ¾÷ directory¸¦ ºÎ¸ð directory·Î À̵¿ CWD ÀÛ¾÷ directory¸¦ À̵¿ DELE file »èÁ¦ HELP help Á¤º¸ Ãâ·Â LIST directoryÀÇ file list Ãâ·Â (`ls -lgA") MKD directory »ý¼º MDTM fileÀÇ ¸¶Áö¸· º¯°æ½Ã°£ Ãâ·Â MODE data transfer mode ¸¦ ÁöÁ¤ NLST directoryÀÇ file list name¸¸ º¸¿©ÁØ´Ù. NOOP do nothing PASS password¸¦ ÁöÁ¤ PASV server¿Í server°£Àº Àü¼Û ºñ±³ PORT data connection port¸¦ ÁöÁ¤ PWD ÇöÀç ÀÛ¾÷ÁßÀÎ directory¸¦ Ãâ·Â QUIT session ¸¶Ä§ REST ºÒ¿ÏÀüÇÑ Àü¼ÛÀ» Àç½Ãµµ RETR file Á¤Á¤ RMD directory Á¦°Å RNFR filenameÀ¸·Î ºÎÅÍ rename ÁöÁ¤ RNTO filenameÀ¸·Î rename ÁöÁ¤ SITE ÀϹÝÀûÀÌÁö ¾ÊÀº commands (´ÙÀ½ section ÂüÁ¶) SIZE file size Ãâ·Â STAT server »óÅ Ãâ·Â STOR file ÀúÀå STOU ƯÁ¤ÇÑ À̸§À¸·Î file ÀúÀå STRU data transfer structure ÁöÁ¤ SYST server systemÀÇ OS type Ãâ·Â TYPE data transfer type ÁöÁ¤ USER user name ÁöÁ¤ XCUP ÇöÀç ÀÛ¾÷ directory¸¦ ºÎ¸ð directory·Î À̵¿ (deprecated) XCWD change working directory (deprecated) XMKD directory »ý¼º (deprecated) XPWD ÇöÀç ÀÛ¾÷ directory Ãâ·Â (deprecated) XRMD directory Á¦°Å (deprecated) ¾Æ·¡¿¡ ³ª¿­µÈ °ÍÀº ÀϹÝÀûÀÎ ¸í·ÉÀÌ ¾Æ´Ï°Å³ª UNIX Ư¼ö ¸í·É µéÀ̸ç SITE ¸í·É¿¡ ¼ö¹ÝµÇ¾î »ç¿ëµÇ¾î Áø´Ù. Request ¼³¸í UMASK umask¸¦ º¯°æ. E.g. SITE UMASK 002 IDLE idle-timer¸¦ ÁöÁ¤. E.g. SITE IDLE 60 CHMOD fileÀÇ modeÀ» º¯°æ. E.g. SITE CHMOD 755 filename HELP help Á¤º¸¸¦ Ãâ·Â. E.g. SITE HELP NEWER ƯÁ¤ ³¯Â¥ ÀÌÈÄÀÇ fileÀ» Ãâ·Â MINFO SITE NEWER¿Í À¯»ç, ÇÏÁö¸¸ Á»´õ ÀÚ¼¼ÇÑ Á¤º¸¸¦ Ãâ·Â GROUP ƯÁ¤ gourp Á¢±ÙÀ» ¿ä±¸. E.g. SITE GROUP foo GPASS ƯÁ¤ group Á¢±Ù ¾ÏÈ£¸¦ ÁöÁ¤. E.g. SITE GPASS bar EXEC programÀ» ½ÇÇà. E.g. SITE EXEC program params ¿©±â¼­ »ý·«µÈ Internet RFC 959¿¡ ÁöÁ¤µÈ ¸î¸îÀÇ ftp requestµéÀº ÀνÄÀº µÇÁö¸¸ ±×¸® ¾µ¸ðÀÖÁö´Â ¾Ê´Ù. MDTM°ú SIZE´Â RFC 959¿¡ ÁöÁ¤µÇ¾î ÀÖÁö´Â ¾ÊÁö¸¸ ´ÙÀ½ FTP RFC¿¡ updateµÉ ¿¹Á¤ÀÌ´Ù. ftp server´Â internet RFC 959¿¡ ±â¼úµÇ¾îÁø °Í ó·³ telnet "Interrupt Porcess" (IP) signal°ú Telnet stream ¸í·ÉÀÇ Telnet "Synch" signal¿¡ ÀÇÇؼ­ ABOR ¸í·ÉÀÌ ÁøÇàµÉ¶§ active file Àü¼ÛÀº ÁßÁöµÉ °ÍÀÌ´Ù. ¸¸¾à STST ¸í·ÉÀÌ data Àü¼ÛÁß¿¡ ¹Þ¾ÆÁø´Ù¸é, Telnet IP¿Í Synch¿¡ ÀÇÇØ ÁøÇàµÈ transfer status´Â µÇµ¹·Á Áú°ÍÀÌ´Ù. Ftpd interpret file nameµéÀº csh(1) ¿¡ ÀÇÇÏ¿© »ç¿ëµÇ¾îÁö´Â "golbbing" ±Ô¾à¿¡ µû¸¥´Ù. ÀÌ°ÍÀº userµéÀÌ metacharacter "*?[]{}~"¸¦ ÀÌ¿ëÇÒ¼ö ÀÖµµ·Ï ÇÑ´Ù. ÀÎÁõµÈ Ftpd userµéÀº 4°¡Áö ±ÔÄ¢À» µû¸¥´Ù. 1. usernameÀº password data base, /etc/passwd, ¶Ç´Â OS¸¦ Åë»õ Á¢±ÙÇÒ¼ö ÀÖ´Â ¹«¾ù¿¡ Á¸ÀçÇØ¾ß ÇÑ´Ù. ÀÌ °æ¿ì password´Â ¾î¶² file ÀÛ¿ëÀÌ ½ÇÇàµÇ¾îÁö±â Àü¿¡ client¿¡ ÀÇÇؼ­ Áغñ µÇ¾î¾ß ÇÑ´Ù. 2. user nameÀÌ /etc/ftpusers ¿¡ À־´Â ¾ÈµÈ´Ù. 3. user´Â getusershell(3) ¿¡ ÀÇÇØ ¹ÝȯµÇ¾îÁö´Â stan? dard shellÀ» °¡Á®¾ß ÇÑ´Ù. 4. usernameÀÌ "anonymous" ¶Ç´Â "ftp" À϶§, anonymous ftp °èÁ¤ÀÌ password file(user "ftp")¿¡ Á¸ÀçÇؾ߸¸ ÇÑ´Ù. ÀÌ °æ¿ì clientÀÇ hostnameÀ̳ª e-mail address¸¦ password·Î ÇÏ¿© loginÀ» Çã¶ôÀ» ÇÑ´Ù. ¸¶Áö¸·ÀÇ °æ¿ì ftpd ´Â clientÀÇ Á¢±Ù ±ÇÇÑÀ» Á¦ÇÑÇϱâ À§ÇØ Æ¯º°ÇÑ ÀÛ¾÷À» ¼öÇàÇÑ´Ù. server´Â º¸¾ÈÀÇ Ä§Çظ¦ ¸·±â À§ÇÏ¿© "ftp" userÀÇ home directory·Î chroot(2) ¸í·ÉÀ¸·Î º¯°æ½ÃÄÑ ¹ö¸°´Ù. (anonymousÀÇ ¸¦ file¿¡ Á¸ÀçÇÏ´Â "ftp"¶ó´Â userÀÇ home directory-º¸ÅëÀº /home/ftp-·Î ¹Ù²ã ¹ö¸°´Ù´Â ÀǹÌÀÌ´Ù.) ÀÌ°ÍÀº "ftp" subtree´Â Á¶½ÉÇؼ­ ±¸¼ºµÇ¾î Áø´Ù´Â °ÍÀ» ÀǹÌÇÏ¸ç ¾Æ·¡¿¡ ³ª¿­µÈ ±ÔÄ¢À» µû¸¥´Ù. ~ftp) home directoryÀÇ ¼ÒÀ¯±ÇÀ» super-user¿Í ¾²±â ±ÇÇÑÀÌ ¾ø´Â ´Ù¸¥ user·Î ÁöÁ¤À» ÇÑ´Ù. ~ftp/bin) home directoryÀÇ ¼ÒÀ¯±ÇÀ» super-user¿Í ¾²±â ±ÇÇÑÀÌ ¾ø´Â ´Ù¸¥ user·Î ÁöÁ¤À» ÇÑ´Ù. ls(1) programÀº list ¸í·ÉÀ» Áö¿øÇϱâ À§ÇÏ¿© ¹Ýµå½Ã Á¸ÀçÇØ¾ß ÇÑ´Ù. ÀÌ programÀº mode 111ÀÇ ¼ÒÀ¯±ÇÀ» °¡Á®¾ß ÇÑ´Ù. ~ftp/etc) home directoryÀÇ ¼ÒÀ¯±ÇÀ» super-user¿Í ¾²±â ±ÇÇÑÀÌ ¾ø´Â ´Ù¸¥ user·Î ÁöÁ¤À» ÇÑ´Ù. passwd(5) ¿Í group(5) fileÀº ls ¸í·ÉÀ» ½ÇÇàÇßÀ»¶§ ¼ýÀÚ(UID, GID)°¡ ¾Æ´Ñ »ç¿ëÀÚ¸íÀÌ ³ª¿Àµµ·Ï Çϱâ À§Çؼ­ ÀÌ´Ù. OS¿¡ ÀÇÁ¸Çϸç, ´Ù¸¥ ¿ä±¸µÇ´Â fileµéÀÌ ÀÖ´Ù. libary rutine getpwent(3) ¿¡ ´ëÇÑ man page¸¦ checkÇϵµ·Ï ÇÑ´Ù. passwdÀÇ password field´Â »ç¿ëµÇÁö ¾ÊÀ¸¸ç ½ÇÁ¦ÀÇ ¾ÏȣȭµÈ passwordµéÀÌ Æ÷ÇԵǾî ÀÖÁö ¾Ê´Ù. ÀÌ fileµéÀº mode 444ÀÇ permisionÀ» °¡Áö¸ç super- user¿¡°Ô ¼ÒÀ¯±ÇÀÌ ÀÖ´Ù. ~ftp/etc directory¾ÈÀÇ group, passwd fileµéÀ» systemÀÇ /etc/passwd¿Í /etc/group file·Î º¹»ç¸¦ ÇÏ¿© »ç¿ëÇÏ¸é ¾ÈµÈ´Ù. ~ftp/pub) ~ftp/pub¿¡¼­ ÀÏ¹Ý userµé¿¡°Ô file upload¸¦ Çã¶ôÇÏ·Á¸é Àû´çÈ÷ mode 777 ¶Ç´Â mode 733ÀÇ permi? sionÀ¸·Î directory¸¦ ¸¸µé¸é µÈ´Ù. ÇÏÁö¸¸ pub dirc? tory´Â read permision¸¸À» ÁÖ´Â °ÍÀ» ±ÇÀåÇϸç upload´Â ~ftp/incoming À̶ó´Â directory¸¦ ¸¸µé¾î »ç¿ëÇϱ⸦ ±ÇÀåÇϸç upload directoryÀÇ ¼ÒÀ¯±ÇÀº super-user°¡ ¾Æ´Ñ ftp¿¡ ÀÖ¾î¾ß ÇÑ´Ù´Â °ÍÀ» ¸í½ÉÇÑ´Ù. ¶ÇÇÑ ftp userÀÇ ±ÇÇÑ À¸·Î upload ÇÑ fileÀº Áö¿ï¼ö°¡ ¾øÀ¸¹Ç·Î file¸¸ ¿Ã¸®´Â °Í º¸´Ù´Â ¼³¸í¼­µµ °°ÀÌ ¿Ã¸®µµ·Ï message fileÀ» ÀÌ¿ëÇÏ¿© ±Ç°íÇϵµ·Ï ÇÑ´Ù. 5.4. BSD/OS SYSTEM¸¸ÀÇ ÀÎÁõ MECHANISM ftpd¿¡ ÀÇÇØ »ç¿ëµÇ¾î Áö´Â ÀÎÁõ machanismÀº /etc/login.conf ¿¡ ÀÖ´Â users class¿Í matchµÇ´Â "auth-ftp" entry¿¡ ÀÇÇØ °áÁ¤µÈ´Ù. ( login.conf(5) ¸¦ ÂüÁ¶Ç϶ó) ¸¸¾à class¿¡ ´ëÇÑ "auth-ftp" entry°¡ ¾ø´Ù¸é ´ë½Å¿¡ ÀϹÝÀûÀÎ "auth" entry°¡ »ç¿ëµÇ¾î Áú°ÍÀÌ´Ù. ±³Â÷ÇÏ´Â ÀÎÁõ machanismÀº "joe:skey" ó·³ ÄÝ·Ð(":")ÀÌ Ã·°¡µÇ¾î ÁöÁ¤ÀÌ µÈ´Ù. 5.5. ÀϹÝÀûÀÎ FTP È®ÀåÀÚµé FTP server¿¡´Â ¾Æ·¡¿Í °°ÀÌ Æ¯Á¤ÇÑ file È®ÀåÀڷμ­ ¸î°¡Áö ±â´ÉÀ» ¼öÇàÇÒ¼ö ÀÖ´Ù: ½ÇÁ¦ Filename ÁöÁ¤ÇÑ Filename ½ÇÇà ------------- ------------------ ----------------------------------- .Z ¾ÐÃàÀ» Ç®°í³ª¼­ Àü¼Û .Z Àü¼ÛÀü fileÀ» ¾ÐÃà .tar Àü¼ÛÀü fileÀ» Tar·Î ¹­À½ .tar.Z Àü¼ÛÀü fileÀ» Tar·Î ¹­°í ¾ÐÃà ¶ÇÇÑ FTP server´Â È®½ÇÇÑ e-mail ÁÖ¼Ò¸¦ À§ÇÑ check¸¦ ½ÃµµÇϸç, ÀÌ test¸¦ Åë°úÇÏÁö ¸øÇϸé user¿¡°Ô °æ°í mes? sage¸¦ Ãâ·ÂÇÑ´Ù. FTP client°¡ "long replies" (i.e multi? line responses)¿¡ °É·Á ÀÖ´Â userµéÀ» À§ÇØ passwordÀÇ Ã¹¹ø° character¸¦ dash¸¦ »ç¿ëÇÏ´Â °ÍÀº serverÀÇ lreply() ÇÔ¼ö¸¦ ºÒ°¡´É ÇÏ°Ô ÇÑ´Ù. FTP server´Â ¶ÇÇÑ ¸ðµç fileÀÇ Àü¼Û°ú ¼ö½ÅÀ» log ÇÒ¼ö ÀÖÀ¸¸ç, ¹ß»ýµÇ´Â °¢ fileÀÇ Àü¼Û¿¡ ´ëÇÑ Á¤º¸¿¡ µû¶ó¼­ °ü¸®¸¦ ÇÑ´Ù. Mon Dec 3 18:52:41 1990 1 wuarchive.wustl.edu 568881 /files.lst.Z a _ o a chris@wugate.wustl.edu ftp 0 * %.24s %d %s %d %s %c %s %c %c %s %s %d %s 1 2 3 4 5 6 7 8 9 10 11 12 13 1 DDD MMM dd hh:mm:ss YYYY Çü½ÄÀÇ ÇöÀç½Ã°£ 2 ÃÊ ´ÜÀ§ÀÇ Àü¼Û½Ã°£ 3 remote host name 4 byte ´ÜÀ§ÀÇ file size 5 name of file 6 Àü¼Û type (a>scii, b>inary) 7 Ư¼ö action flags (ÇÊ¿ä¿¡ µû¶ó ¿¬°è): C fileÀÌ ¾ÐÃàµÇ¾îÁü U fileÀÌ ¾ÐÃàµÇ¾îÁöÁö ¾ÊÀ½ T fileÀÌ tar·Î ¹­ÀÓ _ ¾Æ¹«°Íµµ ¹ß»ýÇÏÁö ¾ÊÀ½ 8 file ÀÌ user¿¡°Ô º¸³»Áö°Å³ª (o>utgoing), user·Î ºÎÅÍ ¹ÞÀ½ (i>ncom­ ing) 9 Á¢±ÙÇÑ ¹æ½Ä (r>eal, a>nonymous, g>uest) -- mostly for FTP 10 local username ¶Ç´Â "ftp" userÀÇ °æ¿ì login½Ã¿¡ password·Î ÀÔ·ÂÇÑ e-amil address 11 service ¸í (`ftp", other) 12 ÀÎÁõ¹æ½Ä (bitmask) 0 none 1 RFC931 ÀÎÁõ 13 ÀÎÁõµÇ¾îÁø user id (if available, "*" otherwise) 5.6. °ü·Ã Ç׸ñ ftp(1), getusershell(3), syslogd(8), ftpaccess(5), xfer? log(5), umask(2) 5.7. ¹ö±× anonymous °èÁ¤Àº ¾ÈÀüÇÏÁö°¡ ¸øÇÏ¸ç °¡´ÉÇÑ ¸·´Â °ÍÀÌ ÁÁ´Ù. server´Â ÁöÁ¤µÈ port number·Î¼­ socketµéÀ» ¸¸µé±â À§ÇÏ¿© super- user·Î¼­ ½ÇÇàÀÌ µÇ¾îÁ®¾ß ÇÑ´Ù. ÀÌ°ÍÀº login µÇ¾îÁø userÀÇ ¿µÇâ·Â ÀÖ´Â user id¸¦ Áö¼ÓÇϸç socket¿¡ address¸¦ ¼Ó¹ÚÇÒ¶§ super-userÀÇ ±ÇÇÑÀ» ¾òÀ»¼ö°¡ Àֱ⠶§¹®ÀÌ´Ù. °¡´ÉÇÑ º¸¾È ±¸¸Û¿¡ ´ëÇؼ­ ¼¼¹ÐÈ÷ Á¶»çµÇ¾î Á®¾ß ÇÏÁö¸¸ ¾Æ¹«¸® Çصµ ºÒ°¡´ÉÇÏ´Ù. 6. ftphosts 6.1. À̸§ ftphosts - ftpd¿¡ Á¢±ÙÇÏ´Â °¢ host¿¡ ´ëÇÑ Á¦ÇÑÀ» ¼³Á¤ 6.2. ¼³¸í ftphosts fileÀº ¿©·¯ host·Î ºÎÅÍ ¾î¶² °èÁ¤À¸·Î Á¢±ÙÀ» ÇÏ´Â °ÍÀ» Çã¶ôÇϰųª °ÅÀýÇϴµ¥ »ç¿ëÀÌ µÈ´Ù. 6.3. Á¢±Ù »ç¿ë¹ý allow [ ...] allow host(s)´Â ¿ÀÁ÷ À¸·Î ·Î±×¸¦ Çϱâ À§ÇÑ ¸¸À» ºñ±³ÇÑ´Ù. deny [ ...] deny host(s)´Â Ç×»ó À¸·Î log¸¦ Çϱâ À§ÇÑ ¸¦ ºñ±³ÇÑ´Ù. anonymous ¶Ç´Â ftp ¿Í °°Àº usernameÀº À͸í login user¸¦ ÀǹÌÇÑ´Ù. ´Â ¶ÇÇÑ address/cidr ¶Ç´Â address:netmask ·Î¼­ ÁöÁ¤µÉ¼öµµ ÀÖ´Ù. ¿¹¸¦ µé¸é : 10.0.0.0/8 or 10.0.0.0:255.0.0.0 6.4. ÆÄÀÏ FTPLIB/ftphosts 6.5. °ü·Ã Ç׸ñ ftpd(8), ftpaccess(5), ftplog(5), ftpconversions(5), ftpshut(8) 7. ftpshut 7.1. À̸§ ftpshut - ÁöÁ¤ÇÑ ½Ã°£¿¡ ftp server¸¦ ´Ù¿î½ÃŲ´Ù. 7.2. ¹®¹ý ftpshut [ -V ] [ -l min] [ -d min] time [ warning-message ... ] 7.3. ¼³¸í ftpshut ¸í·ÉÀº ftp server°¡ shut downÀ» ÇÒ¶§ superuser°¡ ftp user ¿¡°Ô °øÁöÇÒ¼ö ÀÖ´Â ÀÚµ¿ shutdown ÁøÇàÀ» ÁغñÇÑ´Ù. -V ¿É¼ÇÀº ÀúÀ۱ǰú ¹öÁ¯ Á¤º¸¸¦ Ãâ·ÂÇÑ´Ù. time Àº ftpshut ÀÌ ftp server¸¦ ´Ù¿î½Ãų ½Ã°£À» ¸»ÇÑ´Ù. "now"¶ó´Â ´Ü¾î¸¦ »ç¿ëÇÏ¿© Áï½Ã shutdownÀ» ÇÒ¼ö ÀÖÀ¸¸ç ¶ÇÇÑ ¾Æ·¡¿Í °°Àº Çϳª ¶Ç´Â µÎ°³ÀÇ Çü½ÄÀ¸·Î¼­ ¹Ì·¡ÀÇ ½Ã°£À» ÁöÁ¤ÇÒ ¼öµµ ÀÖ´Ù. : + number ¶Ç´Â HHMM. ù¹ø° Çü½ÄÀº ftp server down ½Ã°£À» minutes(ºÐ) À¸·Î¼­ ÁöÁ¤À» ÇÑ´Ù. µÎ¹ø°´Â 24-½Ã°£ Çü½ÄÀ» »ç¿ëÇÏ¿© ÁöÁ¤ÇÒ ³¯ÀÇ ½Ã°£¿¡ ftp serverÀÇ shutdownÀ» ÁöÁ¤ÇÑ´Ù. shutdown 10ºÐÀü ¶Ç´Â ftpshut ÀÌ 10ºÐÀÌ ¾È³²¾Ò´Ù¸é »õ·Î¿î ftp Á¢±ÙÀº Áï½Ã °ÅºÎµÈ´Ù. ÀÌ ½Ã°£Àº -l flag ¸¦ ÅëÇؼ­ Á¤ÀǵǾî Áø´Ù. shutdonw 5ºÐÀü ¶Ç´Â ftpshut ÀÌ 5ºÐÀÌ ³²Áö ¾Ê¾Ò´Ù¸é ÇöÀç Á¢¼ÓÀÌ µÇ¾î ÀÖ´Â connections µéÀº Áï½Ã ²÷¾îÁö°Ô µÈ´Ù. ÀÌ ½Ã°£Àº -d flag¸¦ ÅëÇؼ­ ÁöÁ¤ÀÌ µÈ´Ù. [ warning-message ... ] Àº 75 ¹®ÀÚÀÇ ±æÀÌÀÇ Çü½ÄÀ» ÃëÇÑ´Ù. ftpshut Àº magic cookieÀÇ ½ÇÁ¦ ¹®ÀÚ¿­ ±æÀÌ ¿ª½Ã Æ÷ÇÔÀ» Çؼ­ ÀνÄÀ» ÇÑ´Ù. shutdownÀ» ÇÏ·Á ÇÒ¶§ ¾î¶°ÇÑ fileÀ» »ý¼ºÇÏ¿© ÀÌ fileÀÇ À¯¹«¿¡ ´ëÇØ ¸í·ÉÀ» ½ÇÇà½Ãų¼ö°¡ ÀÖ´Ù. ÀÏ´Ü shutdownÀÌ µÇ¸é ÀÌ fileÀÌ Á¦°¡ µÉ¶§ ±îÁö Á¢¼ÓÀº °ÅºÎ°¡ µÉ °ÍÀÌ´Ù. ÀÌ fileÀº ftpaccess fileÀÇ shutdown Áö½ÃÀÚ¿¡ ÀÇÇؼ­ À§Ä¡¿Í file¸íÀÌ ÁöÁ¤µÈ´Ù. ¾Æ·¡¿Í °°ÀÌ macig cookie¸¦ »ç¿ë°¡´ÉÇÏ´Ù : Cookie ¼³¸í %s systemÀÌ ´Ù¿îµÇ´Â ½Ã°£ %r »õ·Î¿î Á¢¼ÓÀÌ °ÅºÎµÇ´Â ½Ã°£ %d ÇöÀç »ç¿ëÀÚµéÀÌ °­Á¦ logout µÇ´Â ½Ã°£ %C ÇöÀç ÀÛ¾÷ÁßÀÎ directory %E ftpaccess¿¡¼­ ÁöÁ¤ÇÑ ¼­¹ö °ü¸®ÀÚÀÇ Email address %F CWD ÆÄƼ¼ÇÀÇ ³²Àº °ø°£ (kbytes) [¸ðµç systemÀ» Áö¿øÇÏÁö´Â ¾ÊÀ½] %L local host name %M Çö classÀÇ ÃÖ´ë Á¢¼Ó user ¼ö %N Çö classÀÇ ÇöÀç Á¢¼Ó user ¼ö %R remote host name %T systemÀÇ ½Ã°£ (form Thu Nov 15 17:12:42 1990) %U login½Ã ÁÖ¾îÁø username 7.4. Á¦ÇÑ ¸¸¾à Àý´ë ½Ã°£À» »ç¿ëÇÑ´Ù¸é, server´Â ÇöÀçºÎÅÍ 23:59, ¸¸¾à Àý´ë ½Ã°£À» »ç¿ëÇÑ´Ù¸é, server´Â ÇöÀçºÎÅÍ 23:59 »çÀÌ¿¡¸¸ shutdownÀ» ÇÒ¼ö ÀÖ´Ù. 7.5. °ü·Ã Ç׸ñ shutdown(1), ftpaccess(5), ftprestart(8) 8. ftpwho 8.1. À̸§ ftpwho - °¢ ftp user¿¡ ´ëÇÑ ÇöÀçÀÇ process Á¤º¸¸¦ º¸¿©ÁØ´Ù. 8.2. ¹®¹ý ftpwho [ -V ] 8.3. ¼³¸í ftpwho ¸í·ÉÀº ftp server¿¡ login ÇØ ÀÖ´Â °¢ userµé¿¡ ´ëÇÑ ÇöÀç process Á¤º¸¸¦ º¸¿©ÁØ´Ù. -V ¿É¼ÇÀº ÀúÀ۱ǰú ¹öÁ¯ Á¤º¸¸¦ Ãâ·ÂÇÑ´Ù. 8.4. Á¦ÇÑ SETPROCTITLE ¾øÀÌ compile ÇÑ´Ù¸é º°·Î À¯¿ëÇÏÁö ¸øÇÒ °ÍÀÌ´Ù. 8.5. °ü·Ã Ç׸ñ ftpcount(1) 9. XFERLOG 9.1. À̸§ xferlog - FTP server logfile 9.2. ¼³¸í The xferlog fileÀº FTP server daemon ( ftpd(8) ) ÀÇ log? ging Á¤º¸¸¦ Æ÷ÇÔÇÑ´Ù. ÀÌ fileÀº º¸Åë /usr/adm ¿¡¼­ º¼¼ö ÀÖÀ¸³ª, ftpd(8) ÀÇ optionsÀ» »ç¿ëÇÔ¿¡ µû¶ó ¾îµðµçÁö À§Ä¡µÇ¾î Áú¼ö ÀÖ´Ù. Each server entry is composed of a single line of the following form, with all fields being separated by spaces. °¢ server Ç׸ñÀº ¾Æ·¡ÀÇ formÀ¸·Î ÀÌ·ç¾îÁø ÇÑÁÙ·Î ±¸¼ºµÇ¾î Áö¸ç, ¸ðµç field´Â space·Î ±¸ºÐ µÇ¾î Áø´Ù. current-time transfer-time remote-host file-size filename transfer- type special-action-flag direction access-mode username service-name authentication-method authenticated-user-id completion-status 9.2.1. current-time "DDD MMM dd hh:mm:ss YYYY" Çü½ÄÀÇ ÇöÀç local ½Ã°£ÀÌ´Ù. DDD´Â ÁÖÁßÀÇ ¿äÀÏÀ», MMMÀº ¿ùÀ», dd´Â ³¯Â¥¸¦, hh´Â ½Ã¸¦, mmÀº ºÐÀ», ss´Â Ãʸ¦, ±×¸®°í YYYY´Â ³âµµ¸¦ ³ªÅ¸³½´Ù. 9.2.2. transfer-time Àü¼ÛÀ» À§ÇÑ ÃÑ ½Ã°£À» ¸»Çϸç ÃÊ´ÜÀ§·Î Ç¥½ÃÇÑ´Ù. 9.2.3. remote-host ¿ø°Ý host À̸§ÀÌ´Ù. 9.2.4. file-size byte´ÜÀ§ÀÇ Àü¼ÛµÈ fileÀÇ Å©±âÀÌ´Ù. 9.2.5. filename Àü¼ÛµÈ fileÀÇ À̸§ÀÌ´Ù. 9.2.6. transfer-type Àü¼ÛÀÇ ÇüŸ¦ ³ªÅ¸³»´Â ÇϳªÀÇ characterÀÌ´Ù. a ´Â ascii Àü¼ÛÀ» ¶æÇÑ´Ù. b ´Â binary Àü¼ÛÀ» ¶æÇÑ´Ù. 9.2.7. special-action-flag ¾î¶² ƯÁ¤ÇÑ actionÀÌ ¹ß»ýÇÏ´Â °ÍÀ» ³ªÅ¸³»´Â Çϳª ¶Ç´Â ±× ÀÌ»óÀÇ character flag ÀÌ´Ù. ¾Æ·¡¿¡ ³ª¿­µÈ °Í ÁßÀÇ Çϳª ¶Ç´Â ±× ÀÌ»óÀ¸·Î »ç¿ëÇÒ¼ö ÀÖ´Ù. C fileÀº ¾ÐÃàµÇ¾îÁ® ÀÖ´Ù. U fileÀº ¾ÐÃàÀÌ µÇ¾îÁ® ÀÖÁö ¾Ê´Ù. T fileÀÌ tar·Î ¹­¿©Á® ÀÖ´Ù. _ ¾Æ¹«·±actionÀÌ ¹ß»ýÇÏÁö ¾Ê¾Ò´Ù. 9.2.8. direction Àü¼ÛÀÇ Áö½ÃÀÌ´Ù. o outgoing i incoming 9.2.9. access-mode user°¡ ¾î¶»°Ô loginÀ» Çϴ°¡¿¡ ´ëÇÑ ¹æ¹ýÀÌ´Ù. a (anonymous) ´Â ÀÍ¸í ¼Õ´Ô userµéÀ» À§ÇÑ °ÍÀÌ´Ù. g (guest) is for an passworded guest user (see the (guest) ´Â password¸¦ ¼ÒÀ¯ÇÑ ¼Õ´Ô userµéÀ» À§ÇÑ °ÍÀÌ´Ù. ( ftpac­ cess(5) ÀÇ guestgroup ¸í·ÉÀ» ÂüÁ¶Ç϶ó) r (real) Àº ÀÎÁõÀÌ °¡´ÉÇÑ local user¸¦ À§ÇÑ °ÍÀÌ´Ù. 9.2.10. username local username ÀÌ´Ù. ¸¸¾à ¼Õ´Ô À̶ó¸é, ÁÖ¾îÁø ID ¹®ÀÚ¿­À» ¶æÇÑ´Ù. 9.2.11. service-name ¹ß»ýµÇ¾îÁö´Â serviceÀÇ À̸§ÀÌ¸ç º¸ÅëÀº FTPÀÌ´Ù. 9.2.12. authentication-method ÀÎÁõ¿¡ »ç¿ëµÇ¾î Áö´Â ¹æ¹ýÀÌ´Ù. ¾Æ·¡ÁßÀÇ Çϳª¸¦ »ç¿ëÇÑ´Ù. 0 none 1 RFC931 Authentication 9.2.13. authenticated-user-id ÀÎÁõ ¹æ¹ý¿¡ ÀÇÇØ µÇµ¹·ÁÁö´Â user id ÀÌ´Ù. ÀÎÁõµÇ¾îÁø user id°¡ »ç¿ëºÒ°¡ ÇÏ´Ù¸é * ÀÌ »ç¿ëµÇ¾î Áø´Ù. 9.2.14. completion-status Àü¼Û »óŸ¦ ³ªÅ¸³»´Â ÇϳªÀÇ characterÀÌ´Ù. c ¿ÏÀüÇÑ Àü¼Û i ºÒ¿ÏÀüÇÑ Àü¼Û 9.3. ÆÄÀÏ /usr/adm/xferlog 9.4. °ü·Ã Ç׸ñ ftpd(8), ftpaccess(5) 10. ftprestart 10.1. À̸§ ftprestart - ftp server¸¦ shutdownÇÑÈÄ Àç½ÃÀÛÀ» ÇÏ°Ô ÇÔ 10.2. ¹®¹ý ftprestart [-V] ftprestart ¸í·ÉÀº ftp serverµéÀ» shutdown ÀÌÈÄ¿¡ restart¸¦ ÀÚµ¿À» ÇÏ´Â ¹æ¹ýÀ» Á¦°øÇÑ´Ù. ftprestart ´Â FTP server¸¦ ÀçÁö»èÀ» ÇÏ·Á°í Áغñ¸¦ ÇÒ¶§ »ç¿ëÀÌ µÇ¾îÁø´Ù. ÀÌ°ÍÀº ftpshutÀÇ ¹Ý´ëÀ̸ç ftpshut¿¡ ÀÇÇØ »ý¼ºµÈ shutdown message¸¦ »èÁ¦ÇÑ´Ù. ÀÌ°ÍÀº anonymous ftp ¿µ¿ª°ú ¸ðµç °¡»ó ftp server ¿µ¿ªÀÇ shutdown message fileµéÀ» »èÁ¦ÇÏ°Ô µÈ´Ù. -V optionÀº ÇÁ·Î±×·¥ ¼öÇàÈÄ¿¡ copyright¿Í version Á¤º¸¸¦ Ãâ·ÂÇÏ°Ô ÇÑ´Ù. 10.3. Ãâ·Â ¿¹Á¦ ftprestart: /servers/some.domain/ftp/etc/shutmsg removed. ftprestart: /servers/other.domain/ftp/etc/shutmsg removed. ftprestart: /etc/shutmsg removed. 10.4. °ü·Ã Ç׸ñ shutdown(1), ftpshut(8), ftpaccess(5) 11. ftpservers 11.1. À̸§ ftpservers - ftpd °¡»ó È£½ºÆ® ¼³Á¤À» Á¤ÀÇÇÏ´Â file 11.2. ¼³¸í ftpservers fileÀº ftpd(8) server°¡ »ç¿ëÇÏ´ø °¡»óÈ£½ºÆ® ¼³Á¤ ÆÄÀÏÀ» ÁöÁ¤Çϴµ¥ »ç¿ëµÇ¾î Áø´Ù. °¡»ó È£½ºÆ® Áö¿øÀ» °¡´ÉÇÏ°Ô compileÇßÀ»¶§, wu-ftpd´Â °¢ virtual domain¿¡ ´ëÇÑ ¼³Á¤ ÆÄÀÏÀ» ºÐ¸®Çؼ­ »ç¿ëÀÌ °¡´ÉÇÏ°Ô µÇ¾î ÀÖ´Ù. ÇöÀç, ¼³Á¤ ÆÄÀϵéÀº ºÐ¸®µÇ¾îÁø °¡»ó domain µð·ºÅ丮¿¡ À§Ä¡ÇØ ÀÖ´Ù. ¼³Á¤ ÆÄÀÏ¿¡¼­ »ç¿ëµÇ¾î Áö´Â directory °æ·Î¿Í IP address´Â ftpservers file¿¡ ³ª¿­ÀÌ µÈ´Ù. ½ÇÁ¦ ¼³Á¤ ÆÄÀϵéÀº ÇØ´ç µð·ºÅ丮 ¾È¿¡ ¾Æ·¡ÀÇ À̸§À» °¡Áø ÆÄÀϵéÀ» Æ÷ÇÔÇÏ°í ÀÖ¾î¾ß ÇÑ´Ù: ftpaccess - °¡»ó doamin Á¢±Ù ÆÄÀÏ ftpusers - Á¢±ÙÀ» °ÅºÎÇÒ °èÁ¤µéÀ» ¼³Á¤ ftpgroups - SITE GROUP and SITE GPASS Áö¿ø ftphosts - °¡»ó µµ¸ÞÀο¡ Á¢±Ù °¡´ÉÇÑ ´ë¿ªÀ» ¼³Á¤ ftpconversions - °¡»ó µµ¸ÞÀο¡¼­ »ç¿ë °¡´ÉÇÑ Àüȯ ¸í·ÉÀ»À» ÃÖÀûÈ­ °¢ °¡»ó domain directory¿¡ ¸ðµç ¼³Á¤ ÆÄÀϵéÀ» °¡Áö°í ÀÖÀ» ÇÊ¿ä´Â ¾ø´Ù. ¸¸¾à ÁÖ µµ¸ÞÀÎÀÇ ¼³Á¤À» ±×´ë·Î »ç¿ëÇÏ·Á ÇÑ´Ù¸é, ftpconversions file °°Àº °ÍµéÀ» ¿¹¸¦ µç´Ù¸é, °¡»ó µµ¸ÞÀÎ directory¿¡ ±¸Å¿© ÀÌ ÆÄÀÏÀ» ³ÖÀ» ÇÊ¿ä´Â ¾ø´Ù´Â °ÍÀÌ´Ù. ÀÌ·¸°Ô °¡»ó µµ¸ÞÀÎ directory¿¡ Æ÷ÇԵǾî ÀÖÁö ¾ÊÀº ¼³Á¤ÆÄÀϵéÀº ÁÖ µµ¸ÞÀÎÀÇ ¼³Á¤ ÆÄÀÏÀ» ºÒ·¯µéÀÌ°Ô µÈ´Ù. ÁÖÀÇ!!!: °¡»ó µµ¸ÞÀÎ directory¿¡ µé¾î°¡´Â ÆÄÀϵéÀº À§ÀÇ list¿Í Á¤È®ÇÏ°Ô matchµÇ¾îÁ®¾ß ÇÑ´Ù. ¸¸¾à À̸§¿¡ ¿ÀŸ°¡ ÀÖÀ» °æ¿ì¿¡´Â ÇØ´ç ÆÄÀÏÀ» ãÁö ¸øÇÏ°Ô µÇ¸ç ÁÖ µµ¸ÞÀÎ ¼³Á¤ ÆÄÀÏ·Î ´ëü¸¦ ÇÏ°Ô µÈ´Ù. 11.3. ftpservers file Çü½Ä °¢ entry¿¡´Â 2°³ÀÇ field°¡ Á¸ÀçÇÑ´Ù. ipaddr/hostname directory-containing-configuration-files ¿¹Á¦: 10.196.145.10 /etc/ftpd/ftpaccess.somedomain/ 10.196.145.200 /etc/ftpd/ftpaccess.someotherdomain/ some.domain INTERNAL ftp client°¡ server·Î Á¢¼ÓÀ» ÇÒ¶§, ftpd´Â ftpservers file¿¡¼­ ¹ß°ßÇÑ ftp client°¡ Á¢¼ÓÀ» ÇÒ ip address¸¦ ¸ÅÄ¡½ÃÅ°·Á ÇÑ´Ù. ¸ÅÄ¡°¡ µÇ´Â °ÍÀ» ¹ß°ßÀ» Çϸé, ÇØ´ç µµ¸ÞÀο¡ ´ëÇÑ µð·ºÅ丮 °æ·Î¿Í ¼³Á¤ ÆÄÀϵéÀ» ¹ÝȯÇÏ°Ô µÈ´Ù. ftpd´Â ÀÌ µð·ºÅ丮¿¡ µé¾î ÀÖ´Â ¼³Á¤ ÆÄÀϵéÀ» »ç¿ëÇÏ°Ô µÈ´Ù. ¼³Á¤ ÆÄÀÏ¿¡ matchµÇ´Â °ÍÀÌ ¾ø°Å³ª, directory °æ·Î°¡ Á¤ÀÇ°¡ À߸ø µÇ¾î ÀÖÀ» °æ¿ì, ¼³Á¤ ÆÄÀÏÀÇ ±âº» °æ·Î¸¦ »ç¿ëÇÏ°Ô µÈ´Ù. À§ÀÇ ¿¹Á¦Áß INTERNALÀÇ »ç¿ëÀº ÁÖ µµ¸ÞÀÎÀÇ ¼³Á¤ ÆÄÀÏÀ» »ç¿ëÇϵµ·Ï ÇÏ°Ô ÇÑ´Ù. °¡»ó µµ¸ÞÀÎÀ» ÁöÁ¤ÇÒ¶§ ½ÇÁ¦ IP address¿Í hostname ¸ðµÎ ¼³Á¤ÀÌ °¡´ÉÇÏ´Ù. ´Ù¸¸ hostnameÀ¸·Î ÁöÁ¤ÇÒ °æ¿ì DNS lookupÀÌ ÇÊ¿äÇÏ°í ¶ÇÇÑ DNS ¹ö±×¿Íµµ °ü·ÃÀÌ µÇ¾î Áú¼ö ÀÖÀ¸¹Ç·Î ¿Ø¸¸Çϸé ip address·Î ÁöÁ¤À» ÇÏ´Â °ÍÀ» ±ÇÀåÇÑ´Ù. 10.196.145.20 /etc/ftpd/config/faqs.org/ ftp.some.domain /etc/ftpd/config/faqs.org/ ÁÖ¼®Ã³¸®½Ã¿¡´Â # Ç¥½Ã¸¦ »ç¿ëÇϸç, Áߺ¹ ÁÖ¼® ¶óÀΰú °ø¹é ¶óÀÎÀº ¹«½ÃµÇ¾î Áø´Ù. 11.4. °ü·Ã Ç׸ñ ftpd(8) , ftpaccess(5) ftplog(5) , ftpconversions(5) , ftphosts(5) 12. Copyright Copyright (c) 1999,2000 WU-FTPD Development Group. All rights reserved. Portions Copyright (c) 1980, 1985, 1988, 1989, 1990, 1991, 1993, 1994 The Regents of the University of California. Portions Copyright (c) 1993, 1994 Washington University in Saint Louis. Portions Copyright (c) 1996, 1998 Berkeley Software Design, Inc. Portions Copyright (c) 1998 Sendmail, Inc. Portions Copyright (c) 1983, 1995, 1996, 1997 Eric P. Allman. Portions Copyright (c) 1989 Massachusetts Institute of Technology. Portions Copyright (c) 1997 Stan Barber. Portions Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc. Portions Copyright (c) 1997 Kent Landfield. Use and distribution of this software and its source code are governed by the terms and conditions of the WU-FTPD Software License ("LICENSE"). $ Id: ftpcount.1,v 1.5 2000/07/01 17:49:09 wuftpd Exp $