2009年4月20日 星期一

smb.conf的設定

[global]
panic action = /usr/share/samba/panic-action %d
printing = bsd
printcap name = /etc/printcap
load printers = no
guest account = nobody
dos charset = CP950
unix charset = BIG5
security = share
workgroup = PROMD
server string = ProMD Samba Server
netbios name=promddata
syslog only = no
syslog = 0
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
encrypt passwords = true
passdb backend = tdbsam guest
wins support = no
name resolve order = lmhosts host wins bcast
dns proxy = no
preserve case = yes
short preserve case = yes
unix password sync = false
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
max log size = 1000
obey pam restrictions = yes

[homes]
comment = Home Directories
valid users = %S
browseable = no
read only = yes
create mask = 0700
directory mask = 0700

[PUBLIC]
comment = publicdata
public = yes
browseable = yes
locking = no
writable = yes
path=/home/publicdata
writable=yes
hosts allow=192.168.0.0/255.255.255.0

沒有留言:

張貼留言