建立和Windows 溝通的橋樑 - Samba (User)
-- updated at 100507
現在可以不需要用手動改file 了,直接入http://localhost:901
vi /etc/samba/smb.conf
讓密碼在Unix Account 與 Samba 同步
vi /etc/pam.d/passwd
改成像以下這個樣子:
現在可以不需要用手動改file 了,直接入http://localhost:901
vi /etc/samba/smb.conf
[global]
workgroup = xian.lan
server string = %h server (Samba %v)
dns proxy = no
unix charset = UTF-8
display charset = UTF-8
dos charset = utf-8
hosts allow = 192.168.10. 127.
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
invalid users = root
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
socket options = TCP_NODELAY
[homes]
comment = Home Directories
browseable = yes
writable = no
create mask = 0600
directory mask = 0700
讓密碼在Unix Account 與 Samba 同步
vi /etc/pam.d/passwd
改成像以下這個樣子:
password required pam_unix.so nullok obscure min=4 max=8 md5
password sufficient pam_smbpass.so audit use_first_pass
Comments