ºìÁªLinuxÃÅ»§
Linux°ïÖú

LinuxÍøÂçÓ¦ÓÃÎÊ´ð

·¢²¼Ê±¼ä:2005-05-29 00:20:47À´Ô´:ºìÁª×÷Õß:linux_
¡¾×ªÔØ¡¿LinuxÍøÂçÓ¦ÓÃÎÊ´ð
ÎÊ£ºÈçºÎÔÚLinuxÏÂÊÖ¶¯Ìí¼ÓĬÈÏÍø¹Ø£¿
´ð£ºÒÔrootÓû§ÎªÀý£¬Ö´ÐÐÏÂÃæµÄÃüÁ
# route add default gw xxx.xxx.xxx.xxx£¨Íø¹ØµÄIP£©
Èç¹ûÓû§Ïë¸ü¸ÄÍø¹Ø£¬±à¼­/etc/sysconfig/network-scripts/ifcfg-eth0Îļþ£¬½«¶ÔÓ¦µÄÍø¹ØÉèÖÃÐÞ¸ÄÖ®ºó£¬Ö´ÐÐÏÂÃæµÄÃüÁî¼´¿É£º
#/etc/init.d/network restart

ÎÊ£ºÔÚLinuxÖÐÓÐʱ¿ª»ú²»×Ô¶¯¼ì²éÐÂÓ²¼þ£¬Ð°²×°µÄÍø¿¨ÕÒ²»µ½¡£ÇëÎÊÔõô½â¾ö£¿
´ð£º×Ô¶¯¼ì²éÐÂÓ²¼þµÄ·þÎñÊÇKudzu£¬Óû§¿ÉÒÔÓá°ntsysv¡±ÃüÁîÆô¶¯¸Ã·þÎñ¡£Ï´ÎÖØÆô¾Í»áÕÒµ½Óû§µÄÐÂÍø¿¨¡£

ÎÊ£ºÎÒÓмÒÀïÓÐһ̨µçÄÔ×°ÁËLinux£¬ÎÒÏë´Ó¹«Ë¾Ô¶³ÌµÇ½µ½¼ÒÀï½øÐвÙ×÷£¬Ã¿´ÎTelnet¶¼²»ÄÜÓÃrootµÇ½£¬ÇëÎÊÓа취½â¾öÂð£¿
´ð£ºÎªÁË°²È«ÐԵĿ¼ÂÇ£¬ÏÖÔÚÓÐЩLinuxµÄ°æ±¾Ä¬Èϲ»°²×°Telnet£¬ÍƼöʹÓÃSSH¡£µ±È»Èç¹ûÓû§¶Ô°²È«ÐÔûÓкܸߵÄÒªÇ󣬿ÉÒÔÖ±½ÓÓÃrootµÇ¼¡£·½·¨ÊÇÐÞ¸Ä/etc/pam.d/login×¢Ê͵ôÏÂÃæÒ»ÐУº
# auth required /lib/security/pam_security.so
×îºó±£´æÍ˳ö£¬¼´¿ÉÓÃrootµÇ¼¡£

ÎÊ£ºLinuxÏÂÈçºÎ¼àÊÓËùÓÐͨ¹ý±¾»úÍø¿¨µÄÊý¾Ý£¿
´ð£ºÊ¹ÓÃÏÂÃæµÄÃüÁî¼´¿É£º
#tcpdump iptraf

ÎÊ£ºÈçºÎ¹Ø±ÕÓû§µÄPOP3ȨÏÞ£¿
´ð£º°ÑPOP3µÄ¶Ë¿Ú¹Øµô¾Í¿ÉÒÔÁË¡£ÔÚÎļþ/etc/servicesÖÐÕÒµ½ÏÂÃæÕâÒ»ÐУ»
pop-3 110/tcp
ÔÚËüÇ°¼Ó¸ö¡°#¡±£¬°ÑËü×¢Ê͵ô¾Í¿ÉÒÔÁË¡£

ÎÊ£ºÈçºÎ´ÓLinuxÉϸøWindows·¢ËÍPopUpÏûÏ¢£¿
´ð£º°ÑÏÂÃæ½Å±¾±£´æΪ/usr/local/bin/net:

