1c9177f5f3bfdf9587fa96a8695bd92cac2c40f7
[nivanova/samba-autobuild/.git] / packaging / Debian / debian / smb.conf
1 #
2 # Sample configuration file for the Samba suite for Debian GNU/Linux.
3 #
4 # $Id: smb.conf,v 1.2.4.1 2003/06/01 04:30:10 peloy Exp $
5 #
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
10 #
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
14 # may wish to enable
15 #
16 # NOTE: Whenever you modify this file you should run the command
17 # "testparm" to check that you have not many any basic syntactic 
18 # errors. 
19 #
20
21 #======================= Global Settings =======================
22
23 [global]
24
25 # Change this for the workgroup/NT-domain name your Samba server will part of
26    workgroup = DEBIAN_FANS
27
28 # server string is the equivalent of the NT Description field
29    server string = %h server (Samba %v)
30
31 # If you want to automatically load your printer list rather
32 # than setting them up individually then you'll need this
33 ;   load printers = yes
34
35 # lpr(ng) printing. You may wish to override the location of the
36 # printcap file
37 ;   printing = bsd
38 ;   printcap name = /etc/printcap
39
40 # cups printing.  See also the cupsaddsmb(8) manpage
41 ;   printing = cups
42 ;   printcap name = cups
43
44 ;   guest account = nobody
45    invalid users = root
46
47 # This tells Samba to use a separate log file for each machine
48 # that connects
49    log file = /var/log/samba/log.%m
50
51 # Put a capping on the size of the log files (in Kb).
52    max log size = 1000
53
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.
57 ;   syslog only = no
58
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.
62    syslog = 0
63
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.
67 ;   security = user
68
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
73
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
77
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
82
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
88
89 # --- Browser Control Options ---
90
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!
95
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
98 ;   local master = yes
99
100 # OS Level determines the precedence of this server in master browser
101 # elections. The default value should be reasonable
102 ;   os level = 20
103
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
108
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
112
113 # --- End of Browser Control Options ---
114
115 # Windows Internet Name Serving Support Section:
116 # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
117 ;   wins support = no
118
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
122
123 # This will prevent nmbd to search for NetBIOS names through DNS.
124    dns proxy = no
125
126 # What naming service and in what order should we use to resolve host names
127 # to IP addresses
128 ;   name resolve order = lmhosts host wins bcast
129
130 # Name mangling options
131 ;   preserve case = yes
132 ;   short preserve case = yes
133
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
138
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 .
144
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
149
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' &
154
155    obey pam restrictions = yes
156
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
162
163 # Do something sensible when Samba crashes: mail the admin a backtrace
164    panic action = /usr/share/samba/panic-action %d
165
166 #======================= Share Definitions =======================
167
168 [homes]
169    comment = Home Directories
170    browseable = no
171
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.
174    writable = no
175
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.
178    create mask = 0700
179
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
183
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.)
186 ;[netlogon]
187 ;   comment = Network Logon Service
188 ;   path = /home/samba/netlogon
189 ;   guest ok = yes
190 ;   writable = no
191 ;   share modes = no
192
193 [printers]
194    comment = All Printers
195    browseable = no
196    path = /tmp
197    printable = yes
198    public = no
199    writable = no
200    create mode = 0700
201
202 # A sample share for sharing your CD-ROM with others.
203 ;[cdrom]
204 ;   comment = Samba server's CD-ROM
205 ;   writable = no
206 ;   locking = no
207 ;   path = /cdrom
208 ;   public = yes
209
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:
213 #
214 #       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
215 #
216 # The CD-ROM gets unmounted automatically after the connection to the
217 #
218 # If you don't want to use auto-mounting/unmounting make sure the CD
219 #       is mounted on /cdrom
220 #
221 ;   preexec = /bin/mount /cdrom
222 ;   postexec = /bin/umount /cdrom
223