|
|
|
¸®´ª½ºÆÁ Go Unix Power Tools Online Book
Go Bash Guide
|
|
Read No. 18 article |
2001-08-06 04:08:46 |
|
|
|
|
NickName |
Ç®ºñ´© |
Subject |
[À¥È£½ºÆÃ]¾ÆÆÄÄ¡-¸ÞÀÏ-ProFTPdÃʺ¸ÀÚµµ ÇÒ¼ö ÀÖ´Ù(2) |
|
|
4. °¡»ó ¸ÞÀϼ¹ö
°¡»ó ¸ÞÀÏ ¼¹öºñ½º´Â ¾ÆÆÄÄ¡ ¼³Á¤ÆÄÀÏ°ú °°ÀÌ ±×¸® º¹ÀâÇÏÁö ¾Ê´Ù.
´Ü, ³×ÀÓ¼¹ö¸¸ Àß ¼³Á¤ÇÏ°í access ÆÄÀÏ°ú Virtualtable ÆÄÀÏ°ú Àß
ÆíÁýÇØ ÁÖ¸é ¹«¸®°¡ ¾ø´Ù.
±×¸®°í POP3µ¥¸óµµ ÇÔ²² ¼³Ä¡ÇØ ÁÖ¾î¾ß ÇÑ´Ù.
4-1. sendmail ¼³Ä¡Çϱâ
¸ÕÀú sendmailÀÌ ¼³Ä¡µÇ¾î ÀÖ´ÂÁö È®ÀÎÇØ º¸ÀÚ.
[san2@www san2]$ rpm -qa |grep sendmail
sendmail-8.9.3-10kr
[san2@www san2]$
ÇÊÀÚÀÇ ½Ã½ºÅÛ¿¡´Â ¹öÀüÀÌ 8.9.3 ÀÎ RPMÀ¸·Î ¼³Ä¡µÇ¾î ÀÖ´Ù.
¼³Ä¡µÇ¾î ÀÖÁö ¾Ê´Ù¸é CD-ROMÀ̳ª ÇØ´ç ¹èÆ÷º»ÀÇ FTP½ÎÀÌÆ®¿¡¼
´Ù¿î·ÎµåÇÏ¿© ¼³Ä¡ÇÏÀÚ.
¿¹: CD-ROMÀ¸·Î ¼³Ä¡ÇÏ´Â °æ¿ì
[san2@www san2]$ su
Password: ********
[root@www san2]# mount /mnt/cdrom
[root@www san2]# cd /mnt/cdrom/RedHat/RPMS
[root@www RPMS]# rpm -Uvh sendmail*
sendmail #################################
[root@www RPMS]#
[root@www RPMS]# /etc/rc.d/init.d/sendmail start
[root@www RPMS]#
4-2. qpopper ¼³Ä¡Çϱâ
¸ÞÀÏÀ» º¸³»±â¸¸ ÇÏ¸é ¾ÈµÇ°ÚÁÒ?? Ŭ¶óÀ̾ðÆ®¿¡¼ ¸ÞÀÏÀ» ¹ÞÀ» ¼ö ÀÖ¾î¾ß
ÇÑ´Ù. Áï Ŭ¶óÀ̾ðÆ®¿¡¼ ¹ÞÀ» ¼ö ÀÖ°Ô Çϱâ À§Çؼ´Â POP3°°Àº µ¥¸óÀ»
¼¹ö¿¡ ¼³Ä¡ÇØ ÁÖ¾î¾ß ÇÑ´Ù.
ÇÊÀÚ´Â Á÷Á¢ qpopper 3.0 ¼Ò½º¸¦ ¹Þ¾Æ ÄÄÆÄÀÏÇÏ¿© ¼³Ä¡ÇÏ¿´´Ù.
¹ÚÀçÈ£´Ô ȨÆäÀÌÁö(http://www.kies.co.kr/~jhpark/Sendmail/popper.html)
¿¡ ÀÚ¼¼ÇÑ Á¤º¸°¡ ÀÖÀ¸´Ï ²À ¹æ¹®Çϵµ·Ï ÇÑ´Ù.
¿©±â¿¡¼´Â ¸ðµç °³³äÀûÀÎ ¼³¸íÀº Á¦¿ÜÇÏ°í ¿ÀÁ÷ ¼³Ä¡¿¡¸¸ ¾ð±ÞÇÑ´Ù.
ÀÏ´Ü qpopper 3.0À» ´Ù¿î·ÎµåÇÏÀÚ.
ftp://ftp.qualcomm.com/eudora/servers/unix/popper/
¿¡ Á¢¼ÓÇϸé 2.53 ¹öÀü°ú 3.0b17, 3.0b18 ¹öÀüÀÌ ÀÖ´Ù.
ÇÊÀÚ´Â qpopper3.0b18.tar.Z (2,432KB)À» ´Ù¿î·Îµå ÇÏ¿´°í,
/usr/local/src ¿¡ ±× ¼Ò½º¸¦ ÄÄÆÄÀÏÇÏ°í
/usr/local/qpopper ¶ó´Â µð·ºÅ丮¿¡ ¼³Ä¡ÇÒ °ÍÀÌ´Ù.
# cp qpopper3.0b18.tar.Z /usr/local/src/
# cd /usr/local/src
# ls
qpopper3.0b18.tar.Z
# uncompress qpopper3.0b18.tar.Z
# tar xvf qpopper3.0b18.tar
# cd qpopper3.0
# ./configure --enable-specialauth \
--enable-bulletins=/var/spool/bulls \
--enable-servermode
# make
# cp popper/popper /usr/local/lib/
#
/etc/services ÆÄÀÏÀ» ´ÙÀ½°ú °°ÀÌ ÆíÁýÇÑ´Ù.
-----------------------------------------------------------
#pop-2 109/tcp postoffice # POP version 2
#pop-2 109/udp
#pop-3 110/tcp # POP version 3
#pop-3 110/udp
pop3 110/tcp # popper
-----------------------------------------------------------
/etc/inetd.conf ÆÄÀϵµ ´ÙÀ½°ú °°ÀÌ ÆíÁýÇÑ´Ù.
-----------------------------------------------------------
#pop-2 stream tcp nowait root /usr/sbin/tcpd ipop2d
#pop-3 stream tcp nowait root /usr/sbin/tcpd ipop3d
pop3 stream tcp nowait root /usr/local/lib/popper popper -s
-----------------------------------------------------------
½´ÆÛµ¥¸óÀ» Àç ½ÇÇàÇÑ´Ù.
# /etc/rc.d/init.d/inet restart
ÀÌÁ¦ ¿©·¯ºÐÀÇ ¸®´ª½º ¹Ú½º´Â Ŭ¶óÀ̾ðÆ®¿¡¼ ¸ÞÀÏÀ» ¹ÞÀ» Áغñ°¡ µÇ¾î ÀÖ´Ù.
´ÙÀ½Àº sendmail ¼³Á¤ÆÄÀÏÀÇ ¿¹ÀÌ´Ù. ²À ÀÌÇØÇÏ°í ³Ñ¾î°¡¾ß ÇÑ´Ù.
4-3. /etc/sendmail.cf
--------------------------------------------------------------
# anything else is bogus
R$* $#error $@ 5.7.1 $: "550 Relaying denied" #<------[ÁÖÀÇ]
# Áß·«
Cwlocalhost
# file containing names of hosts for which we receive email
Fw/etc/sendmail.cw
--------------------------------------------------------------
ºÎ¿¬¼³¸íÇÏÀÚ¸é [ÁÖÀÇ]ºÎºÐÀ» ÁÖ¼®À¸·Î ó¸®Çϸé spam ¸ÞÀÏ ¹®Á¦°¡ ÀÖ´Ù.
ÁÖ¼®À¸·Î 󸮵Ǿî ÀÖ´Ù¸é ¾î¼¸é ¿©·¯ºÐÀÇ ¸®´ª½º¹Ú½º´Â SpamerÀÇ
º»°ÅÁö°¡ µÉ ¼öµµ ÀÖ´Ù´Â °ÍÀÌ´Ù.
ÁÖ¼®À¸·Î 󸮵Ǿî ÀÖ´Ù¸é ÁÖ¼®À» À§¿Í °°ÀÌ Á¦°ÅÇÏ°í accessÆÄÀÏÀ»
¾Æ·¡¿Í °°ÀÌ ÆíÁýÇØ ÁØ´Ù.
±×¸®°í
Fw/etc/sendmail.cw
¿Í °°ÀÌ ÁÖ¼®Ã³¸®°¡ µÇ¾î ÀÖÁö ¾Ê¾Æ¾ß ÇÑ´Ù.
4-4. /etc/sendmail.cw
--------------------------------------------------------------
# sendmail.cw - include all aliases for your machine here.
# ³×ÀÓ¼¹ö¿¡ µî·ÏµÈ ¸ðµç µµ¸ÞÀÎÀ» ÀÌ ÆÄÀÏ¿¡ ´ÙÀ½°ú °°ÀÌ Àû¾îÁØ´Ù.
linux.ac.kr
linuxer.net
linuxer.com
sonamu.co.kr
--------------------------------------------------------------
4-5. /etc/sendmail.cm
Ưº°ÇÏ°Ô ÆíÁýÇÒ ÇÊ¿äÀº ¾ø´Ù. ±×³É ³Ñ¾î°£´Ù.
4-6. /etc/mail/access
-------------------------------------------------------------
# ¿¹Á¦:
# cyberspammer.com REJECT
# sendmail.org OK
# 128.32 RELAY
#
# ÁÖÀÇ »çÇ×!!!
#
# ¼³Á¤ ÆÄÀÏÀ» ÀÛ¼ºÇÒ ¶§ sendmail.org ¿Í OK, 128.32 ¿Í RELAY »çÀÌ´Â
# ½ºÆäÀ̽º°¡ ¾Æ´Ï¶ó ²À!!! <ÅÇ>Å°¸¦ »ç¿ëÇÏ¿© ¶ç¿ö¾ß ÇÕ´Ï´Ù.
localhost.localdomain RELAY
localhost RELAY
linux.ac.kr OK
linuxer.net OK
linuxer.com OK
sonamu.co.kr OK
192.168 RELAY
# access ÆÄÀÏÀ» °íÄ£ ÀÌÈÄ¿¡´Â
#
# makemap hash /etc/mail/access < /etc/mail/access
#
# ¸í·ÉÀ¸·Î °»½ÅÇØ ÁÖ¾î¾ß ÇÕ´Ï´Ù.
----------------------------------------------------------
4-7. /etc/mail/virtusertable
¸Å¿ì Áß¿äÇÑ ¼³Á¤ÆÄÀÏÀÌ´Ù. ÀÌ ÆÄÀÏÀ» ¾î¶»°Ô Àß ÆíÁýÇÏ´À³Ä¿¡ µû¶ó¼
À¥È£½ºÆÃÀÇ ¼º°ø¿©ºÎ°¡ ´Þ·Á ÀÖ´Ù°í Çصµ ÁÁ´Ù. ÁÖÀÇ ±í°Ô »ìÆ캸ÀÚ.
ÇÊÀÚ°¡ ¿Ö ÀÌ·¸°Ô ¼³Á¤Çߴ°¡¿¡ ´ëÇؼ´Â ¸ÇÀ§ÀÇ '³ªÀÇ ¸ñÇ¥'¸¦ ´Ù½ÃÇѹø
Àо±â ¹Ù¶õ´Ù.
------------------------------------------------------------
# ÀÌ ÆÄÀÏÀ» º¸¸é ±èÁ¤±Õ´ÔÀÌ ¾²½Å ¿¹Á¦¸¦ º¸¸é ½±°Ô ÀÌÇØ ÇÒ ¼ö ÀÖ´Ù.
webmaster at linux.ac.kr san2
ftp at linux.ac.kr san2
study at linux.ac.kr san2
study-app at linux.ac.kr san2
study-net at linux.ac.kr san2
game at linux.ac.kr gamedori at hanmail.net
@linuxer.com com
webmaster at linuxer.net net
ftp at linuxer.net net
meeting at linuxer.net meet
admin at sonamu.co.kr sonamu
----------------------------------------------------------
ºÎ¿¬¼³¸íÇÏÀÚ¸é
µµ¸ÞÀÎ linux.ac.kr(¸ÞÀϼ¹ö) ¿¡ ´ëÇؼ
game at linux.ac.kr ·Î ¿À´Â ¸ÞÀÏÀº gamedori at hanmail.net À¸·Î
¸ÞÇÎÇÏ°í ³ª¸ÓÁö webmaster at linux.ac.kr ftp at linux.ac.kr
study at linux.ac.kr study-app at linux.ac.kr study-net at linux.ac.kr
·Î ¿À´Â ¸ÞÀÏÀº ÀÌ ¼¹ö °ü¸®ÀÚÀÎ rootÀÇ ÀÏ¹Ý À¯ÀúÀÎ 'san2' °èÁ¤À¸·Î
º¸³½´Ù.
@linux.ac.kr san2
·Î ¼³Á¤ÇØ ¹ö¸°¸é linux.ac.kr µµ¸ÞÀÎ(¸ÞÀϼ¹ö)À» »ç¿ëÇÏ¿© ¿À´Â ¸ÞÀÏÀº
¸ðµÎ 'san2'°¡ ¹Þ°Ô µÇ¾î ¹ö¸°´Ù. ´Ù¸¥ ÀÏ¹Ý À¯Àú±îÁöµµ Æ÷ÇÔÇϱ⠶§¹®¿¡
ÇϳªÇϳª¾¿ ÁöÁ¤ÇØ ÁÖ¾î¾ß ÇÑ´Ù.
µµ¸ÞÀÎ linuxer.com(¸ÞÀϼ¹ö) ¿¡ ´ëÇؼ
webmaster at linuxer.com ftp at linuxer.com stock at linuxer.com À¸·Î ¿À
´Â ¸ÞÀÏÀº ¸ðµÎ com À¯Àú°¡ ¹Þ¾Æ º¼ ¼ö ÀÖ´Ù.
ÀÌ°ÍÀ» ÀÌÇØ ÇÒ ¼ö ÀÖ´Ù¸é ³ª¸ÓÁö linuxer.net °ú sonamu ¸ÞÀϼ¹ö¿¡ ´ëÇØ
¼´Â ½±°Ô ÀÌÇØ Çϸ®¶ó »ý°¢µÈ´Ù.
ÆÄÀÏ ÆíÁýÀÌ ³¡³µÀ¸¸é ´ÙÀ½°ú °°Àº ¸í·ÉÀ» ²À ½ÇÇàÇØ ÁÖ¾î¾ß ÇÑ´Ù.
# makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
ÀÌ·Î½á °¡»ó¸ÞÀϼ¹ö ¼³Á¤ÀÌ ¸ðµÎ ³¡³µ´Ù.
5. °¡»ó FTP¼¹ö (ProFTPd)
°¡»ó FTP´Â FTPµ¥¸ó¸¸ Àß ¼³Ä¡ÇØ ÁÖ¸é Å©°Ô ¹®Á¦°¡ ¾ø´Ù.
¿©±â¿¡¼´Â ProFTPd µ¥¸óÀ» ¼³Ä¡¿Í °¢ µµ¸ÞÀο¡ ´ëÇÑ Anonymous
FTP¸¦ ¼³Á¤ÇØ º¸ÀÚ.
5-1. ProFTPd ¼³Ä¡Çϱâ
CD-ROMÀ̳ª °¢ ¹èÆ÷º»ÀÇ FTP¿¡¼ RPMÀ¸·Î ´Ù¿î·ÎµåÇϵçÁö
http://www.proftpd.org/ ¿¡¼ ¼Ò½º·Î ¹ÞµçÁö °£¿¡ ¿©·¯ºÐÀÇ ÀÚÀ¯ÀÌ´Ù.
ÇÊÀÚ´Â °¡»óFTP¸¦ Å×½ºÆ®ÇÒ Âë¿¡´Â 1.2.0pre6 ÀÇ ¹öÀüÀÇ ¼Ò½º¸¦ ´Ù¿î·Îµå
ÇÏ¿© ¼³Ä¡ÇÏ¿´´Ù.
ftp://linux.sarang.net/ ¿¡ Á¢¼ÓÇϸé RPMÀ¸·Î ´Ù¿î·ÎµåÇÏ¿© ¼³Ä¡ÇÒ ¼ö
ÀÖ´Ù.
¼Ò½º¸¦ ÄÄÆÄÀÏÇÏ¿© ¼³Ä¡ÇÒ °æ¿ì
¼Ò½º¸¦ ÄÄÆÄÀÏÇÒ µð·ºÅ丮´Â /usr/local/src ÀÌ°í ¼³Ä¡ÇÒ µð·ºÅ丮´Â
/usr/local/proftpd ÀÌ´Ù.
# cp proftpd-1.2.0pre6.tar.gz /usr/local/src/
# cd /usr/local/src
# ls
proftpd-1.2.0pre6.tar.gz
# tar zxvf proftpd-1.2.0pre6.tar.gz
# cd proftpd-1.2.0pre6
# ./configure --prefix=/usr/local/proftpd \
--sysconfdir=/etc --localstatedir=/var/run \
--enable-autoshadow --datadir=/home/ftp
# make
# make install
# mkdir /home/ftp
RPMÀ¸·Î ¼³Ä¡ÇÏ´Â °æ¿ì
# rpm -Uvh proftpd-1.2.0pre6-1.i386.rpm
#
¼Ò½º¸¦ ÄÄÆÄÀÏÇÏ¿© ¼³Ä¡ÇϵçÁö RPMÀ¸·Î ¼³Ä¡ÇÏ¿© ¼³Ä¡ÇϵçÁö
/etc/inetd.conf ÆÄÀÏÀ» ´ÙÀ½°ú °°ÀÌ ÁÖ¼®À» Ãß°¡ÇØ ÁÖ¾î¾ß ÇÑ´Ù.
Áï À¥ È£½ºÆà ¼º°Ý¿¡ ¸Â°Ô Proftpd¸¦ standalone À¸·Î µ¥¸óÀ»
°¡µ¿Çϱâ À§ÇؼÀÌ´Ù.
-----------/etc/inetd.conf ---------------------------------
# Áß·«
#ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd -l -a
#ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd
# Áß·«
----------------------------------------------------------
±×¸®°í ½´ÆÛµ¥¸óÀ» Àç°¡µ¿½ÃŲ´Ù.
# /etc/rc.d/init.d/inet restart
5-2. /etc/proftpd.conf
ÀÌÁ¦ ¸¶Áö¸· ´Ü°èÀÎ ProFTPd ¼³Á¤ÆÄÀÏÀ» ÆíÁýÇØ º¸ÀÚ.
---------/etc/proftpd.conf ---------------------------------
ServerName "ProFTPD ALZZA Default Installation"
ServerType standalone # standalone À¸·Î ¼³Á¤
ServerAdmin ftp at linux.ac.kr
# sendmail virtualtable À» º¸¶ó.
DefaultServer on
AuthPAMAuthoritative on
Port 21
MaxInstances 30
User nobody
Group nobody
<Directory /*>
AllowOverwrite on
</Directory>
##Global ¼³Á¤ VirtualHost ±îÁö ¿µÇâÀ» ÁֹǷΠÀÚ¿ø ³¶ºñ°¡ ´úÇÏ´Ù. ##
<Global>
Umask 022 # °¢ VirtualHost ¸¶´Ù µû·Î Á¤ÀÇÇصµµÈ´Ù.
DisplayLogin .welcome.msg
# ¿ø·¡´Â hiddenÆÄÀÏÀÌ ¾Æ´Ñ welcome.msgÀÌ´Ù.
DisplayFirstChdir .message
#User ftp # Global·Î ³ÖÁö ¾ÊÀº°Ô ÁÁ´Ù.
#Group ftp # Global·Î ³ÖÁö ¾ÊÀº°Ô ÁÁ´Ù.
#MaxClients 10 # Global·Î ³ÖÁö ¾Ê´Â´Ù.
#MaxClientsPerHost 1 # Global·Î ³ÖÁö ¾Ê´Â´Ù
UserAlias anonymous ftp
RequireValidShell off
# Anonymous Á¢¼ÓÇã¿ëÀ» À§Çؼ´Â off·Î ²À ¼³Á¤.
ShowSymlinks on
</Global>
########Global end ###################################
<Anonymous ~ftp>
User ftp # ¸ðµç Anonymous ¿¡ ²À ³Ö¾îÁÖ¾î¾ß ÇÑ´Ù.
Group ftp # ¸ðµç Anonymous ¿¡ ²À ³Ö¾îÁÖ¾î¾ß ÇÑ´Ù.
#UserAlias anonymous ftp
# Global·Î ¼³Á¤µÇ¾î ÀÖÀ¸¹Ç·Î ³ÖÀ» ÇÊ¿ä¾ø´Ù.
MaxClients 10 "Á˼ÛÇÕ´Ï´Ù. ÃÖ´ë ÀοøÀº %m¸í ÀÔ´Ï´Ù."
MaxClientsPerHost 1 "È£½ºÆ®´ç 1ȸ¸¸ Á¢¼Ó°¡´ÉÇÕ´Ï´Ù."
<Limit WRITE>
DenyAll
</Limit>
# Àбâ/¾²±â/µð·ºÅ丮¸¸µé±â¸¦ Çã¿ëÇϱâ À§Çؼ´Â ´ÙÀ½ ÁÖ¼®Á¦°Å.
#<Directory incoming>
#<Limit WRITE>
#AllowALL
#</Limit>
#</Directory>
</Anonymous>
###### °¡»ó FTP È£½ºÆ®¼³Á¤ ºÎºÐ ##########################
<VirtualHost ftp.linuxer.com>
ServerName "ftp.linuxer.com"
ServerAdmin ftp at linuxer.com
Umask 002
MaxClients 10 "Á˼ÛÇÕ´Ï´Ù. ÃÖ´ë ÀοøÀº %m¸í ÀÔ´Ï´Ù."
MaxClientsPerHost 1 "È£½ºÆ®´ç 1ȸ¸¸ Á¢¼Ó°¡´ÉÇÕ´Ï´Ù."
<Anonymous /home/com/vir-ftp>
User ftp
Group com # Umask 002 ¿Í °ü·ÃÀÌ ÀÖ´Ù.
<Limit WRITE>
DenyAll
</Limit>
<Directory incoming>
<Limit WRITE>
Order Allow,Deny # ÄÄÆÄ(,)´ÙÀ½¿¡ ÄÀ» ºóÄÀ» ¶çÁö ¾Ê´Â´Ù.
Allow from all
Deny from 192.168.15.,haker.com
# CŬ·¡½º 192.168.15.* ¿Í haker.com Àº ¾²±â¸¦ ±ÝÇÑ´Ù.
</Limit>
</Directory>
### Umask ¿¡ ´ëÇؼ »ý°¢ÇØ º¸ÀÚ ++++++imcoming µð·ºÅ丮#######
# umask ´Â »õ·Î »ý¼ºµÈ µð·ºÅ丮³ª ÆÄÀÏ¿¡ ´ëÇؼ¸¸ Æ۹̼ÇÀ» ±âº»Àû
# À¸·Î Àû¿ë½ÃŲ´Ù.
# Áï Global ¿¡¼ umask 022 ·Î ¼³Á¤µÇ¾î ÀÖÀ¸¹Ç·Î Anonymous °¡
# Á¢¼ÓÇÏ¿© »õ·Î »ý¼º½Ãų ¼ö ÀÖ´Â
# µð·ºÅ丮¿¡ ´ëÇؼ 755ÀÇ Æ۹̼Ç, ±×¸®°í ÆÄÀÏ¿¡ ´ëÇؼ´Â 644ÀÇ ÆÛ¹Ì
# ¼ÇÀ» ÁØ´Ù.
# Àá±ñ µð·ºÅ丮ÀÇ ¼ÒÀ¯ÀÚ¿¡ °üÇؼµµ »ý°¢Çغ¸ÀÚ.
# Anonymous°¡ »õ·Î»ý¼ºµÈ µð·ºÅ丮°¡ 755 À̹ǷΠÀÌ µð·ºÅ丮ÀÇ ¼ÒÀ¯ÀÚ
# ´Â root ³ª ´Ù¸¥ user°¡ ¾Æ´Ï°í "ftp" ¼ÒÀ¯ÀÚ°¡ µÈ´Ù.
# Áï UserAlias Anonymous ftp À̹ǷΠ¸ðµç Anonymous ¿¡ ´ëÇؼ
# ´Ù¸¥ Anonymous°¡ »ý¼º½ÃŲ µð·ºÅ丮³ª ÆÄÀÏÀ» Áö¿ì°Å³ª ¹Ù²Ü ¼ö ÀÖ´Ù.
# ÇÑ°¡Áö ´õ.....Anonymous°¡ ¾Æ´Ñ ÀÏ¹Ý À¯Àú·Î µé¾î¿ÔÀ» °æ¿ì¸¦ »ý°¢Çغ¸ÀÚ.
# imcoming µð·ºÅ丮ÀÇ Æ۹̼ÇÀÌ 777 ·Î µÇ¾î ÀÖ´õ¶óµµ Aonymous °¡ »ý¼º
# µÈ µð·ºÅ丮³ª ÆÄÀÏÀº Áö¿ì°Å³ª ¹Ù²Ü¼ö ¾ø´Ù.(755À̹ǷÎ) ´Ü, incoming µð·º
# Å丮 ÇÏ¿¡¼´Â Æ۹̼ÇÀÌ 777À̹ǷΠ»ý¼ºÇÒ ¼ö ÀÖ´Ù.
# ftp.linuxer.com ¿¡ ´ëÇؼ °ü¸®ÀÚ´Â "com" À¯ÀúÀÌ´Ù. °ü¸®ÀÚ°¡ Anonymous
# °¡ »ý¼ºÇÑ µð·ºÅ丮³ª ÆÄÀÏÀ» Áö¿ï ¼ö ¾ø´Ù¸é °ü¸®ÀÚ ¶ó°í ÇÒ ¼ö Àְڴ°¡?
# ¿©±â¿¡ ±× ÇعýÀÌ ¹Ù·Î Umask °ú À¥È£½ºÆà °ü¸®ÀÚÀÇ ´É·Â¿¡ ´Þ·ÁÀÖ´Ù.
# /home/com/vir-ftp ÀÇ ¼ÒÀ¯ÀÚ´Â ftp°¡ ¾Æ´Ñ "com" ÀÇ ¼ÒÀ¯ÀÚ·Î ÇؾßÇÏ°í,
# incoming ÇÏÀ§ µð·ºÅ丮 ¿¡ ´ëÇؼ Unamsk 070 À̳ª 020 À¸·Î ¼³Á¤Çϸé
# Æ۹̼ÇÀº 707 À̳ª 757 ÀÌ µÈ´Ù.
# Áï ¼ÒÀ¯ÀÚ°¡ ´©°¡µÇ´øÁö °£¿¡ Others°¡ Áö¿ì°Å³ª »ý¼ºÇÒ ¼ö ÀÖ´Â °ÍÀÌ´Ù.
# ÀÏ¹Ý À¯Àú·Î µé¾î¿ÔÀ» °æ¿ì¿¡ ÇØ´çÇÑ °ÍÀÌ´Ù.
# ÀÌ·± ¹æ¹ýÀÌ ½È´Ù¸é Anonymous Group Á¤µµ¸¦ VirtualHost °ü¸®ÀÚÀÎ
# "com" À¸·Î ´ëüÇصµ µÈ´Ù.
# ±×¸®°í Umask 002 ·Î ¼³Á¤Çϸé 775ÀÇ Æ۹̼ÇÀ» »ý¼ºµÇ¾î "com"À¯Àú°¡
# °ü¸®ÇÒ ¼ö ÀÖ´Ù..À̶§´Â com ±×·ì¿¡ "com"À¯Àú°¡ Æ÷ÇԵǾî ÀÖ¾î°Å³ª
# ´Üµ¶À¸·Î "com" À¯Àú¸¸ Æ÷ÇÔÇØ¾ß ÇÑ´Ù.
# ÀÌÀ¯´Â "com" ±×·ì¿¡ Æ÷ÇÔµÈ ´Ù¸¥ À¯Àú°¡ ÇÇÇظ¦ ÁÙ ¼ö Àֱ⠶§¹®ÀÌ´Ù.
# ¶Ç´Â User ¿Í Group ¿¡ Àû¾îµµ °ü¸®ÀÚ°¡ Æ÷ÇԵǾî ÀÖ¾î¾ß ÇÑ´Ù.
# ¿Ö³ÄÇϸé "com" À¯Àú´Â °í°´ÀÌ°í "root" ±ÇÇÑÀ» ȹµæÇÒ ¼ö ¾ø±â ¶§¹®ÀÌ´Ù.
# ¹æ¹ýÀº ¿©·¯°¡ÁöÀÌ´Ù.
# ÀÌó·³ Anonymous °¡ FTPŬ¶óÀ̾ðÆ®·Î Á¢¼ÓÇÏ¿© µð·ºÅ丮¸¦ »ý¼º
# ÇÏ°í Áö¿ï¼ö ÀÖ°Ô Çϱâ À§Çؼ´Â ¼ÒÀ¯ÀÚ¿Í ÆÛ¹Ì¼Ç - incoming µð·ºÅ丮
# ¿¡ ´ëÇÑ Á¢±Ù Á¤Ã¥ - ±×¸®°í Umask ÀÇ ¼ø¼·Î °ü¸®ÇؾßÇÑ´Ù.
# ¿¹¸¦ µé¾î ¾Æ¹«¸® Umask 000 À¸·Î ¼³Á¤Çß´õ¶óµµ imcoming µð·ºÅ丮¿¡
# ´ëÇÑ ¾²±â ±ÇÇÑÀÌ ¾ø´Ù¸é Anonymous ´Â ¾µ ¼ö ¾ø´Ù´Â °ÍÀÌ´Ù.....
# Á»´õ ¸¹Àº Á¤º¸¸¦ ¿øÇÑ´Ù¸é ProFTPD Reference.html À» Àо¶ó.
</Anonymous>
</VirtualHost>
###### VirtualHost <ftp.linuxer.net>ÀÇ Á¤ÀÇ ###################
<VirtualHost ftp.linuxer.net>
ServerName "ftp.linuxer.net"
ServerAdmin ftp at linuxer.net
#Umask 002
# ÁÖ¼®À¸·Î 󸮵Ǿî Àֱ⠶§¹®¿¡ Global ¿¡¼ ¼³Á¤ÇÑ 022À» µû¸¥´Ù.
MaxClients 10 "Á˼ÛÇÕ´Ï´Ù. ÃÖ´ë ÀοøÀº %m¸í ÀÔ´Ï´Ù."
MaxClientsPerHost 1 "È£½ºÆ®´ç 1ȸ¸¸ Á¢¼Ó°¡´ÉÇÕ´Ï´Ù."
<Anonymous /home/net/vir-ftp>
User ftp
Group ftp
# ftp.linuxe.com ó·³ incoming µð·ºÅ丮°¡ Á¤ÀǵǾî ÀÖÁö ¾Ê±â
# ¶§¹®¿¡Anonymous´Â µð·ºÅ丮¸¦ »ý¼ºÇÒ ¼ö ¾ø°í µû·Î ÁöÁ¤ÇÒ ÇÊ¿äµµ
# ¾ø´Ù.
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
</VirtualHost>
-------------end
-------------------------------------------
¼³Á¤ÆÄÀÏ ÆíÁýÀÌ ¸ðµÎ ³¡³µÀ¸¸é Anonymous°¡ Á¢±ÙÇÒ ¼ö ÀÖ´Â µð·ºÅ丮¸¦
¸¸µé¾îÁÖÀÚ.
# su com
$ mkdir ~com/vir-ftp
$ mkdir ~com/vir-ftp/pub incoming
$ chmod 705 ~com/vir-ftp/pub
$ chmod 707 ~com/vir-ftp/incoming
$
$ su net
Password : ******
$ mkdir ~com/vir-ftp
$ mkdir ~com/vir-ftp/pub
$ chmod 705 ~com/vir-ftp/pub
$
FTPµ¥¸óÀ» Àç °¡µ¿ÇÑ´Ù.
# /etc/rc.d/init.d/proftpd restart
ÀÌÁ¦ Anonymous °¡ Á¢¼ÓÇÒ¶§ º¸¿©ÁÖ´Â .welcome.msg ÆÄÀϵµ ¸¸µé¾î
ÁÖÀÚ. vir-ftp ¹Ø¿¡ ÀÌ ÆÄÀÏÀÌ Á¸ÀçÇÏ¸é µÈ´Ù.
----------~HOME/vir-ftp/.welcome.msg ----------------------
ȯ¿µÇÕ´Ï´Ù......
ProFTPd Alzza Linux 6.0 2.2.12(¾ÈÁ¤)
ftp://%L/
o ³²Àº ¿ë·® : %F KB
o Çö »ç¿ëÀÚ ¼ö : %N/%M (ÇϳªÀÇ È£½ºÆ®´ç 1¸í±îÁö Á¢¼ÓÇã°¡ÇÕ´Ï´Ù)
o %RÀÇ %u(%U)´ÔÀÌ Á¢¼ÓÇÑ
o Çö ½Ã°¢Àº %T³â ÀÔ´Ï´Ù.
Admin-mailto:%E
-----------end
--------------------------------------------
À§ÀÇ °á°ú´Â
-----------------------------------------------------------
ȯ¿µÇÕ´Ï´Ù......
ProFTPd Alzza Linux 6.0 2.2.12(¾ÈÁ¤)
ftp://ftp.linux.ac.kr/
o ³²Àº ¿ë·® : 302868 KB
o Çö »ç¿ëÀÚ ¼ö : 2/10 (È£½ºÆ®´ç 1ȸ Á¢¼Ó¸¸ Çã°¡ÇÕ´Ï´Ù)
o 192.168.12.5ÀÇ UNKNOWN(anonymous)´ÔÀÌ Á¢¼ÓÇÑ
o Çö ½Ã°¢Àº Tue Sep 14 22:05:36 1999³â ÀÔ´Ï´Ù.
Admin-mailto:ftp at linux.ac.kr
-----------------------------------------------------------
ÀÌ·Î½á °¡»ó FTP ¼³Á¤µµ ¸ðµÎ ³¡³µ´Ù.
6. ¸¶Ä¡¸ç
ÈÞ~~~ ±ÛÀ» ¾´´Ù´Â°ÍÀÌ ÀÌ·¸°Ô ÈûµéÁÙÀº ¸ð¶ú´Ù..
4Àϵ¿¾ÈÀÇ Å×½ºÆ® ¹× ¹®¼ÀÛ¼ºÀ» ³¡³»°í ÀÖ´Â ÁßÀÔ´Ï´Ù.
¾î¶»°Ô ÇÏ´Ùº¸´Ï ½Ã½ºÅÛÀ» ÀÛ»ì(?)³»´Â °æ¿ì°¡ ÀÖ¾î ´Ù½Ã ¼³Ä¡ÇÏ¿© Å×½º
Æ®ÇÏ´Â ½Ç¼öµµ ÀÖ¾ú´Ù.
¹°·Ð ÇÊÀÚ´Â Æò»ó½Ã¿¡ Backup ¿¡ ¸¹Àº ½Ã°£À» ÅõÀÚÇϹǷΠ´Ù½Ã¼³Ä¡ÇÏ¿©
º¹±¸Çϴµ¥¿¡´Â ¸¹Àº ½Ã°£À» ¿äÇÏÁö ¾Ê¾Ò´Ù.
ÀÌ ±ÛÀ» ¾²°Ú´Ù°í ¸¾ ¸ÔÀºÁö °ÅÀÇ ÇÑ´Þ¸¸¿¡ ¹®¼¸¦ ¿Ï·áÇÏ¿´´Ù. ±×µ¿¾È
°³ÀÎÀûÀÎ »çÁ¤µîÀ¸·Î Â÷ÀÏÇÇÀÏ ¹Ì·ç´Ù º¸´Ï ÀÌ·¸°Ô µÇ¾ú´Ù.
ÀÌ»óÀÇ ³»¿ë¿¡¼ Áú¹®À̳ª Àǹ®³ª´Â Á¡ ¶Ç´Â º¸°À̳ª À߸øµÈ Á¡ÀÌ ÀÖÀ¸¸é
http://linuxer.suwon.ac.kr/cgi-bin/CrazyWWWBoard.cgi?db=qna
ÀÇ Áú¹®°ú ´äº¯ÀÇ °Ô½ÃÆÇÀ» ÀÌ¿ëÇØ ÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù.
³¡±îÁö Àоî Áּż °¨»çÇÕ´Ï´Ù.
1999³â 9¿ù 16ÀÏ "µµ½Ã Ãø·®½ÇÇè½Ç" ¿¡¼ ¹é¼ö"»êÀÌ" ¾¸..........
|
|
Page Loading [ 0.06 Sec ]
SQL Time [ 0 Sec ]
|
|
|