Ò»¡¢¸ÅÄî¼°ÔÀí
£¨Ò»£©¸ÅÄî
SAMBA£ºSend Message Block
¾ÖÓòÍøÉϹ²ÏíÎļþºÍ´òÓ¡»úµÄÒ»ÖÖÐÒ飬Äܹ»Ê¹UnixÓëWindowsϵͳ֮¼ä½øÐй²Ïí·þÎñ£¬Ê¹WindowsÄܹ»²É
Óá°ÍøÉÏÁÚ¾Ó¡±½øÐзÃÎÊUnixÖ÷»ú£»
£¨¶þ£©¹¤×÷ÔÀí
ÈÃNETBIOSºÍSMAÕâÁ½¸öÐÒéÔËÐÐÓÚTCP/IPͨÐÅÐÒéÖ®ÉÏ£¬²¢ÇÒʹÓÃWindowsµÄNETBEUIÐÒéÈÃLINUX¿ÉÒÔÔÚ
ÍøÂçÁÚ¾ÓÉϱ»Windows¿´µ½£»
SAMBA»ùÓÚµÄÁ½¸öDeamon£º
£¨Èý£©Ïà¹ØÊØ»¤½ø³Ì
1¡¢SAMBA£ºÉèÖù²ÏíĿ¼¡¢´òÓ¡»úµÈ£»
2¡¢numbed£º¹ÜÀíȺ×é¡¢NetBIOS NameµÈ½âÎö¹¤×÷£»
¶þ¡¢¾ßÌå´î½¨
µ±È»¿ªÊ¼Òª²é¿´ÏµÍ³ÖÐÊÇ·ñÒѾ°²×°SAMBAÏà¹Ø°ü£¬ÈçûÓÐÏëÕÛ°²×°¼´¿É£¨¹âÅÌ»òÕßÏÂÔØÔ´Âë±àÒë°²×°£©
£¬±¾´î½¨ÊÇ»ùÓÚFC5ÖÐ×Ô´øµÄSAMBA£»
Ö÷ÅäÖÃÎļþ£º
/etc/samba/smb.conf
#=================== Global Settings===============
[global]²¿·ÖÉèÖã¬Ö÷Òª¾ÍÊÇÏÂÁм¸ÏÆäÓà¿ÉÒÔ±£³Ö²»±ä£¬µ±È»ÄãÒª±È½Ï¸´ÔӸ߼¶µÄ¹¦ÄÜ·þÎñµÄ»°£¬ÄÇ
¾ÍÁíµ±±ðÂÛÁË£»
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = MSHOME #Ö÷»úËùÊô¹¤×÷×éÃû³Æ
# server string is the equivalent of the NT Description field
server string = Samba Server #SAMBA·þÎñÆ÷Ö÷»úµÄ×¢ÊÍ£¬¿ÉÑ¡£¬µ«Êǽ¨Ò黹ÊÇÁô×Å£¬¶øÇÒ¾¡Á¿Ð´µÄÏê
ϸ׼ȷ£¬ÓÐÖúÓÚʶ±ð£»
# Security mode. Most people will want user level security. See security_level.txt for
details.
security = share #°²È«Ä£Ê½£¬ÓÉÓÚÊǹ²ÏíĿ¼£¬ËùÒÔÓÃshare£»
#==================== Share Definitions ==========
¹²Ïí²¿·ÖÉèÖÃÆäËü±£´æ²»¶¯£¬Ö±½ÓÔÚ×îºóÃæÌí¼ÓÄãÒª¹²ÏíµÄĿ¼¼´¿É£¬Í¬Ê±Òª×¢ÒâÆä·ÃÎÊȨÏÞ£»
[nfs]
path = /var/nfs
public = yes
writable = yes
/var/nfsĿ¼¶ÔËùÓÐÓû§¶¼¿É¶Á¿Éд£»
ËÄ¡¢Æô¶¯·þÎñ
ͨ¹ýÒÔÉϼòµ¥µÄÉèÖã¬ÖØÆô·þÎñºó£¬¼´¿ÉÔÚWindowsÏÂÔÚÍøÉÏÁÚ¾ÓÖнøÐзÃÎÊ£»
ÔÚFC5Ï£¬·þÎñÃûΪsmb¼°nmb£¬Æô¶¯smbʱ×Ô¶¯½«nmbÒ²Æô¶¯£»
Îå¡¢×¢ÒâÊÂÏî
1¡¢·À»ðǽÎÊÌâ
2¡¢È·±£¹²ÏíĿ¼µÄ·ÃÎÊȨÏÞ
3¡¢Í¨¹ýÍøÉÏÁÚ¾Ó·ÃÎÊÏàÓ¦¹²ÏíĿ¼ǰ£¬±ØÐëÈ·±£Ä¿Â¼ÔÚ·þÎñÆ÷ÉÏ´æÔÚ |