2 # Sample configuration file for the Samba suite for Debian GNU/Linux.
4 # $Id: smb.conf,v 1.2.4.1 2003/06/01 04:30:10 peloy Exp $
6 # This is the main Samba configuration file. You should read the
7 # smb.conf(5) manual page in order to understand the options listed
8 # here. Samba has a huge number of configurable options most of which
9 # are not shown in this example
11 # Any line which starts with a ; (semi-colon) or a # (hash)
12 # is a comment and is ignored. In this example we will use a #
13 # for commentary and a ; for parts of the config file that you
16 # NOTE: Whenever you modify this file you should run the command
17 # "testparm" to check that you have not many any basic syntactic
21 #======================= Global Settings =======================
25 # Change this for the workgroup/NT-domain name your Samba server will part of
26 workgroup = DEBIAN_FANS
28 # server string is the equivalent of the NT Description field
29 server string = %h server (Samba %v)
31 # If you want to automatically load your printer list rather
32 # than setting them up individually then you'll need this
35 # lpr(ng) printing. You may wish to override the location of the
38 ; printcap name = /etc/printcap
40 # cups printing. See also the cupsaddsmb(8) manpage
42 ; printcap name = cups
44 ; guest account = nobody
47 # This tells Samba to use a separate log file for each machine
49 log file = /var/log/samba/log.%m
51 # Put a capping on the size of the log files (in Kb).
54 # If you want Samba to log though syslog only then set the following
55 # parameter to 'yes'. Please note that logging through syslog in
56 # Samba is still experimental.
59 # We want Samba to log a minimum amount of information to syslog. Everything
60 # should go to /var/log/samba/log.{smb,nmb} instead. If you want to log
61 # through syslog you should set the following parameter to something higher.
64 # "security = user" is always a good idea. This will require a Unix account
65 # in this server for every user accessing the server. See
66 # security_level.txt for details.
69 # You may wish to use password encryption. Please read ENCRYPTION.html,
70 # Win95.txt and WinNT.txt in the Samba documentation. Do not enable this
71 # option unless you have read those documents
72 encrypt passwords = no
74 # If you are using encrypted passwords, Samba will need to know what
75 # password database type you are using.
76 passdb backend = tdbsam guest
78 # Using the following line enables you to customise your configuration
79 # on a per machine basis. The %m gets replaced with the netbios name
80 # of the machine that is connecting
81 ; include = /home/samba/etc/smb.conf.%m
83 # Most people will find that this option gives better performance.
84 # See speed.txt and the manual pages for details
85 # You may want to add the following on a Linux system:
86 # SO_RCVBUF=8192 SO_SNDBUF=8192
87 socket options = TCP_NODELAY
89 # --- Browser Control Options ---
91 # Please _read_ BROWSING.txt and set the next four parameters according
92 # to your network setup. The defaults are specified below (commented
93 # out.) It's important that you read BROWSING.txt so you don't break
94 # browsing in your network!
96 # set local master to no if you don't want Samba to become a master
97 # browser on your network. Otherwise the normal election rules apply
100 # OS Level determines the precedence of this server in master browser
101 # elections. The default value should be reasonable
104 # Domain Master specifies Samba to be the Domain Master Browser. This
105 # allows Samba to collate browse lists between subnets. Don't use this
106 # if you already have a Windows NT domain controller doing this job
107 ; domain master = auto
109 # Preferred Master causes Samba to force a local browser election on startup
110 # and gives it a slightly higher chance of winning the election
111 ; preferred master = auto
113 # --- End of Browser Control Options ---
115 # Windows Internet Name Serving Support Section:
116 # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
119 # WINS Server - Tells the NMBD components of Samba to be a WINS Client
120 # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
121 ; wins server = w.x.y.z
123 # This will prevent nmbd to search for NetBIOS names through DNS.
126 # What naming service and in what order should we use to resolve host names
128 ; name resolve order = lmhosts host wins bcast
130 # Name mangling options
131 ; preserve case = yes
132 ; short preserve case = yes
134 # This boolean parameter controlls whether Samba attempts to sync. the Unix
135 # password with the SMB password when the encrypted SMB password in the
136 # /etc/samba/smbpasswd file is changed.
137 ; unix password sync = false
139 # For Unix password sync. to work on a Debian GNU/Linux system, the following
140 # parameters must be set (thanks to Augustin Luton <aluton@hybrigenics.fr> for
141 # sending the correct chat script for the passwd program in Debian Potato).
142 passwd program = /usr/bin/passwd %u
143 passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
145 # This boolean controls whether PAM will be used for password changes
146 # when requested by an SMB client instead of the program listed in
147 # 'passwd program'. The default is 'no'.
148 ; pam password change = no
150 # The following parameter is useful only if you have the linpopup package
151 # installed. The samba maintainer and the linpopup maintainer are
152 # working to ease installation and configuration of linpopup and samba.
153 ; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
155 obey pam restrictions = yes
157 # Some defaults for winbind (make sure you're not using the ranges
158 # for something else.)
159 ; winbind uid = 10000-20000
160 ; winbind gid = 10000-20000
161 ; template shell = /bin/bash
163 # Do something sensible when Samba crashes: mail the admin a backtrace
164 panic action = /usr/share/samba/panic-action %d
166 #======================= Share Definitions =======================
169 comment = Home Directories
172 # By default, the home directories are exported read-only. Change next
173 # parameter to 'yes' if you want to be able to write to them.
176 # File creation mask is set to 0700 for security reasons. If you want to
177 # create files with group=rw permissions, set next parameter to 0775.
180 # Directory creation mask is set to 0700 for security reasons. If you want to
181 # create dirs. with group=rw permissions, set next parameter to 0775.
182 directory mask = 0700
184 # Un-comment the following and create the netlogon directory for Domain Logons
185 # (you need to configure Samba to act as a domain controller too.)
187 ; comment = Network Logon Service
188 ; path = /home/samba/netlogon
194 comment = All Printers
202 # A sample share for sharing your CD-ROM with others.
204 ; comment = Samba server's CD-ROM
210 # The next two parameters show how to auto-mount a CD-ROM when the
211 # cdrom share is accesed. For this to work /etc/fstab must contain
212 # an entry like this:
214 # /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
216 # The CD-ROM gets unmounted automatically after the connection to the
218 # If you don't want to use auto-mounting/unmounting make sure the CD
219 # is mounted on /cdrom
221 ; preexec = /bin/mount /cdrom
222 ; postexec = /bin/umount /cdrom