close

 
如果你 Samba  WINS Server 有不正常的記錄
1.
請先停止 samba=>很重要,否則不會清除原記錄
2.
再刪除 /var/cache/samba/wins.dat /var/cache/samba/browse.dat
3.
重新啟動Samba,則Samba 會自動建立這兩個檔案

 

(1) sudo nano /etc/samba/smb.conf
[global]
workgroup = it100
wins support = yes   
#wins proxy = yes     
netbios name = it100MB 
os level = 255
domain master = yes  

preferred master = yes

local master = yes

 

browse list = yes

dns proxy = no

security = user

guest only = no

guest ok = no

 

name resolve order = wins lmhosts bcast

 

# 中文顯示設定
unix charset  = utf8
display charset = utf8
dos charset  = cp950

 

log file = /var/log/samba/log.%m

max log size = 1000

syslog = 2

 

[homes]

  comment = Home Directories

 

  # browseable = no 這設定, 使得在網芳系統不會看到 homes 這名稱

  browseable = no

 

  # By default, the home directories are exported read-only. Change next

  # parameter to ‘yes’ if you want to be able to write to them.

  writable = yes

 

  # By default, \\server\username shares can be connected to by anyone

  # with access to the samba server. Un-comment the following parameter

  # to make sure that only “username” can connect to \\server\username

  valid users = %S

 

  # 符合指定格式的檔案(.*), 會自動被附於 '隱藏' 屬性

  hide files = /.*/   

          

  create mode = 0664

  directory mode = 0775

 
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 applen1 的頭像
    applen1

    applen1的部落格

    applen1 發表在 痞客邦 留言(0) 人氣()