LinuxÏÂglftpd´î½¨FTP·þÎñÆ÷
Ò»¡¢Ç°ÑÔ
Linux ÉÏÓкò»ÉÙÈí¼þÄܹ»´î½¨ FTP£¬ÀýÈç vsftpd¡¢glftpd¡¢proftpd µÈ¡£
vsftpd ÊÇºÍ Linux ϵͳÉÏÓû§¹ÜÀíÒ»ÑùµÄ¡£ËùÓеÄÓû§¹ÜÀí¶¼ÊÇÔÚÏÖÓÐËÞÖ÷ϵͳÉϵÄÓû§ÒÔ¼°×é¹ÜÀíÏàͬ¡£ÎļþȨÏÞÉϵĹÜÀíÒ²ÊÇºÍ Linux һģһÑù¡£ÔڴÉϱȽϿ죬¼òµ¥·½±ã¡£
glftpd ÀàËÆÓÚÒ»¸ö·â±ÕµÄСϵͳ£¬³ýÁËÖ§³Ö±ê×¼ FTP Ö¸ÁîÍ⣬»¹ÄÜÀûÓà site Ö¸Á½øÐÐÓû§¹ÜÀí¡¢Õ¾µã¹ÜÀíµÈµÈ¡£Õû¸öϵͳ¿ÉÒÔ·½±ãµÄÒÆֲʹÓã¬ËüÓµÓÐ×Ô¼ºµÄÒ»Ì×Óû§ºÍ×é¹ÜÀí£¬ºÍËÞÖ÷ϵͳµÄÓû§ºÍ×é¹ÜÀíÍêÈ«·ÖÀë¡£Õ¾³¤ÔÚʹÓõÄʱºòÍêÈ«¿ÉÒÔÒÀÀµ FTP ¿Í»§¶Ë½øÐУ¬²»±ØÉîÈëÁ˽â Linux ÃüÁî¡£
¶þ¡¢×¼±¸
ĿǰʹÓà ubuntu ·¢Ðаæ½Ï¶à£¬ÒÔ´ËΪÀý½øÐÐÏÂÃæµÄ½éÉÜ¡£
1.°²×° xinetd
glftpd »ùÓÚ Internet ·þÎñ¹ÜÀí£¬ÓÐ×Ô¼ºµÄ¶Ë¿ÚºÅ½øÐзÃÎÊ£¬ËùÒÔÊÂÏÈÐèÒª°²×°Ò»¸ö Internet ·þÎñ¹ÜÀíµÄ¹¤¾ß¡£xinetd ÊǸö½ÏºÃµÄÑ¡Ôñ¡£¿ÉÒÔͨ¹ýÔ´½øÐа²×°¡£
sudo apt-get install xinetd
°²×°Ö®ºó»á×Ô¶¯Æô¶¯ xinetd¡£
2.ÏÂÔØ glftpd °²×°°ü
glftpd Ä¿Ç°×îеİ汾ÊÇ 2.01£¬2005-12-25 ºÅ¸üС£Ö±½Ó´ÓÍøÂçÉÏÏÂÔؼ´¿É¡£
wget http://www.glftpd.com/files/glftpd-LNX_2.01.tgz
Èç¹ûÆäËû·¢ÐаæÇëµ½ http://www.glftpd.com/ °´ÐèÏÂÔØ¡£
tar xvf glftpd-LNX_2.01.tgz
cd glftpd-LNX_2.01/
×¼±¸¹¤×÷Íê³É¡£¡¡
Èý¡¢°²×°
°²×°Ö®Ç°£¬ÐèҪȡµÃ root ȨÏÞ¡£¿ÉÒÔÀûÓà sudo -i »òÕß su µÄ·½Ê½»ñµÃ¡£ºóÎľùΪȡµÃ root ȨÏÞºóµÄÖ´ÐÐÃüÁî¡£
°²×°¹ý³Ì±È½Ï¼òµ¥£¬ÓÐÏêϸµÄ°²×°½Å±¾£¬Ö»ÊÇѯÎÊһЩ°²×°µÄÑ¡Ï°´ÐèÑ¡Ôñ¼´¿É¡£Èç¹ûÏëÈ¡Ïû°²×°°´ Ctrl + C ¼´¿É¡£
ÔËÐа²×°½Å±¾
./installgl.sh
ÉÏÀ´ÊÇһЩ glftpd µÄ½éÉÜ£¬Ìáʾ°´ enter ¼ÌÐø¡£
(1)TCPD SETUP¡£Õâ¸öÎÒ²»ÖªµÀ×öʲôµÄ£¬ÍøÉÏ˵Êǽû IP Óõģ¬¾ßÌåÎÒûÓùý£¬Ö±½Ó Y °²×°¡£
(2)JAIL SETUP¡£ÊÇ·ñ°²×°µ½Ò»¸ö·â±ÕµÄ»·¾³£¿ÎÒÃÇÑ¡Ôñ Y£¬ÎªÁ˽ñºó·½±ã¹ÜÀí£¬ÕâÑùÕû¸ö°²×°ºÃµÄ glftpd ¾ÍÊǸö¶ÀÁ¢µÄСϵͳ£¬¿ÉÒÔËæÒâ cp µ½Ðµط½Ê¹Ó㬶ø±£Ö¤Óû§ÐÅÏ¢Õ˺ÅÉèÖÃÒÔ¼°ÈÕÖ¾Îļþ¶¼±£ÁôºÍ¼Ì³ÐÏÂÈ¥¡£½Ó×Å»áÎÊÐèÒª°²×°µ½Ê²Ã´µØ·½£¿¿ÉÒԷŵ½ /srv Ŀ¼ÏÂÒÔ·ÃÎʶ˿ںÅÃüÃûÎļþ¼Ð£¬±ÈÈçÎÒÉèÖõľÍÊÇ /srv/8002¡£Ò²
Ïà¹ØÎĵµ£º
ÔÚÍøÉÏÕÒµ½µÄÒ»¸ö³ÌÐò
[c]
#include <stdio.h>
#include <sys/types.h>
#include <regex.h>
/* È¡×Ó´®µÄº¯Êý */
static char* substr(const char*str,unsigned start, unsigned end)
{
unsigned n = end - start;
static char stbuf[256]; ......
chmod(change mode)
¹¦ÄÜ˵Ã÷£º±ä¸üÎļþ»òĿ¼µÄȨÏÞ¡£
Óï¡¡¡¡·¨£ºchmod [-cfRv][--help][--version][<ȨÏÞ·¶Î§>+/-/=<ȨÏÞÉèÖÃ...>][Îļþ»òĿ¼...] »ò chmod [-cfRv][--help][--version][Êý×Ö´úºÅ][Îļþ»òĿ¼...] »ò chmod [-cfRv][--help][--reference=<²Î¿¼ ......
ËùÓеÄÄں˴úÂ룬»ù±¾¶¼°üº¬ÁËinclude/linux/compile.hÕâ¸öÎļþ£¬ËùÒÔËüÊÇ»ù´¡£¬º¸ÇÁË·ÖÎöÄÚºËËùÐèÒªµÄһЩÁбàÒë֪ʶ£¬±¾²©¾Í·ÖÎö·ÖÎöÕâ¸öÎļþÀïµÄ´úÂ룺
#ifndef __LINUX_COMPILER_H
#define __LINUX_COMPILER_H
#ifndef __ASSEMBLY__
Ê×ÏÈÓ¡ÈëÑÛÁ±µÄÊǶÔ__ASSEMBLY__Õâ¸öºêµÄÅжϣ¬Õâ¸ö±äÁ¿Êµ¼ÊÊÇÔÚ±àÒë»ã±à´úÂëµÄÊ ......
£¨1£©¼òÊö£ºÔÚ±àÒëºÃÁ˵ÄANDROID¸ùÎļþϵͳµÄsystem/etc/pointercalÕâ¸öÎļþÄÚ£¬´æ·Å×Å7¸öÊý£¬Õâ7¸öÊý¾ÍÊÇ¡¶linuxµÄ´¥ÃþÆÁÖ®Ò»¡·Ëù½²µÄa,b,c,d,e,f,s¡£±ÈÈçÎÒÔÚ×Ô¼ºµÄMIDÉϲ鿴µÄÊýֵΪ£º4933 -5 -15710176 -95 -4961 56071328 65536¡£
£¨2£©´¦Àí˵Ã÷£º“system/etc/pointercal”Õâ¸öÎļþÊDZ»java³ÌÐò¶ÁȡʹÓÃµÄ ......
»ù±¾ÊµÓù¤¾ß£º
ls ÏÔʾÎļþÃû(list)
cat ÏÔʾÎı¾ÎļþÄÚÈÝ
rm [-i] ɾ³ýÎļþ(remove),-i´ò¿ªÑ¡Ïî
less/more ·ÖÆÁÏÔʾÎļþ
hostname ÏÔʾϵͳÃû
Îļþ²Ù×÷£º
cp SOURCEFILE DESTINATIONFILE ¸´ÖÆÎļþcopy
mv OLDNAME NEWNAME ¸ü¸ÄÎļþÃû(move)
lpr [-p] FILEN ......