ÔÚLinuxÏÂÈçºÎ¿ìËٴ°²È«µÄFTP·þÎñÆ÷
ÔÚLinuxÏÂÈçºÎ¿ìËٴ°²È«µÄFTP·þÎñÆ÷ ÏÖÔÚÁ÷ÐеÄFTP·þÎñÆ÷£¬±È½ÏÖøÃûµÄÓÐWU-FTP£¨Washington University FTP£©ºÍVSFTP£¨Very Secure FTP ·Ç³£°²È«µÄFTP£©ÒÔ¼°Proftp,pureftpµÈ¶øVSFTPÒÔÆä¸ß¶È°²È«ÐԺ͸ßËÙÎȶ¨µÄÌØÐÔÕýÔÚ³ÉΪ»¥ÁªÍøÉÏFTP·þÎñÆ÷µÄг衣ÏÖÔÚ±ÊÕß°ÑÔÚFedoraÉÏÅäÖÃÒ»¸ö°²È«FTPµÄ¹ý³ÌºÍ´ó¼Ò½»Á÷£¬Ï£Íû½è´ËÄܹ²Í¬Ñ§Ï°£¬¹²Í¬Ìá¸ß¡£
Ò»¡¢°²×°
1.ÏÂÔØ×îеÄÎȶ¨°ævsftpd-1.2.1.tar.gz
2.жÔØÔÓеÄrpmµÄvsftpd
rpm -e vsftpd
3.tar xvzf vsftpd-1.2.1.tar.gz
4.cd vsftpd-1.2.1
5.make
6.useradd nobody
7.mkdir /usr/share/empty
8.mkdir /var/ftp
9.useradd -d /var/ftp ftp
10.chown root.root /var/ftp
11.chmod og-w /var/ftp
˵Ã÷£ºÈç¹ûÄãÏñÎÒÒ»ÑùÔÀ´ÓÐrpmµÄvsftp£¬Ö»ÊÇжÔØÁË£¬¿ÉÒÔÊ¡ÂÔ6-11²½£¬Èç¹ûÔÀ´Ã»Óа²×°vsftp£¬Çë°´²¿¾Í°à¡£
12.make install
13.vi /etc/xinetd.d/vsftpd
°Ñdisable=yes¸Ä³Éno£¬±£´æÍ˳ö¡£È»ºóservice xinetd restart£¬OK£¡ÐÂ×°µÄvsftpÒѾ¿ÉÒÔ¹¤×÷ÁË£¡
˵Ã÷£º
ĬÈÏ°²×°µÄvsftpdÊÇÒÔxinetdµÄ·½Ê½Æô¶¯µÄ¡£ÄãÐèÒªÉÏÊö²Ù×÷£¬Ò»»á¶ù£¬ÎÒÃÇÔÙÀ´½²°ÑËü¸Ä³É¶ÀÁ¢Æô¶¯µÄ·þÎñ¡£
14.ftp 127.0.0.1
ÊäÈëÓû§Ãûftp£¬ÃÜÂëÖ±½Ó»Ø³µ£¬OK£¡ÒѾ¿ÉÒÔÁ¬½ÓÁË£¡ÊäÈëquitÍ˳ö¡£È»ºóÖØÐÂftp 127.0.0.1£¬ÊäÈë±¾µØÓû§ºÍÃÜÂ룬ȴÌáʾlogin faild£¡ÎªÊ²Ã´ÔÀ´ÉÙÒ»¸ö±¾µØÓû§ÈÏÖ¤µÄpamÎļþ¡£
15.cp RedHat/vsftpd.pam /etc/pam.d/ftp£¨×¢Ò⣬ûÓÐÕâÒ»²½½«²»ÄÜʹÓñ¾µØÓû§µÇ¼¡££©
16.cp vsftpd.conf /etc/vsftpd.conf£¨ÏÖÔÚ£¬Ä¬ÈÏ»¹ÊÇÖ»ÄÜÄäÃûÓû§µÇ¼¡££©
17.vi /etc/vsftpd.conf
°Ñanonmous_enable=YES¸Ä³ÉNO(½ûµôÄäÃûÁ´½Ó£¬²»°²È«¡££©
°Ñlocal_enable=YESÇ°µÄ×¢ÊÍÈ¥µô£¨´ò¿ª±¾µØÓû§Á¬½ÓµÄȨÏÞ¡££©
°Ñwrite_enable=YESÇ°µÄ×¢ÊÍÈ¥µô£¨´ò¿ª±¾µØÓû§µÄдȨÏÞ¡££©
°Ñlocal_umask=022Ç°µÄ×¢ÊÍÈ¥µô
service xinetd restart
18.ÔٴβâÊÔ
ftp 127.0.0.1
ʹÓÃftpÓû§¿ÕÃÜÂëµÇ¼£¬½«³öÏÖlogin faild
ʹÓñ¾µØÓû§µÇ¼£¬OK£¡ÒѾ³É¹¦ÁË£¡ÉÏ´«Îļþ£¬Ò²OK£¡
ÕâÑùÊDz»ÊǾÍÍêʶùÁË£¿²»ÊÇ£¬×öÒ»¸öFTP£¬ÎÒÃÇͨ³£»¹ÐèҪһЩÌØÊâÒªÇ󣺱ÈÈçÒ»¸öÓû§ÎÒÖ»ÔÊÐíËûÏÂÔØ£¬²»ÔÊÐíËûÉÏ´«£»ÁíÒ»¸öÓû§¿ÉÒÔÏÂÔØÒ²¿ÉÒÔÉÏ´«£¬µ«ÊÇËû²»ÄÜɾ³ýÎļþ£¬²»ÄܸøÎļþ¸ÄÃû£»ÁíÍ⣬ÎÒ»¹ÐèÒªÎÒµÄFTPʹÓ÷dz£¹æµÄ¶Ë¿Ú£¬ÏÞÖÆÏÂÔصÄËٶȣ¬»¹ÐèÒªÒ»¸ö¹ÜÀíÔ±Óû§¡£ÄÇÔõô°ì£¿Çë¿´ÏÂÃæµÄ²¿·Ö£º
¶þ¡¢¸ß¼¶ÅäÖÃ
1. ÈçºÎÈÃVSFTPʹÓöÀÁ¢·þÎñ£¿
a.vi
Ïà¹ØÎĵµ£º
½ñÌìµÚÒ»´ÎÊÔ×ÅÔÚLinuxÏÂдC³ÌÐò£¬°ÑÓöµ½µÄÎÊÌâ¼Ç¼һÏÂ
1. ʹÓÃemacsÃüÁî±à¼³ÌÐòÎļþ£¬ÎÒÖ±½ÓÔÚTerminalÀïÊäÈëÁËemacs£¬Ð´ºÃ³ÌÐò£¬¹Ø±Õ£¬½á¹ûºÍwindowsÀï²»Ò»Ñù£¬²¢Ã»ÓÐÈκÎSaveFileDialogÖ®ÀàµÄ¶Ô»°¿òµ¯³öÀ´£¬×Ô¼ºÐ´µÄ¶«Î÷Ò²²»ÖªµÀ±£´æµ½ÄÄÀïÁË£¬¶øÇÒFile²Ëµ¥ÀïҲûÓÐNewÕâÑùµÄÑ¡Ïî¡£ºóÀ´²ÅÖªµÀ£¬ÔÀ´ÊǵÃÔÚemacsÃüÁîºó ......
Linux¹Ø»úÃüÁîÏê½â
±¾Îijö×Ô:LinuxAid.com.cn ×÷Õß: sword_martin (2002-01-30 21:03:06)
ÔÚlinuxÏÂһЩ³£ÓõĹػú/ÖØÆôÃüÁîÓÐshutdown¡¢halt¡¢reboot¡¢¼°init£¬ËüÃǶ¼
¿ÉÒÔ´ïµ½ÖØÆôϵͳµÄÄ¿µÄ£¬µ«Ã¿¸öÃüÁîµÄÄÚ²¿¹¤×÷¹ý³ÌÊDz»Í¬µÄ£¬Í¨¹ý±¾ÎĵĽéÉÜ£¬Ï£
ÍûÄã¿ÉÒÔ¸ü¼ÓÁé»îµÄÔËÓø÷ÖֹػúÃüÁî ......
×î½üÔÚÍøÉÏ¿´Á˼¸¸öLinuxÄں˱àÒë·½ÃæµÄÎÄÕ£¬ÓÉÓںܶàÕâÑùµÄÌû×Ó£¬Ëæ±ã¿´Á˼¸¸ö¶¼²î²»¶à°É¡£ÔÚÎÒÕæÕý×Ô¼º¶¯ÊÖȥʵ¼ùµÄʱºò£¬³öÏÖÁ˺ܶàµÄÎÊÌâ¡£¸Ð¾õÊDz»ÄÜÍêÈ«°´ÕÕ±ðÈ˵ķ½·¨À´£¬ÒòΪÄãÃǵĵ±Ê±µÄ»úÆ÷¹¤×÷»·¾³¿ÉÄÜÊDz»Ò»ÑùµÄ¡£Õû¸ö¹ý³ÌÇúÕÛ¿²¿À¡£µ«ÊÇ×îºó»¹Êdzɹ¦À²£¡ÏÂÃæÎÒ½«¸ø³ö×Ô¼ºµÄʵ¼ù¹ý³ÌºÍ×¢Òâµã¡£
Ò»,ΪʲôҪ± ......
ÕâÀï¼Ç¼Redhat LinuxÖеÄһЩ³£Ó÷þÎñºÍÅäÖù¤¾ß¡£°æ±¾»ùÓÚAS4¡£
1.Firewall
ͨ¹ýÃüÁîÐÐÅäÖãºlokkit
ͼÐνçÃæÅäÖãºApplications->System Settings->Security Level
2.samba
/etc/init.d/smb start | /etc/init.d/smb stop | /etc/init.d/smb restart
»òÕß
service smb start | service smb stop | servic ......