#!/bin/bash
#/usr/local/bin/net

case ¡° $1¡± in
send)
echo ¡° $3¡±|smbclient -I ¡° $2¡± -M `nmblookup -A ¡° $2¡±|sed -e ¡®1d¡¯
-e ¡®3£¬/*/d¡¯|cut -f2|cut -d¡® ¡¯ -f1`
;;
*)
echo ¡°Usage:net send ¡±
exit 1
esac



ÔÙ¸ø¸ÃÎļþ¼ÓÉÏÖ´ÐÐȨÏÞ£¬ÃüÁîÈçÏ£º
#chmod +x /usr/local/bin/net
ʹÓÃnet½Å±¾µÄÀý×ÓÈçÏ£º
#net send 192.168.12.1 "hello, Linux!"

ÎÊ£ºÈçºÎÈ·¶¨wu-ftpdÊÇ·ñ´æÔÚsite exec°²È«Â©¶´£¿
´ð£ºÔÚijЩLinux·¢Ðа汾ÉϵÄwu-ftpdÓÐsite exec°²È«Â©¶´£¬Óû§¿ÉÒÔ·ÇÄäÃûÓû§ftpµÇ¼£¬È»ºóÖ´ÐÐÏÂÃæµÄÃüÁ
ftp>SITE EXEC bash -c id
Èç¹û·µ»ØµÄÐÅÏ¢ÖÐÓС°200-uid=0(root) gid=0(root)¡±£¬ÄÇô¾ÍÓÐÕâ¸ö©¶´£¬ÐèÒªÂíÉϸü»»¡£

