smb.conf/examples/2006

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This is an example from Camilla in January 2006.

There's probably a lot of garbage that doesn't need to be in here, but this setup basically works for anonymous connections from Win9x machines. I don't think the DNS Proxy parameter did anything, though.

Contents

  1. This is the main Samba configuration file. You should read the
  2. smb.conf(5) manual page in order to understand the options listed
  3. here. Samba has a huge number of configurable options (perhaps too
  4. many!) most of which are not shown in this example
  5. NOTE: Whenever you modify this file you should run the command "testparm"
  6. to check that you have not made any basic syntactic errors.
  7. ======================= Global Settings =====================================

[global] message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

  1. WINS server (2005-05-09)
  2. Causes Samba to act as WINS server, which turns network names into IP addresses.

wins support = yes

  1. workgroup = NT-Domain-Name or Workgroup-Name

workgroup = pinecrest

  1. server string is the equivalent of the NT Description field

server string = Camilla II

  1. Opportunistic Locking
  2. NO reduces performance but prevents flaky Windows apps from corrupting files:
  3. YES allows this file to not generate warnings

oplocks = yes

printcap name = /etc/printcap

log file = /var/log/samba/%m.log max log size = 50 smb passwd file = /etc/samba/smbpasswd

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

local master = yes

  1. 2006-01-22 Woozle - xlates NetBIOS names to DNS, maybe?

dns proxy = yes

  1. added 2004-08-28 per phealy suggestion

guest account = sambaguest winbind uid = 16777216-33554431 winbind gid = 16777216-33554431 password server = None guest ok = yes security = SHARE username map = /etc/samba/smbusers

  1. pwh added line above
  2. added 2006-01-13 per Tenebram suggestion

force group = lanusers force create mode = 0060 create mask = 0775

[homes] comment = Home Directories read only = no path = /home

  1. NOTE: If you have a BSD-style print system there is no need to
  2. specifically define each individual printer

[printers] comment = All Printers path = /var/spool/samba

  1. Set public = yes to allow user 'guest account' to print

printable = yes

[Files] comment = File system, read-only path = / available = yes browseable = yes guest ok = no

[Public] path = /usr/netpublic read only = no case sensitive = no msdfs proxy = no map archive = no

  1. create mask = 0774
  2. directory mask = 0775
  3. allows samba to show/include symbolic-linked folders and files:

follow symlinks = yes

  1. allows links to targets not within the shared folder

wide links = yes

  1. allows e.g. ".htaccess" to be seen

hide dot files = no

[STUFF] path = /home/woozle/stuff available = yes read only = no case sensitive = no msdfs proxy = no comment = and things

  1. allows samba to show/include symbolic-linked folders and files:

follow symlinks = yes

  1. allows links to targets not within the shared folder

wide links = yes

  1. allows e.g. ".htaccess" to be seen

hide dot files = no

  1. creates files as writable by group
  2. force create mode = 666