smb.conf/examples/2006

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< smb.conf‎ | examples
Revision as of 22:50, 25 May 2010 by Woozle (talk | contribs) (moved smb.conf examples to smb.conf/examples/2006: reorganizing; have new working example to add)
Jump to navigation Jump to search

Navigation

computing: Linux: Samba: smb.conf: examples

Example 1: Camilla

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.

# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]
message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

# WINS server (2005-05-09)
# Causes Samba to act as WINS server, which turns network names into IP addresses.
wins support = yes

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = pinecrest
# server string is the equivalent of the NT Description field
server string = Camilla II

# Opportunistic Locking
# NO reduces performance but prevents flaky Windows apps from corrupting files:
# 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

# 2006-01-22 Woozle - xlates NetBIOS names to DNS, maybe?
dns proxy = yes
# 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
# pwh added line above
# 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

# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
# 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
#create mask = 0774
#directory mask = 0775
# allows samba to show/include symbolic-linked folders and files:
follow symlinks = yes
# allows links to targets not within the shared folder
wide links = yes
# 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
# allows samba to show/include symbolic-linked folders and files:
follow symlinks = yes
# allows links to targets not within the shared folder
wide links = yes
# allows e.g. ".htaccess" to be seen
hide dot files = no
# creates files as writable by group
#force create mode = 666