How to Allow FTP Users to Access to Out of Home Directory (chroot) Files and Folders ¾×¼¼½º ¹æ¹ý¿¡ ¾øÀ½ Ȩ µð·ºÅ丮 (chroot·Î) ÆÄÀÏ ¹× Æú´õÀÇ FTP »ç¿ëÀÚ¸¦ Çã¿ëÇϵµ·Ï
FTP server service on a host that comes with advanced web hosting package such as VPS (Virtual Private Server), VDS (Virtual Dedicated Server), hybrid server, or dedicated server, regardless of whether it¡¯s powered by proftpd, vsftpd, or pure-ftpd, etc., usually been set up and configured by default to restrict and jail the FTP users to have only limited access to files and folders located within their own home directory. °í±Þ À¥ VPS (°¡»ó »ç¼³ ¼¹ö), VDS (°¡»ó Àü¿ë ¼¹ö), ÇÏÀ̺긮µå ¼¹ö ¶Ç´Â Àü¿ë ¼¹ö È£½ºÆÃ ÆÐŰÁö¿Í ÇÔ²² Á¦°ø°ú °°Àº È£½ºÆ®¿¡ FTP ¼¹ö ¼ºñ½º¿¡ ÀÇÇØ Á¦°ø ¿©ºÎ¿¡ °ü°è¾øÀÌ ±×°ÍÀÇ, vsftpd, proftpd ¶Ç´Â ¼ø¼ö - ftpd, µî, ÀϹÝÀûÀ¸·Î ¼³Á¤ ¹× ±âº» ÀÇÇØ Á¦ÇѰú °¨¿Á¿¡ FTP »ç¿ëÀÚ ±¸¼º ÆÄÀÏ ¹× Æú´õ Ȩ µð·ºÅ丮 ³»¿¡ À§Ä¡ÇÑ Àڽſ¡°Ô¸¸ Á¦ÇÑÀûÀ¸·Î Á¢±ÙÇØ¾ßÇÕ´Ï´Ù. The restriction is set by chroot directive where FTP users are locked within chrooted folder, normally their home folder. Á¦ÇÑ chroot·Î Áö½Ã¹®À» ¾îµð¿¡ FTP »ç¿ëÀÚ chrooted Æú´õ ³»¿¡ °¤ÇôÀÖ´Ù, ÀϹÝÀûÀ¸·Î ÀÚ½ÅÀÇ È¨ Æú´õ·Î ¼³Á¤µË´Ï´Ù.
If FTP users need to access or change to another folders out of chrooted home directory, they have to be allowed to access other directories and files by disabling chroot control. ¸¸¾à¿¡ ¾×¼¼½ºÇϰųª chrooted FTP »ç¿ëÀÚ È¨ µð·ºÅ丮 ¹ÛÀÇ ´Ù¸¥ Æú´õ·Î º¯°æÇÒ Çʿ䰡, ±×µé chroot·Î ÄÁÆ®·ÑÀ» ÇØÁ¦ÇÏ¿© ´Ù¸¥ µð·ºÅ丮¿Í ÆÄÀÏ¿¡ ¾×¼¼½ºÇÒ ¼ö ÀÖ¾î¾ßÇÕ´Ï´Ù. Disable chroot will allow FTP users to break out the chroot to go to directory in different location. ÇØÁ¦ chroot·Î FTP »ç¿ëÀÚ µð·ºÅ丮¸¦ ´Ù¸¥ À§Ä¡¿¡ °¥ ¼ö ÀÖµµ·ÏÇϱâ À§ÇØ chroot·Î ³ª°¡±â¸¸ÇϸéµÈ´Ù.
To disable chroot cage for FTP users in their home directories, locate the chroot configuration in FTP server configuration file and set the value to ¡°NO¡±. FTP ¼¹ö ±¸¼º¿¡¼ ÀÚ½ÅÀÇ È¨ µð·ºÅ丮¿¡ÀÖ´Â ÆÄÀÏÀ» ã½À´Ï´Ù chroot·Î ±¸¼º FTP »ç¿ëÀÚ¿¡ ´ëÇÑ chroot·Î »õÀåÀ» ÇØÁ¦ÇÏ·Á¸é ±×¸®°í NO "°ªÀ» ¼³Á¤". Some directive name and configuration file name with its location for common FTP server software is listed below. ÀÏ¹Ý FTP ¼¹ö ¼ÒÇÁÆ®¿þ¾î¸¦À§ÇÑ ÀÚ»çÀÇ À§Ä¡¿Í ¾î¶² Áö½Ã¾î À̸§°ú ±¸¼º ÆÄÀÏ À̸§À» ¾Æ·¡¿¡ ³ª¿µÇ¾îÀÖ½À´Ï´Ù.
Pure-FTPd : /etc/pure-ftpd.conf ¼ø¼ö - FTPd °è¿ : / etc / ¼ø¼ö - ftpd.conf
ChrootEveryone=NO ChrootEveryone = NO¸¦
ProFTPd : /etc/proftpd.conf proftpd °è¿ : / etc / proftpd.conf
DefaultRoot ~ (delete this line) DefaultRoot ~ ()ÀÌ ÁÙÀ» »èÁ¦
VSFTPd : /etc/vsftpd.conf VSFTPd °è¿ : / etc / vsftpd.conf
chroot_local_user=NO chroot_local_user = NO¸¦
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. Áß¿ä :ÀÌ ±â°è´Â "º¸Áõµµ¾øÀÌÀÖ´Â ±×´ë·Î"Á¦°øµË´Ï´Ù ÆäÀÌÁö¸¦ ¹ø¿ªÇß´Ù. Machine translation may be difficult to understand. ±â°è ¹ø¿ªÀ» ÀÌÇØÇϱ⠾î·Á¿ï ¼öÀÖ½À´Ï´Ù. Please refer to À» ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù original English article ¿ø·¡ ¿µ¾î ¹®¼ whenever possible. ¾ðÁ¦µç °¡´ÉÇÕ´Ï´Ù.
Share and contribute or get technical support and help at °øÀ¯¿Í ±â¿©Çϰųª ±â¼ú Áö¿ø°ú¿¡ µµ¿òÀÌ My Digital Life Forums ³» µðÁöÅÐ »ýȰ Æ÷·³ . ÇÕ´Ï´Ù.
Related Articles °ü·Ã ±â»ç
- Add Take Ownership Option To Files and Folders Context Menu in Vista ÆÄÀÏ ¹× Æú´õ¸¦ ÄÁÅØ½ºÆ® ¸Þ´º¸¦ ºñ½ºÅ¸¿¡¼ ÀÌÀû ¿É¼ÇÀ» Ãß°¡ÇÒ
- Download RED (Remove Empty Directories) for Windows PC À©µµ¿ì PC¿¡ ´ëÇÑ ´Ù¿î·Îµå »¡°£»ö (ºó µð·ºÅ丮¸¦ Á¦°Å)
- How to Change Windows Explorer Default Folder Windows Ž»ö±âÀÇ ±âº» Æú´õ¸¦ º¯°æÇÏ´Â ¹æ¹ý
- Vista IE7 Cache & Cookies Folder, Temp Directory and History Location ºñ½ºÅ¸´Â IE7ÀÇ Ä³½Ã & Cookies Æú´õ, Temp µð·ºÅ͸®¿Í ¿ª»ç À§Ä¡
- Easier Way to Take Ownership and Grant Access Files or Directories in Vista ½¬¿î ¹æ¹ýÀÌ ºñ½ºÅ¸¿¡¼ ÆÄÀÏ ¶Ç´Â µð·ºÅ͸®¸¦ ¹Þ¾Æ ¼ÒÀ¯±Ç ¹× ¾×¼¼½º ±ÇÇÑ ºÎ¿©¸¦
- Show,List Out and Identify All Shared Files and Folders in Windows Vista ¼î, ¹Û ¸ñ·Ï ¹× Windows Vista¿¡¼ ¸ðµç °øÀ¯ ÆÄÀÏ ¹× Æú´õ¸¦ ½Äº°
- Unable to Delete Photo Folders »çÁø Æú´õ¸¦ »èÁ¦ÇÒ ¼ö¾ø½À´Ï´Ù
- Exclude Files from Shadow Copies (Previous Versions and System Restore) Á¦¿ÜÇÒ ÆÄÀÏÀÇ ¼¨µµ º¹»çº» (ÀÌÀü ¹öÀü°ú ½Ã½ºÅÛ º¹¿ø)
- Easy Solution to Unable to Find Downloaded or Created Compatibility Files in Windows Vista ½¬¿î ÇØ°áÃ¥À» ãÀ» ¼ö¾ø´Â °æ¿ì ¶Ç´Â Windows Vista¿¡¼ ´Ù¿î·ÎµåÇÑ ÆÄÀÏÀ» ¸¸µé¾î ȣȯ¼º
- PHP Scripts open_basedir Restriction in Effect Error PHP ½ºÅ©¸³Æ®ÀÇ open_basedir Á¦ÇÑÀÌ Àû¿ë ¿À·ù

































