Linuxϵͳѧϰ Ê®Áù¡¢VSFTP·þÎñ¡ª±¾µØÓû§·ÃÎÊ¡ª¡
2019-11-28 07:50:47À´Ô´£º²©¿ÍÔ° ÔĶÁ ()
ȱµã£¬ftpÃÜÂëÊǺÍϵͳÃÜÂëÊÇÒ»Öµģ¬²¢²»°²È«
ÏÈÉèÖÃÁ½¸ö²âÊÔÓû§
test1 123123
test2 123123
»ù±¾Óû§»ù´¡ÅäÖÃ
1¡¢±¾µØÓû§»ù±¾ÅäÖÃ
local_enable-YES #ÔÊÐí±¾µØÓû§µÇ¼
write_enable=YES #ÔÊÐí±¾µØÓû§ÉÏ´«
local_umask=022 #±¾µØÓû§ÉÏ´«umaskÖµ
¹Ø±Õ·À»ðǽ£¬¹Ø±ÕSELinux£¬Ö±½ÓÐÞ¸ÄÅäÖÃÎļþ
ÖØÆôϵͳ£¬ÖØÆôvsftp·þÎñ
ÔÚtest1µÄ¼ÒĿ¼Ï´´½¨Ò»¸öĿ¼
µÇ½µÄĬÈÏλÖÃ
ÉÏ´«£º
´Ó±¾µØµÄEÅÌÉÏ´«Ò»¸öÎı¾Îļþ
¿ÉÒÔ¿´µ½ÔÚ/home/test1/Ŀ¼Ï¾ÍÓÐÁË1.txtÎļþ
ÏÂÔØ£º
local_root=/var/ftp #ÉèÖñ¾µØÓû§µÄftp¸ùĿ¼£¨×¢ÒâĿ¼ȨÏÞ£»²»ÄÜÕë¶Ô²»Í¬Óû§£¬ÊǶÔËùÓеǽÕ߶¼ÉúЧµÄ£©
local_max_rate=0 #ÏÞÖÆ×î´ó´«ÊäËÙÂÊ£¨×Ö½Ú/Ã룩
ÐèÒª×ÔÐÐÌí¼Ó
´´½¨Ä¿Â¼£¬ÖØÆôftp·þÎñ£¨Ö»ÒªÐÞ¸ÄÁËÅäÖÃÎļþ£©
¿Í»§¶ËÍ˳öÖØеǼ
µ«ÊÇÓÃtest2Á¬½ÓʱҲÊÇÔÚÏàͬµÄ·¾¶ÏÂÁË£¨ÔÚºóÃæµÄÐéÄâÓû§·ÃÎÊÖлáÓнâ¾ö£©
´ËʱÈç¹ûÉÏ´«ÎļþµÄ»°»á³öÏÖÒÔÏÂÎÊÌâ
´ËʱÔÚÅäÖÃÎļþÖÐÊÇÔÊÐíд²Ù×÷µÄ£¬µ«ÊDz¢²»ÄÜÉÏ´«£¬ÕâÊÇÒòΪtest1_rootĿ¼test1Óû§Ã»ÓÐȨÏÞ£¬Ö»ÓÐrootȨÏÞ£¨ËùÓÐÕßÊÇroot£¬ËùÓÐ×éÒ²ÊÇroot£©
½â¾ö·½·¨£º
´´½¨Ò»¸öÓû§×飬½«test1ºÍtest2Ìí¼Óµ½¸Ã×éÄÚ
È»ºóÐ޸ĸÃĿ¼µÄËùÊô×éºÍȨÏÞ
ÖØÐÂÉÏ´«£º
´Ëʱ¾Í¿ÉÒÔÀ²
ÕâÖÖÆäʵ´æÔÚÒ»¸öºÜ´óµÄȱÏÝ£¬¿ÉÒÔÍùÉϼ¶Ä¿Â¼·£¬ÓоÍÊÇ˵£¬ÎÒ¿ÉÒÔ·ÃÎÊÕû¸öϵͳµÄËùÓÐÎļþ£¬ËäÈ»ÓÐЩµØ·½²»ÄÜÉÏ´«£¬µ«ÊÇÎÒ¶¼¿ÉÒÔÏÂÔØ£¬´Ëʱ¾Í¿ÉÒÔÏÂÔسöÓû§ÃÜÂëÎļþ£¬ºÜ²»°²È«
´Ëʱ¾ÍÒª½øÐÐÉèÖÃÏÞÖÆÓû§Ö»ÄÜÔÚÌض¨Ä¿Â¼Ï²Ù×÷
°ÑÓû§ÏÞÖÆÔÚ¼ÒĿ¼Ï£º
chroot_local_user=YES #¿ªÆôÓû§Ä¿Â¼ÏÞÖÆ£¨Èç¹ûÖ»¿ªÆô´ËÐУ¬°ÑËùÓÐÓû§¶¼ÏÞÖÆÔÚÓû§Ö÷Ŀ¼ÖУ©
ÖØÆô·þÎñ
ÖØеǼºó£¬»áÏÔʾֱ½ÓÔÚ¸ùĿ¼ÏÂ
µ«ÊÇlsºó£¬¿´µ½µÄÊÇ1.txtÒ²¾ÍÊÇ/tmp/test1_root/Ŀ¼ÏµÄÄÚÈÝ£¬Ò²¾ÍÊÇ˵ftp½«/tmp/test1_root/Ŀ¼¾Íµ±×öÊǸùĿ¼
¿ªÆôÒÔÏÂÈýÏ¾Í¿ÉÒÔ½«²»Í¬µÄÓû§×ö²»Í¬µÄÏÞÖÆÁË
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list #дÈë/etc/vsftpd/chroot_listÎļþÖеÄÓû§¿ÉÒÔ·ÃÎÊÈκÎĿ¼£¬ÆäËûÓû§ÏÞÖÆÔÚÄÄÓû§Ö÷Ŀ¼
Îļþchroot_listĬÈÏÊDz»´æÔÚµÄÐèÒªÊÖ¹¤Ìí¼Ó£¬È»ºóÖ±½Ó½«Óû§Ãûд½øÈ¥¾ÍºÃÁË
ÖØÆô
ÎÒ½«Óû§test2дÈë¸ÃÎļþ
´Ëʱtest1¾ÍÖ»ÄÜ·ÃÎÊ/tmp/test1_root/¶øtest2Óû§¾Í¿ÉÒÔ·ÃÎÊËùÓÐÎļþ
ÔÎÄÁ´½Ó:https://www.cnblogs.com/Yuuki-/p/11950183.html
ÈçÓÐÒÉÎÊÇëÓëÔ×÷ÕßÁªÏµ
±êÇ©£º
°æȨÉêÃ÷£º±¾Õ¾ÎÄÕ²¿·Ö×ÔÍøÂ磬ÈçÓÐÇÖȨ£¬ÇëÁªÏµ£ºwest999com@outlook.com
Ìرð×¢Ò⣺±¾Õ¾ËùÓÐתÔØÎÄÕÂÑÔÂÛ²»´ú±í±¾Õ¾¹Ûµã£¬±¾Õ¾ËùÌṩµÄÉãÓ°ÕÕƬ£¬²å»£¬Éè¼Æ×÷Æ·£¬ÈçÐèʹÓã¬ÇëÓëÔ×÷ÕßÁªÏµ£¬°æȨ¹éÔ×÷ÕßËùÓÐ
- LinuxϵͳÈçºÎÉèÖÿª»ú×Ô¶¯ÔËÐнű¾£¿ 2020-06-11
- LinuxÖ¸ÁîºÍshell½Å±¾ 2020-06-11
- ÊʺϿª·¢ÕßµÄ×î¼ÑLinux·¢Ðаæ 2020-06-11
- RAID 1 Èí¼þʵÏÖ£¨Linux ϵͳ£© 2020-06-10
- KubernetesѧϰÓëÓ¦Óã¨01£©¡ª¡ªÊ²Ã´ÊÇKubernetes 2020-06-09
IDC×ÊѶ£º Ö÷»ú×ÊѶ ×¢²á×ÊѶ ÍйÜ×ÊѶ vps×ÊѶ ÍøÕ¾½¨Éè
ÍøÕ¾ÔËÓª£º ½¨Õ¾¾Ñé ²ß»®Ó¯Àû ËÑË÷ÓÅ»¯ ÍøÕ¾Íƹã Ãâ·Ñ×ÊÔ´
ÍøÕ¾ÁªÃË£º ÁªÃËÐÂÎÅ ÁªÃ˽éÉÜ ÁªÃ˵ãÆÀ Íø׬¼¼ÇÉ
ÐÐÒµ×ÊѶ£º ËÑË÷ÒýÇæ ÍøÂçÓÎÏ· µç×ÓÉÌÎñ ¹ã¸æ´«Ã½
ÍøÂç±à³Ì£º Asp.Net±à³Ì Asp±à³Ì Php±à³Ì Xml±à³Ì Access Mssql Mysql ÆäËü
·þÎñÆ÷¼¼Êõ£º Web·þÎñÆ÷ Ftp·þÎñÆ÷ Mail·þÎñÆ÷ Dns·þÎñÆ÷ °²È«·À»¤
Èí¼þ¼¼ÇÉ£º ÆäËüÈí¼þ Word Excel Powerpoint Ghost Vista QQ¿Õ¼ä QQ FlashGet ѸÀ×
ÍøÒ³ÖÆ×÷£º FrontPages Dreamweaver Javascript css photoshop fireworks Flash
³ÌÐòÉè¼Æ£º Java¼¼Êõ C/C++ VB delphi
- Photoshop»æÖÆÁ¢Ìå·ç¸ñµÄ΢Ц±íÇé
- PSÎÄ×ÖÌØЧ½Ì³Ì£ºÖÆ×÷¹«Â·ÉϸöÐÔµÄÍ¿Ñ»
- PhotoshopÉè¼Æ¾í±ßЧ¹ûµÄ±äÐνð¸ÕµçÓ°
- PSÉ«²ÊÐÞ¸´½Ì³Ì£ºÀûÓÃÉ«½×¹¤¾ß¿ìËÙ¸øºì
- PS°ë͸Ã÷ÎïÌå¿Ùͼ£ºÀûÓÃͨµÀÑ¡Çø¹¤¾ß¿Ù
- PSº£±¨Éè¼Æ¼¼Çɽ̳̣ºÑ§Ï°ÖÆ×÷¸öÐԵč
- PSͼƬÌØЧÖÆ×÷½Ì³Ì£ºÑ§Ï°¸øÌúËþͼƬÖÆ
- ѧϰÓÃphotoshop°Ñ»ë×ǵĺ£Ë®ÕÕƬºóÆÚ
- PS¹Å·çÕÕƬ½Ì³Ì£º¸ø¹Å·çÃÀÅ®´òÔì³öÅ®ÏÀ
- PS¸öÐÔÈËÎﺣ±¨ÖÆ×÷£ºÉè¼Æ´´ÒâʱÉеIJ£