FreeBSD¹ÜÀíС¼¼ÇÉ
×÷Õß ØýÃû¼¼Êõ
À´Ô´ ²Ù×÷ϵͳ
ä¯ÀÀ
·¢²¼Ê±¼ä 2012-06-28
# ÐÂÔö´ËÐв¢´æÅÌÀ뿪 # logout login: root ....ÖØеÇÈë ps.ÆäËüuser id ÊÇ·ñ¿ÉÕÕ°ì? ÎÒ»¹Ã»ÊÔ¹ýÁ¨..¸Õ×°freebsd¶øÒÑ 15.ÈçºÎ·ÀÖ¹±ðÈ˵Ǽµ½ÄãµÄ¼ÆËã»ú ÓÐʱ£¬ÎÒÃDz¢²»ÏëÈñðÈËÖ±½ÓµÇÈëµ½ÎÒÃǵÄÖ÷»ú»òÊÇÖ»ÏëÏÞ¶¨Ä³Ð©ÈË¿ÉʹÓã¬Èç telnet¡¢ssh.. »òÕßÊÇ¿ª·ÅÁËЩ·þÎñ£¬Èç ftp¡¢smtpd ..µÈ£¬ÓÉÓÚÕâЩ¶¼±ØÐèÔÚÖ÷»ú¶Ë½¨ÓÐÕʺţ¬Òò´Ë·ÀÖ¹²»Ïà¸ÉµÄÈ˵ÇÈëµ½ÄãµÄÖ÷»úÊǷdz£ÖØÒªµÄ£¬Ò²ÊÇÒ»¸ö°²È«ÉϵĿ¼Á¿.. µ«Ò»°ãÏÞ¶¨µÄ·½Ê½¶¼ÊÇʹÓà ip »òÊÇ domain µÄ·½Ê½£¬ÄÇôÓÐÎÞ·½·¨¿É½â¾öÕâ¸öÎÊÌâÄØ£¿ ´ð°¸ÊÇ¿É´Ó /etc/login.access À´×ÅÊÖ£¬Õâ¸öµµ°¸¾ÍÊÇÏÞ¶¨ login µÄ.. Ò»¸öµäÐ͵ÄÉ趨ÈçÏ£¬ÀýÈçÎÒÃÇÏëÏÞ¶¨Ö»ÓÐ root ¼° ʹÓÃÕß john ¿ÉµÇÈëµ½Ö÷»ú(º¬local ¼° remote): -:ALL EXCEPT root john:ALL ¿É·ÖΪÈý¸öÏîÄ¿£¬Ã¿¸öÏîÄ¿¼äÒÔ : ·Ö¸ô£¬ËµÃ÷ÈçÏÂ: 1. + »ò - ´ú±íÔÊÐí»ò½ûÖ¹ 2. É趨µÄʹÓÃÕß»òȺ×飬¿ÉÓà ALL EXCEPT À´Ç¿»¯ÏÞ¶¨µÄ·¶Î§ 3. ÏÞ¶¨µÄÀ´Ô´£¬Èç ALL ´ú±íÈ«²¿¡¢61.219.230. ¡¢LOCAL¡¢console¡¢.bad.com ..µÈ Êʵ±µÄÉ趨£¬¿ÉÈÃÄãµÄϵͳ¸ü¼ÓµÄ°²È«.. ÏêϸÓ÷¨¿É man login.access.. 15. Ò»¸ö ./ µÄ¼¼ÇÉ ÖÚËùÖÜÖª£¬ÔÚ nix-like ÖÐÖ´ÐÐĿǰĿ¼ÖеĿÉÖ´ÐÐÎļþʱ£¬±ØÐè¼ÓÉÏ ./ Õâ¶þ¸ö·ûºÅ£¬ºÜ¶à unix-like µÄ³õѧÕ߶¼»á¸Ð¾õ½Ï²»Ï°¹ß£¬ÒòΪÔÚ dos »ò windows µÄ dos ´°¿ÚÖв¢²»ÊÇÈç´Ë.. ÆäʵÔÚ unix-like ÖÐÈç´ËÉ趨ÊÇÓÐÆ䰲ȫ¿¼Á¿µÄ£¬ÔÚʹÓÃÖ¸Áî»òÖ´ÐÐÎļþʱ£¬Ò»°ãÊǽ¨ÒéʹÓÃÍêÕûµÄĿ¼£¬ÀýÈçҪʹÓà ls£¬ÔòÈçÏÂ: # /bin/ls µ±È»£¬ÄãÖ±½ÓÊäÈë ls Òà¿ÉÕýÈ·µÄÖ´ÐУ¬ÕâÊÇÒòΪÄãËùʹÓÃµÄ shell Öл·¾³±äÁ¿ $PATH µÄÒòËØ.. Äã¿É¼üÈë echo $PATH£¬À´¿´Ä¿Ç° $PATH µÄÉ趨£¬µ±ÎÒÃÇÖ´ÐÐÒ»¸öÖ¸Áîʱ£¬ÏµÍ³»áÒÀÕÕÕâ¸ö»·¾³±äÁ¿À´ËÑÑ°Õâ¸öÖ´Ðеµ²¢¼ÓÒÔÖ´ÐÐ.. ÄÚ¶¨ shell ²»»á½«Ä¿Ç°Ä¿Â¼ . ¼Óµ½ $PATH ÖУ¬Òò´ËÈç¹ûÄãÏëÔÚĿǰĿ¼ִÐÐÕâ¸öĿ¼ÏµÄÖ´ÐÐÎļþ¶ø²»Ïë¼ÓÉÏ ./ ʱ£¬¿ÉÔÚÄãµÄ shell Öн« . ¼ÓÈë.. ÈçÒ»°ãÔÚ FreeBSD ¶¼ÊÇʹÓà tcsh£¬Äã¿É±à¼¸öÈË home Ŀ¼Ï嵀 .cshrc ™n set path = ( ........ £¬Ôڴ˼ÓÈë . ¼´¿É.. ¼ÇµÃÖØÐÂÍ˳ö shell ÔٵǼ£¬ÒÔ±ãÈÃÄãµÄÐÂÉ趨ÉúЧ. 16.̸̸Èí¼þµÄ°²×°Â·¾¶.. FreeBSD ¶ÔÓÚµµ°¸Ä¿Â¼µÄ¹ÛÄî·Ç³£ÖØ£¬Ê²Ã´ÑùµÄµµ°¸Òª·ÅÔÚÄǸöĿ¼¶¼Óй涨£¬ÕâÒ²ÊÇÓбðÓÚÆäËü unix-like ϵͳ.. Ò»°ãÎÒÃǽ«Èí¼þ°²×°·Ö³É¶þ¸ö²¿·Ý£¬ÔÚÕâÀïÀ´Ì½ÌÖÒ»ÏÂÈí¼þµ½µ×¶¼°²×°µ½ÄÇÈ¥ÁË.. ÔÚ°²×°Èí¼þʱ£¬Í¨³£»á°²×°ÖîÈç Ö´Ðеµ¡¢É趨µµ¡¢man file¡¢doc Îļþ.. 1. °²×°ÏµÍ³Ê±Ëù°²×°µÄÈí¼þ Ö´ÐеµÍ¨³£×°ÔÚ /bin¡¢/sbin¡¢/usr/bin¡¢/usr/sbin¡¢/usr/libexec Ï É趨ÎļþͨÔÚÔÚ /etc Ŀ¼Ï man file ͨ³£ÔÚ /usr/man »ò /usr/share/man doc Îļþͨ³£ÔÚ /usr/share/doc Ï 2. ¾ÓÉ package »ò port °²×°µÄÈí¼þ Ö´ÐеµÍ¨³£×°ÔÚ /usr/local/bin¡¢/usr/local/sbin¡¢/usr/local/libexec Ï É趨ÎļþͨÔÚÔÚ /use/local/etc Ŀ¼Ï man file ͨ³£ÔÚ /usr/local/man .. doc Îļþͨ³£ÔÚ /usr/share/doc Ï ÒÔÉϲ¢²»ÊǾø¶ÔµÄ(ËùÒÔÎÒÓÃͨ³£..^.^)£¬ÒòΪÓÐЩÌØÊâÇé¿öÐèÊÓÈí¼þ¶ø¶¨.. Èç´ËÓÐʱ¿ÉÄÜ»áÔì³ÉЩÐíÀ§ÈÅ£¬ÒòΪÈç ssh ¡¢ bind .. ´ó¶àÊÇÔÚϵͳ°²Í³Ê±¾Í°²×°µÄ£¬ÄÇÈç¹ûÉý¼¶Ð°æʱÔõô°ì.. ÓÉÓÚ FreeBSD ÕÒÑ°Ö´ÐеµÊ±»áÒÀÕÕ $PATH Õâ¸ö»·¾³±äÁ¿ÕÒÑ°£¬ÒòΪ /bin¡¢/sbin¡¢/usr/bin¡¢/usr/sbin ±È /usr/local/bin »ò /usr/local/sbin ÏÈ£¬ËùÒÔ»áÏÈÖ´ÐÐ..Ò²¾ÍÊÇÏÈ×¥µ½¾É°æµÄÖ´Ðеµ.. Òò´ËÔÚ¸üÐÂʱҪעÒâÕâÖÖÇé¿ö£¬ÒÔÃâ¸üÐÂÁË»¹ÊÇÖ´ÐоɵijÌÐò.. ÄÇôÈçºÎ¿´°²Ê±³ÌÐòʱµÄÏà¹Øµµ°¸µÄ°²×°Â·¾¶ÄØ£¿Í¨³£ÓÐÒÔÏ·½·¨ 1. ¿´ port µÄ pkg-plist ™n 2. ÓÐʱÓà man [Ö´ÐеµÃû³Æ] ¿É¿´µ½Ò»Ð© |
ÁèÖڿƼ¼×¨ÒµÌṩ·þÎñÆ÷×âÓᢷþÎñÆ÷Íйܡ¢ÆóÒµÓʾ֡¢ÐéÄâÖ÷»úµÈ·þÎñ£¬¹«Ë¾ÍøÕ¾£ºhttp://www.lingzhong.cn ΪÁ˸ø¹ã´ó¿Í»§Á˽â¸ü¶àµÄ¼¼ÊõÐÅÏ¢£¬±¾¼¼ÊõÎÄÕÂÊÕ¼¯À´Ô´ÓÚÍøÂç,ÁèÖڿƼ¼×ðÖØÎÄÕÂ×÷ÕߵİæȨ£¬Èç¹ûÓÐÉæ¼°ÄãµÄ°æȨÓбØҪɾ³ýÄãµÄÎÄÕ£¬ÇëºÍÎÒÃÇÁªÏµ¡£ÒÔÉÏÐÅÏ¢ÓëÎÄÕÂÕýÎÄÊDz»¿É·Ö¸îµÄÒ»²¿·Ö,Èç¹ûÄúҪתÔر¾ÎÄÕÂ,Çë±£ÁôÒÔÉÏÐÅÏ¢£¬Ð»Ð»! |