1¡¢°²×°
°²×°¹ý³Ì·Ç³£¼òµ¥£º
# apt-get install samba
ϵͳ»áÎÊÄ㣬Çë²Î¿¼ÕâЩ´ð°¸£º
ÓÃdebconfÅäÖÃsambaÂð£¿Yes¡£
ÊäÈ빤×÷×éÃû£¬»òÕßÓòÃû£ºmshome¡£
ʹÓÿÚÁî¼ÓÃÜ£¿Yes¡£
ÒÔʲô·½Ê½ÔËÐÐsamba£¿ÎÒÃÇÑ¡ÔñĬÈϵÄdaemons·½Ê½£¬ÈÃËûÔÚºǫ́¼àÌý¡£
´´½¨samba¿ÚÁî¿â£¿Yes¡£
2¡¢Ð¡²âÊÔ
ÄãÒ²Ðí²»ÏàÐÅ£¬µ«ÊÇÏÖÔÚ£¬ÄãÒѾ¿ÉÒÔÔÚWindowsµÄÍøÉÏÁÚ¾ÓÀïÃæ¿´µ½Õą̂Ãû×Ö½ÐDebianµÄLinuxÖ÷»úÁË£¡
ÕÒµ½ÍøÉÏÁÚ¾ÓµÄworkgroup×飬Äã»á·¢ÏÖËýȷʵÒѾÔÚÄÇÀïÁË¡£ÔõôÑù£¬Õñ·Ü°É£¡
²»¹ý£¬Äã»á·¢ÏÖ£¬ÎÞÂÛÄãÊäÈëʲôÓû§ÃûºÍ¿ÚÁ¶¼ÎÞ·¨Í¨¹ýÑéÖ¤¡£ÄÇÊÇÒòΪ£¬ÎÒÃÇ»¹Ã»ÓиæËßsamba£¬ÑéÖ¤ÄÄЩÓû§ºÍ¿ÚÁî¡£
3¡¢Ð´Ò»¸ö×îСµÄsmb.conf
Global Settings
[global]
workgroup = mshome
server string = %h server
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security =share
[develop] //ÏÔʾµÄ¹²ÏíÃû
comment = gbj
path = /mnt/samba //¹²ÏíÎļþ·¾¶
public = yes
writable = yes
create mode = 0700
4¡¢ÐÞ¸Ä/mnt/samba Ŀ¼ȨÏÞΪ¿Éд
5¡¢ÒªÊÇÐ޸ĺóµÄsmb.confÉúЧ£¬ÐèÒªÖØÐÂÆô¶¯samba£º
# /etc/init.d/samba restart
6¡¢¿ª·¢°åÉϹÒÔØ
#mount -t cifs username=guest //192.168.18.101:/mnt/samba /mnt