Listing 1. Sample Samba Configuration File

[global]
  domain logons = yes
  encrypt passwords = yes
  hide unreadable = yes
  log level = 1
  log file = /usr/local/samba/var/%m.log
  logon drive = p:
  logon home = \myserver\%u
  logon script = logon.bat
  netbios name = myserver
  os level = 99
  preferred master = yes
  security = user
  socket options = TCP_NODELAY IPTOS_LOWDELAY
  time server = yes
  veto files = /*.com/*.exe/*.scr/*.vbs/*.{*}/
  wins support = yes
  workgroup = mydomain

[projects]
  create mode = 0660
  directory mode = 0770
  force group = +users
  path = /projects
  read only = no
  write list = +projects

[public]
  path = /home/public
  read only = no

[netlogon]
  path = /home/netlogon

[homes]
  browseable = no
  create mode = 0600
  directory mode = 0700
  read only = no