Subversion Repositories configs

Rev

Rev 182 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
# smb.conf(5) manual page in order to understand the options listed
2
# here. Samba has a huge number of configurable options (perhaps too
3
# many!) most of which are not shown in this example
4
#
5
# For a step to step guide on installing, configuring and using samba,
6
# read the Samba-HOWTO-Collection. This may be obtained from:
7
#  http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
8
#
9
# Many working examples of smb.conf files can be found in the
10
# Samba-Guide which is generated daily and can be downloaded from:
11
#  http://www.samba.org/samba/docs/Samba-Guide.pdf
12
#
13
# Any line which starts with a ; (semi-colon) or a # (hash)
14
# is a comment and is ignored. In this example we will use a #
15
# for commentry and a ; for parts of the config file that you
16
# may wish to enable
17
#
18
# NOTE: Whenever you modify this file you should run the command "testparm"
19
# to check that you have not made any basic syntactic errors.
20
#
21
#---------------
22
# SELINUX NOTES:
23
#
24
# If you want to use the useradd/groupadd family of binaries please run:
25
# setsebool -P samba_domain_controller on
26
#
27
# If you want to share home directories via samba please run:
28
# setsebool -P samba_enable_home_dirs on
29
#
30
# If you create a new directory you want to share you should mark it as
31
# "samba_share_t" so that selinux will let you write into it.
32
# Make sure not to do that on system directories as they may already have
33
# been marked with othe SELinux labels.
34
#
35
# Use ls -ldZ /path to see which context a directory has
36
#
37
# Set labels only on directories you created!
38
# To set a label use the following: chcon -t samba_share_t /path
39
#
40
# If you need to share a system created directory you can use one of the
41
# following (read-only/read-write):
42
# setsebool -P samba_export_all_ro on
43
# or
44
# setsebool -P samba_export_all_rw on
45
#
46
# If you want to run scripts (preexec/root prexec/print command/...) please
47
# put them into the /var/lib/samba/scripts directory so that smbd will be
48
# allowed to run them.
49
# Make sure you COPY them and not MOVE them so that the right SELinux context
50
# is applied, to check all is ok use restorecon -R -v /var/lib/samba/scripts
51
#
52
#--------------
53
#
54
#======================= Global Settings =====================================
55
 
56
[global]
57
 
58
# ----------------------- Network Related Options -------------------------
59
#
60
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
61
#
62
# server string is the equivalent of the NT Description field
63
#
64
# netbios name can be used to specify a server name not tied to the hostname
65
#
66
# Interfaces lets you configure Samba to use multiple interfaces
67
# If you have multiple network interfaces then you can list the ones
68
# you want to listen on (never omit localhost)
69
#
70
# Hosts Allow/Hosts Deny lets you restrict who can connect, and you can
71
# specifiy it as a per share option as well
72
#
73
workgroup = UJSOFTWARE
74
server string = Samba Server Version %v
75
realm = ujsoftware.com
76
machine password timeout = 0
77
 
78
;	netbios name = MYSERVER
79
 
80
;	interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
81
;	hosts allow = 127. 192.168.12. 192.168.13.
82
 
83
# --------------------------- Logging Options -----------------------------
84
#
85
# Log File let you specify where to put logs and how to split them up.
86
#
87
# Max Log Size let you specify the max size log files should reach
88
 
89
# logs split per machine
90
log file = /var/log/samba/log.%m
91
# max 50KB per log file, then rotate
92
max log size = 50
93
 
94
# ----------------------- Standalone Server Options ------------------------
95
#
96
# Scurity can be set to user, share(deprecated) or server(deprecated)
97
#
98
# Backend to store user information in. New installations should
99
# use either tdbsam or ldapsam. smbpasswd is available for backwards
100
# compatibility. tdbsam requires no further configuration.
101
 
102
security = ADS
103
 
104
 
105
# ----------------------- Domain Members Options ------------------------
106
#
107
# Security must be set to domain or ads
108
#
109
# Use the realm option only with security = ads
110
# Specifies the Active Directory realm the host is part of
111
#
112
# Backend to store user information in. New installations should
113
# use either tdbsam or ldapsam. smbpasswd is available for backwards
114
# compatibility. tdbsam requires no further configuration.
115
#
116
# Use password server option only with security = server or if you can't
117
# use the DNS to locate Domain Controllers
118
# The argument list may include:
119
#   password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
120
# or to auto-locate the domain controller/s
121
#password server = 10.192.25.252
122
 
123
 
124
;	security = domain
125
;	passdb backend = tdbsam
126
;	realm = MY_REALM
127
 
128
;	password server = <NT-Server-Name>
129
 
130
# ----------------------- Domain Controller Options ------------------------
131
#
132
# Security must be set to user for domain controllers
133
#
134
# Backend to store user information in. New installations should
135
# use either tdbsam or ldapsam. smbpasswd is available for backwards
136
# compatibility. tdbsam requires no further configuration.
137
#
138
# Domain Master specifies Samba to be the Domain Master Browser. This
139
# allows Samba to collate browse lists between subnets. Don't use this
140
# if you already have a Windows NT domain controller doing this job
141
#
142
# Domain Logons let Samba be a domain logon server for Windows workstations.
143
#
144
# Logon Scrpit let yuou specify a script to be run at login time on the client
145
# You need to provide it in a share called NETLOGON
146
#
147
# Logon Path let you specify where user profiles are stored (UNC path)
148
#
149
# Various scripts can be used on a domain controller or stand-alone
150
# machine to add or delete corresponding unix accounts
151
#
152
;	security = user
153
;	passdb backend = tdbsam
154
 
155
;	domain master = yes
156
;	domain logons = yes
157
 
158
# the login script name depends on the machine name
159
;	logon script = %m.bat
160
# the login script name depends on the unix user used
161
;	logon script = %u.bat
162
;	logon path = \\%L\Profiles\%u
163
# disables profiles support by specifing an empty path
164
;	logon path =
165
 
166
;	add user script = /usr/sbin/useradd "%u" -n -g users
167
;	add group script = /usr/sbin/groupadd "%g"
168
;	add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
169
;	delete user script = /usr/sbin/userdel "%u"
170
;	delete user from group script = /usr/sbin/userdel "%u" "%g"
171
;	delete group script = /usr/sbin/groupdel "%g"
172
 
173
 
174
# ----------------------- Browser Control Options ----------------------------
175
#
176
# set local master to no if you don't want Samba to become a master
177
# browser on your network. Otherwise the normal election rules apply
178
#
179
# OS Level determines the precedence of this server in master browser
180
# elections. The default value should be reasonable
181
#
182
# Preferred Master causes Samba to force a local browser election on startup
183
# and gives it a slightly higher chance of winning the election
184
;	local master = no
185
;	os level = 33
186
;	preferred master = yes
187
 
188
#----------------------------- Name Resolution -------------------------------
189
# Windows Internet Name Serving Support Section:
190
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
191
#
192
# - WINS Support: Tells the NMBD component of Samba to enable it's WINS Server
193
#
194
# - WINS Server: Tells the NMBD components of Samba to be a WINS Client
195
#
196
# - WINS Proxy: Tells Samba to answer name resolution queries on
197
#   behalf of a non WINS capable client, for this to work there must be
198
#   at least one	WINS Server on the network. The default is NO.
199
#
200
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
201
# via DNS nslookups.
202
 
203
;	wins support = yes
204
;	wins server = w.x.y.z
205
;	wins proxy = yes
206
 
207
;	dns proxy = yes
208
 
209
# --------------------------- Printing Options -----------------------------
210
#
211
# Load Printers let you load automatically the list of printers rather
212
# than setting them up individually
213
#
214
# Cups Options let you pass the cups libs custom options, setting it to raw
215
# for example will let you use drivers on your Windows clients
216
#
217
# Printcap Name let you specify an alternative printcap file
218
#
219
# You can choose a non default printing system using the Printing option
220
 
221
load printers = yes
222
cups options = raw
223
restrict anonymous = no
224
;domain master = no
225
logon home = \\%25N\%25U
226
logon path = \\%25N\%25U\profile
227
 
228
;	printcap name = /etc/printcap
229
#obtain list of printers automatically on SystemV
230
;	printcap name = lpstat
231
;	printing = cups
232
 
233
# --------------------------- Filesystem Options ---------------------------
234
#
235
# The following options can be uncommented if the filesystem supports
236
# Extended Attributes and they are enabled (usually by the mount option
237
# user_xattr). Thess options will let the admin store the DOS attributes
238
# in an EA and make samba not mess with the permission bits.
239
#
240
# Note: these options can also be set just per share, setting them in global
241
# makes them the default for all shares
242
 
243
;	map archive = no
244
;	map hidden = no
245
;	map read only = no
246
;	map system = no
247
;	store dos attributes = yes
248
 
249
 
250
#============================ Share Definitions ==============================
251
 
252
[homes]
253
comment = Home Directories
254
browseable = no
255
read only = no
256
;	valid users = %S
257
;	valid users = MYDOMAIN\%S
258
 
259
[printers]
260
comment = All Printers
261
path = /var/spool/samba
262
browseable = no
263
printable = yes
264
 
265
[uwe]
266
   comment = uwe
161 - 267
   path = /data4/uwe
4 - 268
   valid users = uwe
269
   read only = No
270
 
271
[andrea]
272
   comment = andrea
273
   path = /data/andrea
179 - 274
   valid users = andrea, uwe
4 - 275
   read only = No
276
 
277
[shared]
278
   comment = Shared Area
182 - 279
   path = /data2/shared
165 - 280
   valid users = uwe, andrea, kevin, michelle
4 - 281
   read only = No
282
   create mask = 0770
283
   directory mask = 770
284
   force create mode = 0770
285
   force group = users
286
 
287
[dvds]
288
   comment = DVDs
289
   path = /data3/Movies/dvd
165 - 290
   valid users = uwe, andrea, kevin, michelle
4 - 291
   read only = No
292
   create mask = 0770
293
   directory mask = 770
294
   force create mode = 0770
295
   force group = users
132 - 296
 
143 - 297
[HTML]
298
   comment = Homeserver HTML
299
   path = /var/www
169 - 300
   valid users = uwe
143 - 301
   read only = No
302
   create mask = 0770
303
   directory mask = 770
304
   force create mode = 0770
305
   force user = apache
306
   force group = apache
169 - 307
 
308
[music]
309
   comment = Music Library
310
   path = /data5/music
311
   valid users = uwe, andrea, kevin, michelle
312
   read only = No
313
   create mask = 0770
314
   directory mask = 770
315
   force create mode = 0770
316
   force group = users
317