ÎÊ£ºwu-ftpdÈçºÎÔÊÐíÄäÃûÓû§ÉÏ´«Îļþ£¿
´ð£º½¨Á¢Ò»¸öÎļþ¼Ð£¬¶ÔÓÚFTPÓû§¿Éд¡£È»ºóÔÚftpaccessÀïÃæ×öÈçÏÂÉèÖãº
upload /home/ftp /home/ftp/incoming/* yes ftp ftp 0400 nodirs

ÎÊ£ºwu-ftpdÈçºÎ½ûÖ¹Óû§ÉÏ´«²»¹æÔòÎļþÃûµÄÎļþ£¿
´ð£º±ÈÈçÒªÏÞÖÆÄäÃûÓû§²»ÄÜÉÏ´«ÎļþÃû°üº¬ÌØÊâ×Ö·ûµÄÎļþ£¬ÄÇô¿ÉÒÔÔÚftpaccessÀïÃæÉèÖÃÈçÏ£º
path-filter anonymous /etc/paths.msg ^[-A-Za-z0-9._]* $ ^. ^-

ÎÊ£ºÈçºÎÈ¡ÏûLinuxµÄDHCP·þÎñ£¿
´ð£ºÕâÒª¿´Óû§ÊÇÓÃϵͳ×Ô´øµÄDHCP£¬»¹ÊÇ×ÔÒѺóÀ´×°µÄ£¬ÏÂÃæ·ÖÁ½ÖÖÇé¿öÀ´ËµÃ÷£º
1.Èç¹ûϵͳ×Ô´øµÄ£¬¿ÉÒÔÑ¡Ôñ¿ªÊ¼¡úϵͳ·þÎñ¡úDHCPÑ¡ÏͣµôDHCP·þÎñ£¬È»ºóÖ´ÐÐÏÂÃæµÄÃüÁ
#/etc/rc.d/init.d/xinetd restart
2.Èç¹ûÊÇÓû§ºóÀ´×°µÄ£¬Ò»°ãÊÇÔÚ/etc/rc.localÖУ¬ÈÃϵͳ¹Ø±ÕDHCP·þÎñ¡£

ÎÊ£ºÔõôÑùʹtcp syn cookie±£»¤ÉúЧ£¿
´ð£ºÊ¹ÓÃÏÂÃæµÄÃüÁî¼´¿É£º
#echo 1 > /proc/sys/net/ipv4/tcp_syncookies

ÎÊ£ºÔõÑù¿ØÖÆÓû§ÓʼþµÄ´óС?
´ð£ºÔËÐÐÏÂÃæµÄÃüÁîÀ´ÏÞ¶¨£º
# max message size to 1MB
O MaxMessageSize=1000000
È»ºóÖØÆôSendmail¼´¿É¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 25 ÌõÆÀÂÛ

  1. llhvvv ÓÚ 2009-04-16 13:40:47·¢±í:

    ²»´í£¬Ö§³Ö

  2. feidecheng ÓÚ 2008-06-20 18:03:36·¢±í:

    ѧϰÁË°¡

  3. snqyss ÓÚ 2006-10-23 19:49:59·¢±í:

    ¶àл¥Ö÷Ìṩ

  4. snqyss ÓÚ 2006-10-21 15:21:13·¢±í:

    :0L :0L ¶àл¥Ö÷Ìṩ£¬Ñ§Ï°ÁË

  5. qdpc120 ÓÚ 2006-10-21 12:31:38·¢±í:

    hhhhhhhhhhhh

  6. fanhg ÓÚ 2006-10-17 14:18:49·¢±í:

    Óо­ÑéµÄ¸÷λÀÏÄñ£¬²»Òª°ÑÄãÃǵľ­ÑéÊÕ²ØÆðÀ´£¬ÄóöÀ´´ó¼Ò¹²ÏíÒ»ÏÂÂï

  7. ïï ÓÚ 2006-09-14 17:59:39·¢±í:

    ¶¥£¬ºÃ¶«Î÷ѽ

  8. chameleon ÓÚ 2006-09-14 01:31:55·¢±í:

    Ï£Íû¶à·¢Ò»µãÕâÑùµÄÍøÂçÓ¦ÓÃÎÄÕÂ

  9. zzy4641 ÓÚ 2006-09-13 18:35:49·¢±í:

    good ,thank you

  10. yjdwbj ÓÚ 2006-09-12 21:19:15·¢±í:

    Äܲ»ÄÜÏê½âÒ»ÏÂ,Íø¿¨µÄÅäÖÃ?ÎÒµÄÔÚVMÏÂÃæ°²×°redhat linux 9.0 ,ÇŽÓÖ÷»úµÄ8319µÄÍø¿¨,¾ÍÊDz»ÖªµÀÔõôÅäÖÃ,Éϲ»ÁËÍø,лÁË,Ôڴ˾²ºò¼ÑÒô

  11. seamanchen126 ÓÚ 2006-09-12 10:31:05·¢±í:

    ²»?!

  12. MOCEL ÓÚ 2006-07-18 11:14:28·¢±í:

    ÇáÇáµÄÖ§³ÖÏÂ

  13. belive ÓÚ 2006-04-13 21:03:25·¢±í:

    ÎÒÔÚÆô¶¯Ê±Ïë½øÈëcmos
    ÔõÑù×ö£¿ÐǪ̈½²½²!

  14. sdpwlf1982 ÓÚ 2006-04-06 23:25:22·¢±í:

    ·Ç³£Ð»Ð»ÁË

  15. szcaizai ÓÚ 2006-03-25 14:47:02·¢±í:

    ok

  16. public_us ÓÚ 2006-03-22 15:31:24·¢±í:

    ÕâÑùµÄÄÚÈÝÔ½¶àÔ½ºÃ

  17. public_us ÓÚ 2006-03-22 15:29:45·¢±í:

    ºÃ£¬¶¥

  18. ÀÌÎ ÓÚ 2005-12-04 16:52:57·¢±í:

    лл´ó¼Ò

  19. ºãÉÆϲ ÓÚ 2005-12-03 19:03:16·¢±í:

    ²»´í£¬Ç¿ÁÒÖ§³Ö

  20. yy123 ÓÚ 2005-10-05 10:34:07·¢±í:

    Ö§³Ö

  21. ming ÓÚ 2005-09-14 13:11:05·¢±í:

    GOOD

  22. frog ÓÚ 2005-09-03 11:32:55·¢±í:

    good

  23. °®µÄ±ßÔµ ÓÚ 2005-09-02 00:27:16·¢±í:

    ²»´í£¬Ö§³Ö

  24. reing ÓÚ 2005-08-09 00:17:15·¢±í:

    Ö§³ÖÂ¥Ö÷

  25. 007 ÓÚ 2005-07-10 00:05:50·¢±í:

    ¶¥