2
# Sample configuration file for the Samba suite for Debian GNU/Linux.
5
# This is the main Samba configuration file. You should read the
6
# smb.conf(5) manual page in order to understand the options listed
7
# here. Samba has a huge number of configurable options most of which
8
# are not shown in this example
10
# Any line which starts with a ; (semi-colon) or a # (hash)
11
# is a comment and is ignored. In this example we will use a #
12
# for commentary and a ; for parts of the config file that you
15
# NOTE: Whenever you modify this file you should run the command
16
# "testparm" to check that you have not many any basic syntactic
20
#======================= Global Settings =======================
24
## Browsing/Identification ###
26
# Change this to the workgroup/NT-domain name your Samba server will part of
29
# server string is the equivalent of the NT Description field
30
server string = %h server (Samba, Ubuntu)
32
# Windows Internet Name Serving Support Section:
33
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
36
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
37
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
38
; wins server = w.x.y.z
40
# This will prevent nmbd to search for NetBIOS names through DNS.
43
# What naming service and in what order should we use to resolve host names
45
; name resolve order = lmhosts host wins bcast
48
#### Debugging/Accounting ####
50
# This tells Samba to use a separate log file for each machine
52
log file = /var/log/samba/log.%m
54
# Put a capping on the size of the log files (in Kb).
57
# If you want Samba to only log through syslog then set the following
61
# We want Samba to log a minimum amount of information to syslog. Everything
62
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
63
# through syslog you should set the following parameter to something higher.
66
# Do something sensible when Samba crashes: mail the admin a backtrace
67
panic action = /usr/share/samba/panic-action %d
70
####### Authentication #######
72
# "security = user" is always a good idea. This will require a Unix account
73
# in this server for every user accessing the server. See
74
# /usr/share/doc/samba-doc/htmldocs/ServerType.html in the samba-doc
75
# package for details.
77
username map = /etc/samba/smbusers
79
# You may wish to use password encryption. See the section on
80
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
81
encrypt passwords = true
83
# If you are using encrypted passwords, Samba will need to know what
84
# password database type you are using.
85
passdb backend = tdbsam guest
87
obey pam restrictions = yes
89
; guest account = nobody
92
# This boolean parameter controls whether Samba attempts to sync the Unix
93
# password with the SMB password when the encrypted SMB password in the
95
; unix password sync = no
97
# For Unix password sync to work on a Debian GNU/Linux system, the following
98
# parameters must be set (thanks to Augustin Luton <aluton@hybrigenics.fr> for
99
# sending the correct chat script for the passwd program in Debian Potato).
100
passwd program = /usr/bin/passwd %u
101
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
103
# This boolean controls whether PAM will be used for password changes
104
# when requested by an SMB client instead of the program listed in
105
# 'passwd program'. The default is 'no'.
106
; pam password change = no
109
########## Printing ##########
111
# If you want to automatically load your printer list rather
112
# than setting them up individually then you'll need this
113
; load printers = yes
115
# lpr(ng) printing. You may wish to override the location of the
118
; printcap name = /etc/printcap
120
# CUPS printing. See also the cupsaddsmb(8) manpage in the
121
# cupsys-client package.
123
; printcap name = cups
125
# When using [print$], root is implicitly a 'printer admin', but you can
126
# also give this right to other users to add drivers and set printer
128
; printer admin = @ntadmin
131
######## File sharing ########
133
# Name mangling options
134
; preserve case = yes
135
; short preserve case = yes
138
############ Misc ############
140
# Using the following line enables you to customise your configuration
141
# on a per machine basis. The %m gets replaced with the netbios name
142
# of the machine that is connecting
143
; include = /home/samba/etc/smb.conf.%m
145
# Most people will find that this option gives better performance.
146
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/speed.html
148
# You may want to add the following on a Linux system:
149
# SO_RCVBUF=8192 SO_SNDBUF=8192
150
socket options = TCP_NODELAY
152
# The following parameter is useful only if you have the linpopup package
153
# installed. The samba maintainer and the linpopup maintainer are
154
# working to ease installation and configuration of linpopup and samba.
155
; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
157
# Domain Master specifies Samba to be the Domain Master Browser. If this
158
# machine will be configured as a BDC (a secondary logon server), you
159
# must set this to 'no'; otherwise, the default behavior is recommended.
160
; domain master = auto
162
# Some defaults for winbind (make sure you're not using the ranges
163
# for something else.)
164
; idmap uid = 10000-20000
165
; idmap gid = 10000-20000
166
; template shell = /bin/bash
168
#======================= Share Definitions =======================
171
comment = Home Directories
174
# By default, the home directories are exported read-only. Change next
175
# parameter to 'yes' if you want to be able to write to them.
178
# File creation mask is set to 0700 for security reasons. If you want to
179
# create files with group=rw permissions, set next parameter to 0775.
182
# Directory creation mask is set to 0700 for security reasons. If you want to
183
# create dirs. with group=rw permissions, set next parameter to 0775.
184
directory mask = 0700
186
# Un-comment the following and create the netlogon directory for Domain Logons
187
# (you need to configure Samba to act as a domain controller too.)
189
; comment = Network Logon Service
190
; path = /home/samba/netlogon
196
comment = All Printers
204
# Windows clients look for this share name as a source of downloadable
207
comment = Printer Drivers
208
path = /var/lib/samba/printers
212
# Uncomment to allow remote administration of Windows print drivers.
213
# Replace 'ntadmin' with the name of the group your admin users are
215
; write list = root, @ntadmin
217
# A sample share for sharing your CD-ROM with others.
219
; comment = Samba server's CD-ROM
225
# The next two parameters show how to auto-mount a CD-ROM when the
226
# cdrom share is accesed. For this to work /etc/fstab must contain
227
# an entry like this:
229
# /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
231
# The CD-ROM gets unmounted automatically after the connection to the
233
# If you don't want to use auto-mounting/unmounting make sure the CD
234
# is mounted on /cdrom
236
; preexec = /bin/mount /cdrom
237
; postexec = /bin/umount /cdrom
240
comment = Group Folder
244
valid users = system_username1 system_username2
246
directory mask = 0700
248
force group = nogroup