B / Y / U / S
HOME À¥ È£½ºÆà µµ¸ÞÀÎ ¸Å´º¾ó °í°´Áö¿ø ¼³Á¤Á¤º¸ °èÁ¤½Åû 2024-12-27 Friday 
À¥ È£½ºÆÃ
# °øÁö »çÇ×
# ÀÚÁÖ ¹¯´Â Áú¹®
# Áú¹®°ú ´äº¯
# °¡ÀÔ ¹®ÀÇ
Ä¿¹Â´ÏƼ
# ÀÚÀ¯°Ô½ÃÆÇ
# ¸®´ª½ºÆÁ
# ¾ÆÀÌÅ¥ Å×½ºÆ®
# ³»È¨ ¼Ò°³
# °Ö·¯¸®
# ÀÚ·á½Ç

  ¸®´ª½ºÆÁ  Go Unix Power Tools Online Book Go Bash Guide
Read No. 47 article 2001-10-18 23:56:05
NickName   Ç®ºñ´©
Subject   Æ¯Á¤µð·ºÅ丮 binding (ftp)
±Û¾´ÀÌ : EcusE (2001³â 10¿ù 12ÀÏ ¿ÀÀü 12:47) ÀÐÀº¼ö: 415 


ftp¸¦ ¿î¿µÇÏ°í ÀÖ°í chroot*¸¦ Àû¿ë´Âµ¥ ƯÁ¤ µð·ºÅ丮¸¦ chrootµÈ 
µð·ºÅ丮 ¾È¿¡ ³Ö¾î¾ß ÇÒ¶§ ±âÁ¸ÆÄƼ¼ÇÀ̳ª ¸µÅ©¸¦ °Çµå¸®Áö ¾Ê°í 
bindingÇÒ¼öÀÖ½À´Ï´Ù. 
¾Æ·¡´Â ±¸¼ºµµ(?)ÀÔ´Ï´Ù. 

±âÁ¸¼³Á¤ ftp user's root(chroot) ftpÁ¢¼Ó½Ã /home/ftp/pubÀÌ /°¡ µÇÁÒ. 
/home/ftp/pub 
/var/backupµð·ºÅ丮¸¦ ftp user¿¡°Ô °ø°³ÇÏ°í ½ÍÀ»¶§ 

ÀÌ»óÅ¿¡¼± Ÿ ÆÄƼ¼ÇÀ» pub¾Æ·¡¿¡ ¸µÅ©¸¦ Çصµ chroot¸¦ ¹þ¾î³¯¼ö°¡ 
¾ø±â¶§¹®¿¡ ¼Ò¿ëÀÌ ¾ø½À´Ï´Ù. 

mount --bind /var/backup /home/ftp/pub/backup À̸í·ÉÀ¸·Î backup 
µð·ºÅ丮¸¦ chroot µÇ¾îÁø ftpÀ¯ÀúÀÇ È¨µð·ºÅ丮¿¡ ¸¶¿îÆ®¸¦ ÇÒ¼öÀÖ½À´Ï´Ù. 
¸¶¿îÆ®½Ã unrecognized option '--bind' ¸Þ¼¼Áö°¡ ³ª¿Â´Ù¸é 
mount¸¦ ¾÷±×·¹À̵带 ÇϽðųª »õÄ¿³ÎÀ» ¹Þ¾Æ¼­ ¼³Ä¡Çغ¸¼¼¿ä. 

chroot* : ftp¼­¹öµî¿¡¼­ ƯÁ¤À¯ÀúÀÇ /µð·ºÅ丮¸¦ ƯÁ¤ µð·ºÅ丮·Î Á¦ÇÑ 
»óÀ§µð·ºÅ丮³ª ½Ã½ºÅÛ /µð·ºÅ丮·Î Á¢±ÙÇÒ¼ö¾øÀ½.
Regist Addr [ 192.168.0.2 ] ¸ñ·Ïº¸±â À­±Û ¾Æ·§±Û
Á¤±ÔÇ¥Çö½Ä [ »ó¼¼ °Ë»ö ]
Page Loading [ 0.02 Sec ] SQL Time [ 0 Sec ]

Copyleft 1999-2024 by JSBoard Open Project
Theme Designed by IDOO And follow GPL2

°³ÀÎÁ¤º¸ Ãë±Þ¹æħ ÀÌ¿ë ¾à°ü »çÀÌÆ® ¸Ê ¾îµå¹Î °ü¸®