[global]
  workgroup = CNSUNBIRD.COM
  server string = Backup.cnsunbird.com
  netbios name = Backup.cnsunbird.com
  security = user
  encrypt passwords = Yes
  load printers = no
  disable spoolss = yes
  log file = /var/log/samba34/log.%m
  max log size = 500
  deadtime = 15
  socket options = TCP_NODELAY SO_KEEPALIVE
  lock dir = /usr/local/locks
  oplocks = yes
  hide dot files = yes
  interfaces = 192.168.100.200/24
  os level = 36
  name resolve order = wins host lmhosts bcast
  preferred master = Yes
  domain master = No
  wins support = Yes
  display charset = utf8
  unix charset = utf8
  dos charset = utf8

[hrd]
   comment = hrd fold
   path = /data/data/hrd
   write list = chensg @hrd
   read only = no
[it]
   comment = it fold
   path = /data/data/it
   write list = chensg
   read only = no
[share]
   comment = share fold
   path = /data/data/share
   write list = chensg @hrd @it
   read only = no
[soft]
   comment = soft fold
   path = /data/data/soft
   write list = chensg @it
   read only = no
[wuw]
   comment = wuw fold
   path = /data/data/wuw
   write list = chensg @it
   read only = no
[data]
   comment = backup file
   path = /bkdata1
   write list = chensg @wheel
   read only = no
   browsable = no
[picture]
   comment = every to ready
   path = /data/data/picture
   write list = @it
   read list = test
#    guest ok = yes
[public]
   comment = every to rw
   path = /data/data/public
   write list = @it test

创建锁定的文件夹
#mkdir /usr/local/locks
#testparm

优化:

#ee /boot/loader.conf

autoboot_delay=2
kern.ipc.maxsockbuf=8388608
kern.maxfiles=65536
kern.ipc.somaxconn=8192
kern.ipc.maxsockets=16384
kern.maxfilesperproc=32768
kern.ipc.nmbclusters=32768

#ee /etc/sysctl.conf

kern.maxfiles=65536
kern.maxfilesperproc=32768