2007年10月11日 星期四

smb.conf 範例

[global]

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = king
netbios name = server001
unix charset = cp950
dos charset = cp950
getwd cache = yes
#smb ports = 139
# oplocks = yes
server string = eGame
hosts allow = 127.0.0.1 192.168.1.1
hosts deny = ALL
log file = /var/log/samba/%I.log
max log size = 5
security = share
encrypt passwords = no
socket options = TCP_NODELAY IPTOS_LOWDELAY
#SO_RCVBUF=8192 SO_SNDBUF=8192
#IPTOS_LOWDELAY
#interfaces = eth0 ,lo
#bind interfaces only = yes
os level = 65

; domain master = yes
; preferred master = yes
domain logons = yes
dns proxy = no
preserve case = no
short preserve case = no

#============================ Share Definitions ==============================
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
winbind use default domain = no

[king$]
path = /home/king
browseable = no
public = yes
writable = yes
create mode = 0777
directory mode = 0777
veto oplock files = /*.ldb/*.dat/

[king0$]
path = /home/king
browseable = no
public = yes
writable = yes
create mode = 0777
directory mode = 0777
veto oplock files = /*.ldb/*.dat/

[king1$]
path = /home/king1
browseable = no
public = yes
writable = yes
create mode = 0777
directory mode = 0777
veto oplock files = /*.ldb/*.dat/

[king2$]
path = /home/king2
browseable = no
public = yes
writable = yes
create mode = 0777
directory mode = 0777
veto oplock files = /*.ldb/*.dat/

沒有留言: