3
3
# here. Samba has a huge number of configurable options (perhaps too
4
4
# many!) most of which are not shown in this example
6
# For a step to step guide on installing, configuring and using samba,
7
# read the Samba-HOWTO-Collection. This may be obtained from:
8
# http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
10
# Many working examples of smb.conf files can be found in the
11
# Samba-Guide which is generated daily and can be downloaded from:
12
# http://www.samba.org/samba/docs/Samba-Guide.pdf
6
14
# Any line which starts with a ; (semi-colon) or a # (hash)
7
15
# is a comment and is ignored. In this example we will use a #
8
16
# for commentry and a ; for parts of the config file that you
14
22
#======================= Global Settings =====================================
17
# workgroup = NT-Domain-Name or Workgroup-Name
25
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
18
26
workgroup = MYGROUP
20
28
# server string is the equivalent of the NT Description field
21
29
server string = Samba Server
31
# Security mode. Defines in which mode Samba will operate. Possible
32
# values are share, user, server, domain and ads. Most people will want
33
# user level security. See the Samba-HOWTO-Collection for details.
23
36
# This option is important for security. It allows you to restrict
24
37
# connections to machines which are on your local network. The
25
38
# following example restricts access to two C class networks and
27
40
# the smb.conf man page
28
41
; hosts allow = 192.168.1. 192.168.2. 127.
30
# if you want to automatically load your printer list rather
43
# If you want to automatically load your printer list rather
31
44
# than setting them up individually then you'll need this
32
printcap name = /etc/printcap
33
45
load printers = yes
35
# It should not be necessary to spell out the print system type unless
36
# yours is non-standard. Currently supported print systems include:
37
# bsd, sysv, plp, lprng, aix, hpux, qnx
47
# you may wish to override the location of the printcap file
48
; printcap name = /etc/printcap
50
# on SystemV system setting printcap name to lpstat should allow
51
# you to automatically obtain a printer list from the SystemV spool
53
; printcap name = lpstat
55
# It should not be necessary to specify the print system type unless
56
# it is non-standard. Currently supported print systems include:
57
# bsd, cups, sysv, plp, lprng, aix, hpux, qnx
40
60
# Uncomment this if you want a guest account, you must add this to /etc/passwd
41
61
# otherwise the user "nobody" is used
44
64
# this tells Samba to use a separate log file for each machine
46
# log file = /var/log/samba/log.%m
47
# all log information in one file
48
log file = /var/log/samba/smbd.log
66
log file = /usr/local/samba/var/log.%m
50
68
# Put a capping on the size of the log files (in Kb).
53
# Security mode. Most people will want user level security. See
54
# security_level.txt for details.
56
71
# Use password server option only with security = server
72
# The argument list may include:
73
# password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
74
# or to auto-locate the domain controller/s
57
76
; password server = <NT-Server-Name>
59
# Password Level allows matching of _n_ characters of the password for
60
# all combinations of upper and lower case.
64
# You may wish to use password encryption. Please read
65
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
66
# Do not enable this option unless you have read those documents
67
; encrypt passwords = yes
68
; smb passwd file = /etc/samba/smbpasswd
70
# The following are needed to allow password changing from Windows to
71
# update the Linux system password also.
72
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
73
# NOTE2: You do NOT need these to allow workstations to change only
74
# the encrypted SMB passwords. They allow the Unix password
75
# to be kept in sync with the SMB password.
76
; unix password sync = Yes
77
; passwd program = /usr/bin/passwd %u
78
; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
80
# Unix users can map to different SMB User names
81
; username map = /etc/samba/smbusers
78
# Use the realm option only with security = ads
79
# Specifies the Active Directory realm the host is part of
82
# Backend to store user information in. New installations should
83
# use either tdbsam or ldapsam. smbpasswd is available for backwards
84
# compatibility. tdbsam requires no further configuration.
85
; passdb backend = tdbsam
83
87
# Using the following line enables you to customise your configuration
84
88
# on a per machine basis. The %m gets replaced with the netbios name
85
# of the machine that is connecting
86
; include = /etc/samba/smb.conf.%m
88
# Most people will find that this option gives better performance.
89
# See speed.txt and the manual pages for details
90
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
89
# of the machine that is connecting.
90
# Note: Consider carefully the location in the configuration file of
91
# this line. The included file is read at that point.
92
; include = /usr/local/samba/lib/smb.conf.%m
92
94
# Configure Samba to use multiple interfaces
93
95
# If you have multiple network interfaces then you must list them
94
96
# here. See the man page for details.
95
97
; interfaces = 192.168.12.2/24 192.168.13.2/24
97
# Configure remote browse list synchronisation here
98
# request announcement to, or browse list sync from:
99
# a specific host or from / to a whole subnet (see below)
100
; remote browse sync = 192.168.3.25 192.168.5.255
101
# Cause this host to announce itself to local subnets here
102
; remote announce = 192.168.1.255 192.168.2.44
104
99
# Browser Control Options:
105
100
# set local master to no if you don't want Samba to become a master
106
101
# browser on your network. Otherwise the normal election rules apply
135
130
# You must uncomment the [Profiles] share below
136
131
; logon path = \\%L\Profiles\%U
138
# All NetBIOS names must be resolved to IP Addresses
139
# 'Name Resolve Order' allows the named resolution mechanism to be specified
140
# the default order is "host lmhosts wins bcast". "host" means use the unix
141
# system gethostbyname() function call that will use either /etc/hosts OR
142
# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf
143
# and the /etc/resolv.conf file. "host" therefore is system configuration
144
# dependant. This parameter is most often of use to prevent DNS lookups
145
# in order to resolve NetBIOS names to IP Addresses. Use with care!
146
# The example below excludes use of name resolution for machines that are NOT
147
# on the local network segment
148
# - OR - are not deliberately to be known via lmhosts or via WINS.
149
; name resolve order = wins lmhosts bcast
151
133
# Windows Internet Name Serving Support Section:
152
134
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
153
135
; wins support = yes
162
144
; wins proxy = yes
164
146
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
165
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
166
# this has been changed in version 1.9.18 to no.
147
# via DNS nslookups. The default is NO.
169
# Case Preservation can be handy - system default is _no_
170
# NOTE: These can be set on a per share basis
172
; short preserve case = no
173
# Default case is normally upper case for all DOS files
174
; default case = lower
175
# Be very careful with case sensitivity - it can break things!
176
; case sensitive = no
150
# These scripts are used on a domain controller or stand-alone
151
# machine to add or delete corresponding unix accounts
152
; add user script = /usr/sbin/useradd %u
153
; add group script = /usr/sbin/groupadd %g
154
; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
155
; delete user script = /usr/sbin/userdel %u
156
; delete user from group script = /usr/sbin/deluser %u %g
157
; delete group script = /usr/sbin/groupdel %g
178
160
#============================ Share Definitions ==============================