close

(1)    sudo apt-get install libpam-smbpass

(2)   sudo smbpasswd -a $USER
(3)       sudo nano /etc/samba/smb.conf
 

[global]

workgroup = it100

wins support = yes

netbios name = it100MB

os level = 255

 

domain master = no

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

 
(4)   sudo /etc/init.d/samba restart
(5)   win2003  記事本存的檔案類型記得用UTF-8格式;驗證要能進到home目錄
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 applen1 的頭像
    applen1

    applen1的部落格

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