ÓÑÇéÌáʾ£ºÈç¹û±¾ÍøÒ³´ò¿ªÌ«Âý»òÏÔʾ²»ÍêÕû£¬Çë³¢ÊÔÊó±êÓÒ¼ü¡°Ë¢Ð¡±±¾ÍøÒ³£¡ÔĶÁ¹ý³Ì·¢ÏÖÈκδíÎóÇë¸æËßÎÒÃÇ£¬Ð»Ð»£¡£¡ ±¨¸æ´íÎó
¾ÅÉ«Êé¼® ·µ»Ø±¾ÊéĿ¼ ÎÒµÄÊé¼Ü ÎÒµÄÊéÇ© TXTÈ«±¾ÏÂÔØ ½øÈëÊé°É ¼ÓÈëÊéÇ©

linux°®ºÃÕßÈëÃŽ̳Ì-µÚ6ÕÂ

°´¼üÅÌÉÏ·½Ïò¼ü ¡û »ò ¡ú ¿É¿ìËÙÉÏÏ·­Ò³£¬°´¼üÅÌÉ쵀 Enter ¼ü¿É»Øµ½±¾ÊéĿ¼ҳ£¬°´¼üÅÌÉÏ·½Ïò¼ü ¡ü ¿É»Øµ½±¾Ò³¶¥²¿£¡
¡ª¡ª¡ª¡ªÎ´ÔĶÁÍꣿ¼ÓÈëÊéÇ©ÒѱãÏ´μÌÐøÔĶÁ£¡



