顯示具有 samba 標籤的文章。 顯示所有文章
顯示具有 samba 標籤的文章。 顯示所有文章

2012年8月1日

Samba安裝筆記

apt-get install samba

編輯/etc/samba/smb.conf
[global]
   workgroup = WORKGROUP
   display charset = UTF8
   dos charset= cp950
   unix charset= UTF8
   server string = server description
   dns proxy = no
;   name resolve order = lmhosts host wins bcast
;   interfaces = 127.0.0.0/8 eth0
;   bind interfaces only = yes
#### Debugging/Accounting ####
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
   security = share
   encrypt passwords = true
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
#======================= Share Definitions =======================
   read only = yes
   create mask = 0700
   directory mask = 0700
   vaild users = %s

[250g1]
comment = 250g1
path = /250g1
guest ok = yes
writable = yes
share modes = yes
[250g2]
comment = 250g2
path = /250g2
guest ok = yes
writable = yes
share modes = yes

2010年7月3日

Samba在Windows下檔名顯示設定

/etc/samba/smb.conf
[global]

dos charset=big5
unix charset=big5
==================================================================
display charset = UTF8
dos charset= cp950
unix charset= UTF8

SAMBA帳密同步

SAMBA帳密同步 筆記


pdbedit -L
pdbedit -a user 新增使用者
pdbedit -x user 刪除使用者

套件:libpam-smbpass

1.編輯/etc/pam.d/common-password
新增password sufficient pam_smbpass.so audit use_first_pass

2.執行 passwd username
 條件:系統及Samba均有該username帳號