LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   improvements/suggestions for smb.conf (http://www.linuxquestions.org/questions/linux-server-73/improvements-suggestions-for-smb-conf-587862/)

ferradura 09-27-2007 07:46 PM

improvements/suggestions for smb.conf
 
I have implemented samba as a PDC and file server, seems to be working good, except for a slight delay (3-5 secs) when a folder is first browsed(after this it works fine).

I am looking for some sugestions to improve my configuration, the most important one is to specify the smb port and block everything else on the system.

To those that read this, reply to the post with your thoughts!

Code:

[global]
  workgroup = local
  netbios name = servidor
  server string = CRUX
  passdb backend = tdbsam
  security = user
  username map = /etc/samba/smbusers
  name resolve order = wins bcast hosts
  domain logons = yes
  preferred master = yes
  domain master = yes
  local master = yes
  wins support = yes
  os level = 100
  logon drive = Z:
  add machine script = /usr/sbin/useradd -s /bin/false/ -d /var/lib/nobody %u
  idmap uid = 15000-20000
  idmap gid = 15000-20000
  template shell = /bin/bash
  log level = 3
  socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
  hide unreadable = yes
  hide dot files = yes

[homes]
  comment = directorio do utilizador
  valid users = %S
  read only = no
  browsable = no
  veto files = /*.exe/

[netlogon]
  comment = Network Logon Service
  path = /home/samba/netlogon/
  admin users = Administrador
  valid users = %U
  read only = no
  guest ok = yes
  writable = no
  share modes = no
  browsable = no

[producao]
  comment = directorio da producao
  path = /pub/tecnico/producao
  public = yes
  valid users = @users
  force group = users
  create mask = 0660
  directory mask = 0771
  writable = yes
  veto files = /*.mp3/*.wma/*.wmv/*.avi/*.mpg/*.wav/*.exe/*.bak/
  case sensitive = no
  preserve case = no



All times are GMT -5. The time now is 07:39 AM.