SambaЭÒé»ù´¡
¡¡¡¡ÔÚNetBIOS³öÏÖÖ®ºó£¬Microsoft¾ÍʹÓÃNetBIOSʵÏÖÁËÒ»¸öÍøÂçÎļþ/´òÓ¡·þÎñϵͳ£¬Õâ¸öϵͳ»ùÓÚNetBIOSÉ趨ÁËÒ»Ì×Îļþ¹²ÏíЭÒ飬Microsoft³Æ֮ΪSMB£¨Server¡¡Message¡¡Block£©Ð­Òé¡£Õâ¸öЭÒé±»MicrosoftÓÃÓÚËüÃÇLan¡¡ManagerºÍWindows¡¡NT·þÎñÆ÷ϵͳÖУ¬ÊµÏÖ²»Í¬¼ÆËã»úÖ®¼ä¹²Ïí´òÓ¡»ú¡¢´®ÐпںÍͨѶ³éÏó£¨ÈçÃüÃû¹ÜµÀ¡¢Óʼþ²å²ÛµÈ£©¡£
¡¡¡¡Ëæ×ÅInternetµÄÁ÷ÐУ¬MicrosoftÏ£Íû½«Õâ¸öЭÒéÀ©Õ¹µ½InternetÉÏÈ¥£¬³ÉΪInter¡¡netÉϼÆËã»úÖ®¼äÏ໥¹²ÏíÊý¾ÝµÄÒ»ÖÖ±ê×¼¡£Òò´ËËü½«Ô­Óеļ¸ºõûÓжàÉÙ¼¼ÊõÎĵµµÄSMBЭÒé½øÐÐÕûÀí£¬ÖØÐÂÃüÃûΪ¡¡CIFS£¨mon¡¡Internet¡¡File¡¡System£©£¬²¢´òË㽫ËüÓëNetBIOSÏàÍÑÀ룬ÊÔͼʹËü³ÉΪInternetÉϵÄÒ»¸ö±ê׼ЭÒé¡£
Òò´Ë£¬ÎªÁËÈÃWindowsºÍUnix¼ÆËã»úÏ༯³É£¬×îºÃµÄ°ì·¨¼´ÊÇÔÚUnix¼ÆËã»úÖа²×°Ö§³ÖSMB/CIFSЭÒéµÄÈí¼þ£¬ÕâÑùWindows¿Í»§¾Í²»ÐèÒª¸ü¸ÄÉèÖ㬾ÍÄÜÈçͬʹÓÃWindows¡¡NT·þÎñÆ÷Ò»Ñù£¬Ê¹ÓÃUnix¼ÆËã»úÉϵÄ×ÊÔ´ÁË¡£SambaÊÇÓÃÀ´ÊµÏÖSMBµÄÒ»ÖÖÈí¼þ£¬ËüµÄ¹¤×÷Ô­ÀíÊÇ£¬ÈÃNETBIOS£¨Windows95ÍøÂçÁÚ¾ÓµÄͨѶЭÒ飩ºÍSMB£¨Server¡¡Message¡¡Block£©ÕâÁ½¸öЭÒéÔËÐÐÓÚTCP/IPͨÐÅЭÒéÖ®ÉÏ£¬²¢ÇÒʹÓÃWindowsµÄNETBEUIЭÒéÈÃUnix¼ÆËã»ú¿ÉÒÔÔÚÍøÂçÁÚ¾ÓÉϱ»Windows¼ÆËã»ú¿´µ½¡£ËüµÄ¹¦ÄÜÓУº
1¡£¹²ÏíLinux´ÅÅ̸øWin95/NT
2¡£¹²ÏíWin95/NT´ÅÅ̸øLinux»úÆ÷
3¡£¹²ÏíLinux´òÓ¡»ú¸øwin95/NT
4¡£¹²Ïíwin95/NT´òÓ¡»ú¸øLinux»úÆ÷¡£
ͬʱËüµÄÎļþ·þÎñ¹¦ÄܱÈNTϵͳ»¹¸ß£¬¶øÇÒÔÚWindows2000֮ǰ¾ÍÌṩÁËÓû§´ÅÅÌ¿Õ¼äÏÞÖƵŦÄÜ¡£
SambaµÄÅäÖÃ
ÔÚÎÒдÕâƪÎÄÕµÄʱºò£¬SambaµÄ°æ±¾ÒѾ­µ½ÁË2¡£2¡£2ÁË£¬ÐèÒªµÄ¿ÉÒÔͨ¹ýftp£º//samba/pub/samba/Binary_Pa¡£¡£¡£011013¡£i386¡£rpmµÃµ½×îеÄrpm°²×°°ü¡£È»ºóÖ´ÐÐrpm¡¡¡­Uvh¡¡samba¡­2¡£2¡£2¡­20011013¡£i386¡£rpmÀ´°²×°»òÕßÉý¼¶Ëü¡£°²×°Íêºó£¬¿ÉÒÔ¿´¼û/etc/sambaÕâôһ¸öĿ¼£¬ÀïÃæ´æ·ÅºÍSambaÏà¹ØµÄһЩÎļþ£¬×îÖ÷ÒªµÄÊÇsmbnf£¬ÏÖÔÚ¸ù¾ÝÅäÖÃÎļþ½²½²ËüµÄÅäÖÃÑ¡Ï
È«¾ÖÉèÖãº
workgroup¡¡=¡¡MYGROUP
¶¨Òå¸ÃSamba·þÎñÆ÷ËùÔڵŤ×÷×é»òÕßÓò£¨Èç¹ûÏÂÃæµÄsecurity=domainµÄ»°£©¡£
server¡¡string¡¡=¡¡MY¡¡Samba¡¡Server
É趨»úÆ÷µÄÃèÊö£¬µ±ÎÒÃÇͨ¹ýÍøÂçÁÚ¾Ó·ÃÎʵÄʱºò¿ÉÒÔÔÚ±¸×¢ÀïÃæ¿´¼ûÕâ¸öÄÚÈÝ£¬¶øÇÒ»¹¿ÉÒÔʹÓÃsambaÉ趨µÄ±äÁ¿¡£ÕâÀï˵һÏÂsamba¶¨ÒåµÄ±äÁ¿£º
£¥S¡¡=¡¡µ±Ç°·þÎñÃû£¨Èç¹ûÓеĻ°£©
£¥P¡¡=¡¡µ±Ç°·þÎñµÄ¸ùĿ¼£¨Èç¹ûÓеĻ°£©
£¥u¡¡=¡¡µ±Ç°·þÎñµÄÓû§Ãû£¨Èç¹ûÓеĻ°£©
£¥g¡¡=¡¡µ±Ç°Óû§ËµÔÚµÄÖ÷¹¤×÷×é
£¥U¡¡=¡¡µ±Ç°¶Ô»°µÄÓû§Ãû
£¥G¡¡=¡¡µ±Ç°¶Ô»°µÄÓû§µÄÖ÷¹¤×÷×é
£¥H¡¡=¡¡µ±Ç°·þÎñµÄÓû§µÄHomeĿ¼
£¥v¡¡=¡¡Samba·þÎñµÄ°æ±¾ºÅ¡£
£¥h¡¡=¡¡ÔËÐÐSamba·þÎñ»úÆ÷µÄÖ÷»úÃû
£¥m¡¡=¡¡¿Í»§»úµÄNETBIOSÃû³Æ
£¥L¡¡=¡¡·þÎñÆ÷µÄNETBIOSÃû³Æ
£¥M¡¡=¡¡¿Í»§»úµÄÖ÷»úÃû
£¥N¡¡=¡¡NIS·þÎñÆ÷Ãû
£¥p¡¡=¡¡NIS·þÎñµÄHomeĿ¼
£¥R¡¡=¡¡Ëµ²ÉÓõÄЭÒéµÈ¼¶£¨Öµ¿ÉÒÔÊÇCORE£»¡¡COREPLUS£»¡¡LANMAN1£»¡¡LANMAN2£¬NT1£©
£¥d¡¡=¡¡µ±Ç°·þÎñ½ø³ÌµÄID
£¥a¡¡=¡¡¿Í»§»úµÄ½á¹¹£¨Ö»ÄÜʶ±ð¼¸ÏSamba£¬WfWg£¬WinNT£¬Win95£©
£¥I¡¡=¡¡¿Í»§»úµÄIP
£¥T¡¡=¡¡µ±Ç°ÈÕÆÚºÍʱ¼ä
hosts¡¡allow¡¡=¡¡ÍøÂç»òÕßÖ÷»ú
ÕâÀï¿ÉÒÔÉèÖÃÔÊÐí·ÃÎʵÄÍøÂçºÍÖ÷»úIP£¬±ÈÈçÔÊÐí192¡£168¡£1¡£0/24ºÍ192¡£168¡£2¡£1/32·ÃÎÊ£¬¾ÍÓÃhost¡¡allow¡¡=¡¡192¡£168¡£1¡£¡¡192¡£168¡£2¡£1¡¡127¡£0¡£0¡£1£¨ÍøÂç×¢ÒâºóÃæ¼Ó¡±¡£¡±ºÅ£¬¸÷¸öÏîÄ¿¼äÓÿոñ¸ô¿ª£¬¼ÇµÃ°Ñ±¾»úÒ²¼Ó½øÈ¥£©
printcap¡¡name¡¡=¡¡printcapFile
µ½printcapFile£¨Ò»°ãÊÇ/etc/printcap£©Õâ¸öÎļþÖÐÈ¡µÃ´òÓ¡»úµÄÃèÊöÐÅÏ¢
load¡¡printers¡¡=¡¡yes£üno
É趨ÊÇ·ñ×Ô¶¯¹²Ïí´òÓ¡»ú¶ø²»ÓÃÉèÖÃÏÂÃæµÄ£§printer£§Ò»½ÚµÄÏà¹Ø¶«Î÷
printing¡¡=¡¡PrintSystemType
¶¨Òå´òӡϵͳµÄÀàÐÍ£¬È±Ê¡ÊÇlprng£»¿ÉÑ¡ÏîÓУºbsd£»¡¡sysv£»¡¡plp£»¡¡lprng£»¡¡aix£»¡¡hpux£»¡¡qnx¡£
guest¡¡account¡¡=¡¡pcguest
¶¨ÒåÓοÍÕʺţ¬¶øÇÒÐèÒª°ÑÕâ¸öÕʺżÓÈë/etc/passwd£¬²»È»Ëü¾ÍÓÃȱʡµÄnobody
log¡¡file¡¡=¡¡LogFileName
¶¨Òå¼Ç¼ÎļþµÄλÖÃLogFileName£¨Ò»°ãÊÇÓÃ/var/log/samba/£¥m¡£log£©
max¡¡log¡¡size¡¡=¡¡size
¶¨Òå¼Ç¼ÎļþµÄ´óСsize£¨µ¥Î»ÊÇKB£¬Èç¹ûÊÇ0µÄ»°¾Í²»ÏÞ´óС£©
security¡¡=¡¡security_level
¶¨ÒåSambaµÄ°²È«¼¶±ð£¬°´´ÓµÍµ½¸ß·ÖΪËļ¶£ºshare£¬user£¬server£¬domain¡£ËüÃǶÔÓ¦µÄÑéÖ¤·½Ê½ÈçÏ£º
share£ºÃ»Óа²È«ÐԵļ¶±ð£¬ÈκÎÓû§¶¼¿ÉÒÔ²»ÒªÓû§ÃûºÍ¿ÚÁî·ÃÎÊ·þÎñÆ÷ÉϵÄ×ÊÔ´¡£
user£ºsambaµÄĬÈÏÅäÖã¬ÒªÇóÓû§ÔÚ·ÃÎʹ²Ïí×ÊԴ֮ǰ×ÊÔ´±ØÐëÏÈÌṩÓû§ÃûºÍÃÜÂë½øÐÐÑéÖ¤¡£
server£ººÍuser°²È«¼¶±ðÀàËÆ£¬µ«Óû§ÃûºÍÃÜÂëÊǵݽ»µ½ÁíÍâÒ»¸ö·þÎñÆ÷È¥ÑéÖ¤£¬±ÈÈçµÝ½»¸øһ̨NT·þÎñÆ÷¡£Èç¹ûµÝ½»Ê§°Ü£¬¾ÍÍ˵½user°²È«¼¶¡£
domain£ºÕâ¸ö°²È«¼¶±ðÒªÇóÍøÂçÉÏ´æÔÚһ̨WindowsµÄÖ÷Óò¿ØÖÆÆ÷£¬samba°ÑÓû§ÃûºÍÃÜÂëµÝ½»¸øËüÈ¥ÑéÖ¤¡£
ºóÃæÈýÖÖ°²È«¼¶¶¼ÒªÇóÓû§ÔÚ±¾Linux»úÆ÷ÉÏҲҪϵͳÕÊ»§¡£·ñÔòÊDz»ÄÜ·ÃÎʵġ£
password¡¡server¡¡=¡¡
µ±Ç°ÃæµÄsecurityÉ趨Ϊserver»òÕßdomainµÄʱºò²ÅÓбØÒªÉ趨Ëü¡£
password¡¡level¡¡=¡¡n
ÕâÊÇÉ趨Õë¶ÔһЩSMB¿Í»§ÏñOS/2Ö®Àà¶øÉèµÄ£¬ÕâÑùµÄϵͳÔÚ·¢ËÍÓû§ÃÜÂëµÄʱºò£¬»á°ÑÃÜÂëת»»³É´óдÔÙ·¢ËÍ£¬ÕâÑù¾ÍºÍsambaµÄÃÜÂë²»Ò»Ö£¬Õâ¸ö²ÎÊý¿ÉÒÔÉ趨ÃÜÂëÀïÔÊÐíµÄ´óд×Öĸ¸öÊý£¬ÕâÑùsamba¾Í¸ù¾ÝÕâ¸öÊýÄ¿¶Ô½ÓÊÕµ½µÄÃÜÂë½øÐдóСдÖØ×飬ÒÔÖØ×é¹ýµÄÃÜÂë³¢ÊÔÑéÖ¤ÃÜÂëµÄÕýÈ·ÐÔ¡£nÔ½´ó£¬×éºÏµÄ´ÎÊý¾ÍÔ½¶à£¬Ñé֤ʱ¼ä¾ÍÔ½³¤£¬°²È«ÐÔÒ²»áÒò´Ë±äµÃÔ½µÍ¡£ÀýÈçn=2£¬Óû§µÄÃÜÂëÊÇabcd£¬µ«·¢ËͳöÈ¥ÆäʵÊÇABCD£¬samba¾Í»á°ÑÕâ¸öABCD½øÐдóСдÖØ×飬×éºÏºóµÄ½á¹û¿ÉÒÔÊÇ£º¡¡Abcd£»¡¡aBcd£»¡¡abCd£»¡¡abcD£»¡¡abcd£»¡¡ABcd£»¡¡AbCd£»¡¡AbcD£»aBCd£»aBcD£»abCD¡£
ËùÒÔÈç¹ûûÓбØÒª£¬¾Í°Ñn¶¨ÎªÊÇÁã¡£ÕâÑùµÄ»°sambaÖ»³¢ÊÔÁ½´Î£¬Ò»¸öÊǽÓÊÕµ½µÄÃÜÂ룬ÁíÒ»¸ö³¢ÊÔµÄÊÇÕâ¸öÃÜÂ붼ÊÇСдµÄÇé¿ö¡£
username¡¡level¡¡=¡¡n
Õâ¸öÊǶÔÓÚÓû§ÃûµÄÇé¿ö£¬ËµÃ÷ºÍÉÏÃæÒ»ÏîÀàËÆ¡£
encrypt¡¡passwords¡¡=¡¡yes£üno
ÉèÖÃÊÇ·ñ¶ÔÃÜÂë½øÐмÓÃÜ£¬samba±¾ÉíÓÐÒ»¸öÃÜÂëÎļþ/etc/samba/smbpasswd£¬Èç¹û²»¶ÔÃÜÂë½øÐмÓÃÜÔòÔÚÑéÖ¤»á»°ÆÚ¼ä¿Í»§»úºÍ·þÎñÆ÷Ö®¼ä´«µÝµÄÊÇÃ÷ÎÄÃÜÂ룬sambaÖ±½Ó°ÑÕâ¸öÃÜÂëºÍLinuxÀïµÄ/etc/samba/smbpasswdÃÜÂëÎļþ½øÐÐÑéÖ¤¡£µ«ÊÇÔÚWindows¡¡95¡¡OS/R2ÒÔºóµÄ°æ±¾ºÍWindows¡¡NT¡¡SP3ÒÔºóµÄ°æ±¾È±Ê¡¶¼²»´«ËÍÃ÷ÎÄÃÜÂ룬ҪÈÃÕâЩϵͳÄÜ´«ËÍÃ÷ÎÄÃÜÂë±ØÐëÔÚÆä×¢²á±íÀï¸ü¸Ä£¬±È½ÏÂé·³£¬ºÃµÄ·½·¨¾ÍÊÇ°ÑÕâÀïµÄÕâ¸ö¿ª¹ØÉèÖÃΪyes¡£
smb¡¡passwd¡¡file¡¡=¡¡smbPasswordFile
ÉèÖôæ·ÅsambaÓû§ÃÜÂëµÄÎļþsmbPasswordFile£¨Ò»°ãÊÇ/etc/samba/smbpasswd£©¡£
ssl¡¡CA¡¡certFile¡¡=¡¡sslFile
µ±samba±àÒëµÄʱºòÖ§³ÖSSLµÄʱºò£¬ÐèÒªÖ¸¶¨SSLµÄÖ¤ÊéµÄλÖã¨Ò»°ãÔÚ/usr/share/ssl/certs/ca¡­bundle¡£crt£©¡£
unix¡¡password¡¡sync¡¡=¡¡yes£üno
passwd¡¡program¡¡=¡¡/usr/bin/passwd¡¡£¥u
passwd¡¡chat¡¡=¡¡*New*UNIX*password*¡¡£¥n
*ReType*new*UNIX*password*¡¡£¥n
*passwd£º*all*authentication*tokens*updated*successfully*
ÕâÈýÏîÉèÖÃÄÜ·ñ´ÓwindowsµÄÓ¦ÓóÌÐòÐÞ¸ÄunixϵͳµÄÓû§ÃÜÂë
username¡¡map¡¡=¡¡UsermapFile
Ö¸¶¨Óû§Ó³ÉäÎļþ£¨Ò»°ãÊÇ/etc/samba/smbusers£©£¬µ±ÎÒÃÇÔÚÕâ¸öÎļþÀïÃæÖ¸¶¨Ò»ÐÐroot¡¡=¡¡administrator¡¡adminµÄʱºò£¬¿Í»§»úµÄÓû§ÊÇadmin»òÕßadministratorÁ¬½Óʱ»á±»µ±×÷Óû§root¿´´ý¡£
include¡¡=¡¡MachineConfFile
Ö¸¶¨¶Ô²»Í¬»úÆ÷µÄÁ¬½Ó²ÉÓò»Í¬µÄÅäÖÃÎļþMachineConfFile£¨Ò»°ãΪÁËÁé»î¹ÜÀíʹÓÃ/etc/samba/smbnf¡££¥m£¬ÓÉÓÚ²ÉÓÃÁËsambaµÄ±äÁ¿£¬°ÑÅäÖÃÎļþºÍ¿Í»§»úµÄNETBIOSÃû³Æ¹ØÁªÆðÀ´£¬ÄܺÜÈÝÒ׵ؿØÖÆÕâЩ¿Í»§»úµÄȨÏÞºÍÉèÖã©¡£
socket¡¡options¡¡=¡¡TCP_NODELAY¡¡SO_RCVBUF=8192¡¡SO_SNDBUF=8192
Õâ¸öÊÇÍøÂçsocket·½ÃæµÄһЩ²ÎÊý£¬ÄÜʵÏÖ×îºÃµÄÎļþ´«ÊäÐÔÄÜ¡£Ïà¹ØµÄÑ¡ÏÓÐSO_KEEPALIVE¡¢¡¡SO_REUSEADDR¡¢SO_BROADCAST¡¢IPTOS_LOWDELAY¡¢IPTOS_THROUGHPUT¡¢SO_SNDLOWAT£¨*£©¡¢SO_RCVLOWAT£¨*£©£¬´ø*ºÅµÄÒªÖ¸¶¨ÊýÖµ¡£Ò»°ãÈç¹ûÔÚ±¾µØÍøÂ磬¾ÍÖ»ÓÃIPTOS_LOWDELAY£»Èç¹ûÊÇÓÐÒ»¸ö±¾µØÍøÂçµÄ£¬¾ÍÓÃIPTOS_LOWDELAY¡¡TCP_NODELAY£¬Èç¹ûÊǹãÓòÍøÂ磬¾ÍÊÔÊÔIPTOS_THROUGHPUT¡£
interfaces¡¡=¡¡interface1¡¡interface2
Èç¹ûÓжà¸öÍøÂç½Ó¿Ú£¬¾Í±ØÐëÔÚÕâÀïÖ¸¶¨¡£Èçinterface¡¡=¡¡192¡£168¡£12¡£2/24¡¡192¡£168¡£13¡£2/24
remote¡¡browse¡¡sync¡¡=¡¡host£¨subnet£©
ÕâÀïÖ¸¶¨ä¯ÀÀÁбíͬ²½ÐÅÏ¢´ÓÄÄÀïÈ¡µÃ£¬¡¡Èç¹ûÓÃhost£¨±ÈÈç192¡£168¡£3¡£25£©»òÕßÕû¸ö×ÓÍø£¨192¡£168¡£5¡£255£©¡£
¡ïÕâÀï˵Ã÷Ò»ÏÂʲôÊÇä¯ÀÀ£¨Browse£©£º
ÔÚSMBЭÒéÖУ¬¼ÆËã»úΪÁË·ÃÎÊÍøÂç×ÊÔ´£¬¾ÍÐèÒªÁ˽âÍøÂçÉÏ´æÔÚµÄ×ÊÔ´ÁÐ±í£¨ÀýÈçÔÚWindowsÏÂʹÓÃÍøÂçÁھӲ鿴¿ÉÒÔ·ÃÎʵļÆËã»ú£©£¬Õâ¸ö»úÖƾͱ»³ÆΪä¯ÀÀ£¨Browse£©¡£ËäÈ»SMBЭÒéÖо­³£Ê¹Óù㲥µÄ·½Ê½£¬µ«Èç¹ûÿ´Î¶¼Ê¹Óù㲥µÄ·½Ê½Á˽⵱ǰµÄÍøÂç×ÊÔ´£¨°üÀ¨Ìṩ·þÎñµÄ¼ÆËã»úºÍ¸÷¸ö¼ÆËã»úÉϵķþÎñ×ÊÔ´£©£¬¾ÍÐèÒªÏûºÄ´óÁ¿µÄÍøÂç×ÊÔ´ºÍÀ˷ѽϳ¤µÄ²éÕÒʱ¼ä£¬Òò´Ë×îºÃÔÚÍøÂçÖÐά»¤Ò»¸öÍøÂç×ÊÔ´µÄÁÐ±í£¬ÒÔ·½±ã²éÕÒÍøÂç×ÊÔ´¡£Ö»ÓбØÒªµÄʱºò£¬²ÅÖØвéÕÒ×ÊÔ´£¬ÀýÈçʹÓÃWindowsϵIJéÕÒ¼ÆËã»ú¹¦ÄÜ¡£
¡¡¡¡µ«Ã»ÓбØҪÿ¸ö¼ÆËã»ú¶¼Î¬»¤Õû¸ö×ÊÔ´ÁÐ±í£¬Î¬»¤ÍøÂçÖе±Ç°×ÊÔ´ÁбíµÄÈÎÎñÓÉÍøÂçÉϵļ¸¸öÌØÊâ¼ÆËã»úÍê³ÉµÄ£¬ÕâЩ¼ÆËã»ú±»³ÆΪBrowser£¬ÕâЩBrowserͨ¹ý¼Ç¼¹ã²¥Êý¾Ý»ò²éѯÃû×Ö·þÎñÆ÷À´¼Ç¼ÍøÂçÉϵĸ÷ÖÖ×ÊÔ´¡£
Browser²¢²»ÊÇÊÂÏÈÖ¸¶¨µÄ¼ÆËã»ú£¬¶øÊÇÔÚÆÕͨ¼ÆËã»úÖ®¼äͨ¹ý×Ô¶¯½øÐеÄÍƾٲúÉúµÄ¡£²»Í¬µÄ¼ÆËã»ú¿ÉÒÔ°´ÕÕÆäÌṩ·þÎñµÄÄÜÁ¦£¬ÉèÖÃÔÚÍƾÙʱ¾ß±¸µÄ²»Í¬È¨ÖØ¡£ÎªÁ˱£Ö¤Ò»¸öBrowserÍ£»úʱÍøÂçä¯ÀÀÈÔÈ»Õý³££¬ÍøÂçÖг£³£´æÔÚ¶à¸öBrowser£¬Ò»¸öΪÖ÷Browser£¨Master¡¡Browser£©£¬ÆäËûµÄΪ±¸·ÝBrowser¡£¡ï
remote¡¡announce¡¡=¡¡host£¨subnet£©
Ö¸¶¨ÕâЩ»úÆ÷ÏòÍøÂçÐû¸æ×Ô¼º£¬¶ø²»ÊÇÓÐBrowserµÃµ½¡£
local¡¡master¡¡=¡¡yes£üno
Õâ¸ö²ÎÊýÖ¸¶¨nmbdÊÇ·ñÊÔͼ³ÉΪ±¾µØÖ÷ä¯ÀÀÆ÷£¬Ä¬ÈÏÖµÊÇyes£¬Èç¹ûÉèΪnoÔòsamba·þÎñÆ÷¾ÍÓÀÔ¶¶¼²»»á³ÉΪ±¾µØÖ÷ä¯ÀÀÆ÷¡£µ«¼´Ê¹ÉèÖÃÁËyes£¬Ò²²»µÈÓÚsamba·þÎñÆ÷¾Í»á³ÉΪ±¾µØÖ÷ä¯ÀÀÆ÷¡£Ö»ÊDzÎÓë±¾µØÖ÷ä¯ÀÀÆ÷Ñ¡Ôñ¡£
os¡¡level¡¡=¡¡n
nµÄÖµÊǸöÕûÊý£¬¾ö¶¨ÁËnmbdÊÇ·ñÓлú»á³ÉΪ±¾µØ¹ã²¥ÇøÓòµÄ¹¤×÷×éÀïµÄ±¾µØÖ÷ä¯ÀÀÆ÷£¬Ä¬ÈÏÖµÊÇÁ㣬ÁãÔòÒâζ×Ånmbdʧȥä¯ÀÀÑ¡Ôñ¡£Èç¹ûÒªnmbd¸üÓлú»á³ÉΪ±¾µØÖ÷ä¯ÀÀÆ÷µÄ»°£¬¿ÉÒÔÉèΪ65¡£
domain¡¡master¡¡=¡¡yes£üno
Õâ¸ö²ÎÊýÈÃnmbd³ÉΪһ¸öÓòä¯ÀÀÆ÷£¬È¡µÃ¸÷±¾µØÖ÷ä¯ÀÀÆ÷µÄä¯ÀÀÁÐ±í£¬²¢½«Õû¸öÓòµÄä¯ÀÀÁбíµÝ½»¸ø¸÷±¾µØÖ÷ä¯ÀÀÆ÷¡£
preferred¡¡master¡¡=¡¡yes£üno
Õâ¸ö²ÎÊýÖ¸¶¨nmbdÊÇ·ñÊǹ¤×÷×éÀïµÄÊ×ÒªµÄÖ÷ä¯ÀÀÆ÷£¬Èç¹ûÖ¸¶¨Îªyes£¬nmbdÔÚÆô¶¯µÄʱºò¾ÍÇ¿ÖÆÒ»¸öä¯ÀÀÑ¡Ôñ¡£
¡ïDomain¡¡masterºÍlocal¡¡master
¹¤×÷×éºÍÓòÕâÁ½¸ö¸ÅÄîÔÚ½øÐÐä¯ÀÀʱ¾ß±¸Í¬ÑùµÄÓô¦£¬¶¼ÊÇÓÃÓÚÇø·Ö²¢Î¬»¤Í¬Ò»×éä¯ÀÀÊý¾ÝµÄ¶à¸ö¼ÆËã»ú¡£ÊÂʵÉÏËûÃǵIJ»Í¬ÔÚÓÚÈÏÖ¤·½Ê½ÉÏ£¬¹¤×÷×éÖÐÿ̨¼ÆËã»ú¶¼»ù±¾ÉÏÊǶÀÁ¢µÄ£¬¶ÀÁ¢¶Ô¿Í»§·ÃÎʽøÐÐÈÏÖ¤£¬¶øÓòÖн«´æÔÚÒ»¸ö£¨»ò¼¸¸ö£©Óò¿ØÖÆÆ÷£¬±£´æ¶ÔÕû¸öÓòÖж¼ÓÐЧµÄÈÏÖ¤ÐÅÏ¢£¬°üÀ¨Óû§µÄÈÏÖ¤ÐÅÏ¢ÒÔ¼°ÓòÄÚ³ÉÔ±¼ÆËã»úµÄÈÏÖ¤ÐÅÏ¢¡£ä¯ÀÀÊý¾ÝµÄʱºò£¬²¢²»ÐèÒªÈÏÖ¤ÐÅÏ¢£¬Microsoft½«¹¤×÷×éÀ©Õ¹ÎªÓò£¬Ö»ÊÇΪÁËÐγÉÒ»ÖÖ·Ö¼¶µÄĿ¼½á¹¹£¬½«Ô­ÓеÄä¯ÀÀºÍĿ¼·þÎñÏà½áºÏ£¬ÒÔÀ©´óMircrosoftÍøÂç·þÎñ·¶Î§µÄÒ»ÖÖ²ßÂÔ¡£
¹¤×÷×éºÍÓò¶¼¿ÉÒÔ¿çÔ½¶à¸ö×ÓÍø£¬Òò´ËÍøÂçÖоʹæÔÚÁ½ÖÖBrowser£¬Ò»ÖÖΪDomain¡¡Master¡¡Browser¡¡£¬ÓÃÓÚά»¤Õû¸ö¹¤×÷×é»òÓòÄÚµÄä¯ÀÀÊý¾Ý£¬ÁíÒ»ÖÖΪLocal¡¡Master¡¡Browser£¬ÓÃÓÚά»¤±¾×ÓÍøÄÚµÄä¯ÀÀÊý¾Ý£¬ËüºÍDomain¡¡Master¡¡BrowserͨÐÅÒÔ»ñµÃËùÓеĿÉä¯ÀÀÊý¾Ý¡£»®·ÖÕâÁ½ÖÖBrowser¡¡Ö÷ÒªÊÇÓÉÓÚä¯ÀÀÊý¾ÝÒÀÀµÓÚ±¾µØÍø¹ã²¥À´»ñµÃ×ÊÔ´ÁÐ±í£¬²»Í¬×ÓÍøÖ®¼äÖ»ÄÜͨ¹ýä¯ÀÀÆ÷Ö®¼äµÄ½»Á÷ÄÜÁ¦£¬²ÅÄÜ»¥Ïཻ»»×ÊÔ´ÁÐ±í¡£
µ«ÊÇ£¬ÎªÁËä¯ÀÀ¶à¸ö×ÓÍøµÄ×ÊÔ´£¬±ØÐëʹÓÃNBNSÃû×Ö·þÎñÆ÷µÄ½âÎö·½Ê½£¬Ã»ÓÐNBNSµÄ°ïÖú£¬¼ÆËã»ú½«²»ÄÜ»ñµÃ×ÓÍøÍâ¼ÆËã»úµÄNetBIOSÃû×Ö¡£Local¡¡Master¡¡BrowserÒ²ÐèÒª²éѯNetBIOSÃû×
·µ»ØĿ¼ ÉÏÒ»Ò³ ÏÂÒ»Ò³ »Øµ½¶¥²¿ ÔÞ£¨0£© ²È£¨0£©
δÔĶÁÍꣿ¼ÓÈëÊéÇ©ÒѱãÏ´μÌÐøÔĶÁ£¡
ÎÂÜ°Ìáʾ£º ο´Ð¡ËµµÄͬʱ·¢±íÆÀÂÛ£¬Ëµ³ö×Ô¼ºµÄ¿´·¨ºÍÆäËüС»ï°éÃÇ·ÖÏíÒ²²»´íŶ£¡·¢±íÊéÆÀ»¹¿ÉÒÔ»ñµÃ»ý·ÖºÍ¾­Ñé½±Àø£¬ÈÏÕæдԭ´´ÊéÆÀ ±»²ÉÄÉΪ¾«ÆÀ¿ÉÒÔ»ñµÃ´óÁ¿½ð±Ò¡¢»ý·ÖºÍ¾­Ñé½±ÀøŶ£¡