January 20th, 2008 00:42 1 ¿ù 20 ÀÏ 2008 0½Ã 42ºÐ
You know that you can, mount –bind a directory so users are chroot for security but still allow them to access some more directorys outside their chroot. ´ç½ÅÀ» ±×·¸°Ô žÀçÇÒ ¼ö - ¹ÙÀεù µð·ºÅ丮 ±×·¡¼ »ç¿ëÀÚ°¡ º¸¾È¿¡ ´ëÇÑ chroot·ÎÇϰí ÀÖÁö¸¸ ¿©ÀüÈ÷ ±×µé chroot ¹Ù±ù directorys¿¡ ¾×¼¼½ºÇÒ ¼ö ÀÖµµ·Ï Á» ´õ ¾Ë¾Æ.
Heres the link to it. Heres ±×°ÍÀ» À§ÇØ ¸µÅ©¸¦ Ŭ¸¯ÇϽʽÿÀ.
January 20th, 2008 00:43 1 ¿ù 20 ÀÏ 2008 0½Ã 43ºÐ
http://www.vinno.net/linux/server/chroot-mount-trick
Ops didnt work. ±×¶§ º»ºÎ. Here it is again: ¿©±â ¶ÇÀÖ´Ù : http://www.vinno.net/linux/server/chroot-mount-trick
April 7th, 2008 18:37 2008³â 4¿ù 7ÀÏ 18:37
Hi i tried that chroot_local_user=NO ¾È³çÇϼ¼¿ä Àú´Â = NO¸¦ ±× ³ë·Â chroot_local_user
im using vsftpd on ubuntu 7.10 desktop. ¿ìºÐÅõ 7.10 ÀνºÅÏÆ® ¸Þ½ÅÀú¸¦ »ç¿ëÇÏ¿© ¹ÙÅÁ ȸ鿡 vsftpd. I changed the conf file like before then restarted the server and from another desktop logged in as a localuser. ´ÙÀ½ ¼¹ö¸¦ ´Ù½Ã ½ÃÀÛÇϱâ Àü¿¡ ´Ù¸¥ ¹ÙÅÁ ȸ鿡¼Ã³·³ confÀÇ ÆÄÀÏÀÌ º¯°æ¿¡ ·Î±×¿Â localuser. when i typed ls -l it still only shows that users home directory..Please help im so new to linux ¾ÆÁ÷ ¶§ ÀÔ·ÂÇÑ »ç¿ëÀÚ¸¸À» º¸¿©ÁÖ´Â °Ç°¡¿ä - ³ Á¤¸» »õ·Î¿î ¸®´ª½º ¸Þ½ÅÀú Ȩ µð·ºÅ丮 ... Á¦¹ß µµ¿Í