fixed bad link noticed by Martin Schwenke
[Samba.git] / packaging / Mandrake / smb.conf
blob69a886602be9e8e929218c8e58284ea16ff6a172
2 # This is the main Samba configuration file. You should read the
3 # smb.conf(5) manual page in order to understand the options listed
4 # here. Samba has a huge number of configurable options (perhaps too
5 # many!) most of which are not shown in this example
7 # Any line which starts with a ; (semi-colon) or a # (hash) 
8 # is a comment and is ignored. In this example we will use a #
9 # for commentry and a ; for parts of the config file that you
10 # may wish to enable
12 # NOTE: Whenever you modify this file you should run the command "testparm"
13 # to check that you have not made any basic syntactic errors. 
15 #======================= Global Settings =====================================
16 [global]
18 # 1. Server Naming Options:
19 # workgroup = NT-Domain-Name or Workgroup-Name
20    workgroup = MDKGROUP
22 # netbios name is the name you will see in "Network Neighbourhood",
23 # but defaults to your hostname
24 ;  netbios name = <name_of_this_server>
26 # server string is the equivalent of the NT Description field
27    server string = Samba Server %v
29 # 2. Printing Options:
30 # CHANGES TO ENABLE PRINTING ON ALL CUPS PRINTERS IN THE NETWORK
31 # (as cups is now used in linux-mandrake 7.2 by default)
32 # if you want to automatically load your printer list rather
33 # than setting them up individually then you'll need this
34    printcap name = lpstat
35    load printers = yes
37 # It should not be necessary to spell out the print system type unless
38 # yours is non-standard. Currently supported print systems include:
39 # bsd, sysv, plp, lprng, aix, hpux, qnx, cups
40    printing = cups
42 # Samba 2.2 supports the Windows NT-style point-and-print feature. To
43 # use this, you need to be able to upload print drivers to the samba
44 # server. The printer admins (or root) may install drivers onto samba.
45 # Note that this feature uses the print$ share, so you will need to 
46 # enable it below.
47 # This parameter works like domain admin group:
48 # printer admin = @<group> <user>
49 ;   printer admin = @adm
51 # 3. Logging Options:
52 # this tells Samba to use a separate log file for each machine
53 # that connects
54    log file = /var/log/samba/log.%m
56 # Put a capping on the size of the log files (in Kb).
57    max log size = 50
59 # Set the log (verbosity) level (0 <= log level <= 10)
60 ; log level = 3
62 # 4. Security and Domain Membership Options:
63 # This option is important for security. It allows you to restrict
64 # connections to machines which are on your local network. The
65 # following example restricts access to two C class networks and
66 # the "loopback" interface. For more examples of the syntax see
67 # the smb.conf man page. Do not enable this if (tcp/ip) name resolution does
68 # not work for all the hosts in your network.
69 ;   hosts allow = 192.168.1. 192.168.2. 127.
71 # Uncomment this if you want a guest account, you must add this to /etc/passwd
72 # otherwise the user "nobody" is used
73 ;  guest account = pcguest
75 # Security mode. Most people will want user level security. See
76 # security_level.txt for details.
77    security = user
78 # Use password server option only with security = server or security = domain
79 # When using security = domain, you should use password server = *
80 ;   password server = <NT-Server-Name>
82 # Password Level allows matching of _n_ characters of the password for
83 # all combinations of upper and lower case.
84 ;  password level = 8
85 ;  username level = 8
87 # You may wish to use password encryption. Please read
88 # ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
89 # Do not enable this option unless you have read those documents
90 # Encrypted passwords are required for any use of samba in a Windows NT domain
91 # The smbpasswd file is only required by a server doing authentication, thus
92 # members of a domain do not need one.
93   encrypt passwords = yes
94   smb passwd file = /etc/samba/smbpasswd
96 # The following are needed to allow password changing from Windows to
97 # also update the Linux system password.
98 # NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
99 # NOTE2: You do NOT need these to allow workstations to change only
100 #        the encrypted SMB passwords. They allow the Unix password
101 #        to be kept in sync with the SMB password.
102 ;  unix password sync = Yes
103 ;  passwd program = /usr/bin/passwd %u
104 ;  passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
105 ;*passwd:*all*authentication*tokens*updated*successfully*
107 # Unix users can map to different SMB User names
108 ;  username map = /etc/samba/smbusers
110 # Using the following line enables you to customise your configuration
111 # on a per machine basis. The %m gets replaced with the netbios name
112 # of the machine that is connecting
113 ;   include = /etc/samba/smb.conf.%m
115 # Options for using winbind. Winbind allows you to do all account and
116 # authentication from a Windows or samba domain controller, creating
117 # accounts on the fly, and maintaining a mapping of Windows RIDs to unix uid's 
118 # and gid's. winbind uid and winbind gid are the only required parameters.
120 # winbind uid is the range of uid's winbind can use when mapping RIDs to uid's
121 ;  winbind uid = 10000-20000
123 # winbind gid is the range of uid's winbind can use when mapping RIDs to gid's
124 ;  winbind gid = 10000-20000
126 # winbind separator is the character a user must use between their domain
127 # name and username, defaults to "\"
128 ;  winbind separator = +
130 # template homedir determines the home directory for winbind users, with 
131 # %D expanding to their domain name and %U expanding to their username:
132 ;  temaplate homedir = /home/%D/%U
134 # template shell determines the shell users authenticated by winbind get
135 ;  template shell = /bin/bash
137 # 5. Browser Control and Networking Options:
138 # Most people will find that this option gives better performance.
139 # See speed.txt and the manual pages for details
140    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
142 # Configure Samba to use multiple interfaces
143 # If you have multiple network interfaces then you must list them
144 # here. See the man page for details.
145 ;   interfaces = 192.168.12.2/24 192.168.13.2/24 
147 # Configure remote browse list synchronisation here
148 #  request announcement to, or browse list sync from:
149 #       a specific host or from / to a whole subnet (see below)
150 ;   remote browse sync = 192.168.3.25 192.168.5.255
151 # Cause this host to announce itself to local subnets here
152 ;   remote announce = 192.168.1.255 192.168.2.44
154 # set local master to no if you don't want Samba to become a master
155 # browser on your network. Otherwise the normal election rules apply
156 ;   local master = no
158 # OS Level determines the precedence of this server in master browser
159 # elections. The default value should be reasonable
160 ;   os level = 33
162 # Domain Master specifies Samba to be the Domain Master Browser. This
163 # allows Samba to collate browse lists between subnets. Don't use this
164 # if you already have a Windows NT domain controller doing this job
165 ;   domain master = yes 
167 # Preferred Master causes Samba to force a local browser election on startup
168 # and gives it a slightly higher chance of winning the election
169 ;   preferred master = yes
171 # 6. Domain Control Options:
172 # Enable this if you want Samba to be a domain logon server for 
173 # Windows95 workstations or Primary Domain Controller for WinNT and Win2k
174 ;   domain logons = yes
176 # if you enable domain logons then you may want a per-machine or
177 # per user logon script
178 # run a specific logon batch file per workstation (machine)
179 ;   logon script = %m.bat
180 # run a specific logon batch file per username
181 ;   logon script = %U.bat
183 # Where to store roaming profiles for WinNT and Win2k
184 #        %L substitutes for this servers netbios name, %U is username
185 #        You must uncomment the [Profiles] share below
186 ;   logon path = \\%L\Profiles\%U
188 # Where to store roaming profiles for Win9x. Be careful with this as it also
189 # impacts where Win2k finds it's /HOME share
190 ; logon home = \\%L\%U\.profile
192 # The add user script is used by a domain member to add local user accounts
193 # that have been authenticated by the domain controller, or by the domain
194 # controller to add local machine accounts when adding machines to the domain.
195 # The script must work from the command line when replacing the macros,
196 # or the operation will fail. Check that groups exist if forcing a group.
197 # Script for domain controller for adding machines:
198 ; add user script = /usr/sbin/useradd -d /dev/null -g machines -c 'Machine Account' -s /bin/false -M %u
199 # Script for domain member for adding local accounts for authenticated users:
200 ; add user script = /usr/sbin/useradd -s /bin/false %u
202 # Domain groups:
203 # domain admin group is a list of unix users or groups who are made members
204 # of the Domain Admin group
205 ; domain admin group = root @wheel
207 # domain guest groups is a list of unix users or groups who are made members
208 # of the Domain Guests group
209 ; domain guest group = nobody @guest
211 # 7. Name Resolution Options:
212 # All NetBIOS names must be resolved to IP Addresses
213 # 'Name Resolve Order' allows the named resolution mechanism to be specified
214 # the default order is "host lmhosts wins bcast". "host" means use the unix
215 # system gethostbyname() function call that will use either /etc/hosts OR
216 # DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf
217 # and the /etc/resolv.conf file. "host" therefore is system configuration
218 # dependant. This parameter is most often of use to prevent DNS lookups
219 # in order to resolve NetBIOS names to IP Addresses. Use with care!
220 # The example below excludes use of name resolution for machines that are NOT
221 # on the local network segment
222 # - OR - are not deliberately to be known via lmhosts or via WINS.
223 ; name resolve order = wins lmhosts bcast
225 # Windows Internet Name Serving Support Section:
226 # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
227 ;   wins support = yes
229 # WINS Server - Tells the NMBD components of Samba to be a WINS Client
230 #       Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
231 ;   wins server = w.x.y.z
233 # WINS Proxy - Tells Samba to answer name resolution queries on
234 # behalf of a non WINS capable client, for this to work there must be
235 # at least one  WINS Server on the network. The default is NO.
236 ;   wins proxy = yes
238 # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
239 # via DNS nslookups. The built-in default for versions 1.9.17 is yes,
240 # this has been changed in version 1.9.18 to no.
241    dns proxy = no 
243 # 8. File Naming Options:
244 # Case Preservation can be handy - system default is _no_
245 # NOTE: These can be set on a per share basis
246 ;  preserve case = no
247 ;  short preserve case = no
248 # Default case is normally upper case for all DOS files
249 ;  default case = lower
250 # Be very careful with case sensitivity - it can break things!
251 ;  case sensitive = no
253 # Enabling internationalization:
254 # you can match a Windows code page with a UNIX character set.
255 # Windows: 437 (US), 737 (GREEK), 850 (Latin1 - Western European),
256 # 852 (Eastern Eu.), 861 (Icelandic), 932 (Cyrillic - Russian),
257 # 936 (Japanese - Shift-JIS), 936 (Simpl. Chinese), 949 (Korean Hangul),
258 # 950 (Trad. Chin.).
259 # UNIX: ISO8859-1 (Western European), ISO8859-2 (Eastern Eu.),
260 # ISO8859-5 (Russian Cyrillic), KOI8-R (Alt-Russ. Cyril.)
261 # This is an example for french users:
262 ;   client code page = 850
263 ;   character set = ISO8859-1
266 #============================ Share Definitions ==============================
267 [homes]
268    comment = Home Directories
269    browseable = no
270    writable = yes
272 # Un-comment the following and create the netlogon directory for Domain Logons
273 ; [netlogon]
274 ;   comment = Network Logon Service
275 ;   path = /var/lib/samba/netlogon
276 ;   guest ok = yes
277 ;   writable = no
278 ;   share modes = no
280 #Uncomment the following 2 lines if you would like your login scripts to
281 #be created dynamically by ntlogon (check that you have it in the correct
282 #location (the default of the ntlogon rpm available in contribs)
283 ;root preexec = /usr/bin/ntlogon -u %U -g %G -o %a -d /var/lib/samba/netlogon
284 ;root postexec = rm -f /var/lib/samba/netlogon/%U.bat
286 # Un-comment the following to provide a specific roving profile share
287 # the default is to use the user's home directory
288 ;[Profiles]
289 ;    path = /var/lib/samba/profiles
290 ;    browseable = no
291 ;    guest ok = yes
294 # NOTE: If you have a CUPS print system there is no need to 
295 # specifically define each individual printer.
296 # You must configure the samba printers with the appropriate Windows
297 # drivers on your Windows clients. On the Samba server no filtering is
298 # done. If you wish that the server provides the driver and the clients
299 # send PostScript ("Generic PostScript Printer" under Windows), you have
300 # to swap the 'print command' line below with the commented one.
301 [printers]
302    comment = All Printers
303    path = /var/spool/samba
304    browseable = no
305 # to allow user 'guest account' to print.
306    guest ok = yes
307    writable = no
308    printable = yes
309    create mode = 0700
310 # =====================================
311 # print command: see above for details.
312 # =====================================
313    print command = lpr-cups -P %p -o raw %s -r   # using client side printer drivers.
314 ;   print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients).
315    lpq command = lpstat -o %p
316    lprm command = cancel %p-%j
318 # This share is used for Windows NT-style point-and-print support.
319 # To be able to install drivers, you need to be either root, or listed
320 # in the printer admin parameter above. Note that you also need write access
321 # to the directory and share definition to be able to upload the drivers.
322 # For more information on this, please see the Printing Support Section of
323 # /usr/share/doc/samba-<version>/docs/Samba-HOWTO-Collection.pdf 
324 # Please note that this has not yet been tested as packaged here with CUPS.
325 ;[print$]
326 ;   path = /var/lib/samba/printers
327 ;   browseable = yes
328 ;   read only = yes
329 ;   write list = @adm root
331 # This one is useful for people to share files
332 ;[tmp]
333 ;   comment = Temporary file space
334 ;   path = /tmp
335 ;   read only = no
336 ;   public = yes
338 # A publicly accessible directory, but read only, except for people in
339 # the "staff" group
340 ;[public]
341 ;   comment = Public Stuff
342 ;   path = /home/samba/public
343 ;   public = yes
344 ;   writable = no
345 ;   write list = @staff
347 # Other examples. 
349 # A private printer, usable only by Fred. Spool data will be placed in Fred's
350 # home directory. Note that fred must have write access to the spool directory,
351 # wherever it is.
352 ;[fredsprn]
353 ;   comment = Fred's Printer
354 ;   valid users = fred
355 ;   path = /homes/fred
356 ;   printer = freds_printer
357 ;   public = no
358 ;   writable = no
359 ;   printable = yes
361 # A private directory, usable only by Fred. Note that Fred requires write
362 # access to the directory.
363 ;[fredsdir]
364 ;   comment = Fred's Service
365 ;   path = /usr/somewhere/private
366 ;   valid users = fred
367 ;   public = no
368 ;   writable = yes
369 ;   printable = no
371 # a service which has a different directory for each machine that connects
372 # this allows you to tailor configurations to incoming machines. You could
373 # also use the %u option to tailor it by user name.
374 # The %m gets replaced with the machine name that is connecting.
375 ;[pchome]
376 ;  comment = PC Directories
377 ;  path = /usr/pc/%m
378 ;  public = no
379 ;  writable = yes
381 # A publicly accessible directory, read/write to all users. Note that all files
382 # created in the directory by users will be owned by the default user, so
383 # any user with access can delete any other user's files. Obviously this
384 # directory must be writable by the default user. Another user could of course
385 # be specified, in which case all files would be owned by that user instead.
386 ;[public]
387 ;   path = /usr/somewhere/else/public
388 ;   public = yes
389 ;   only guest = yes
390 ;   writable = yes
391 ;   printable = no
393 # The following two entries demonstrate how to share a directory so that two
394 # users can place files there that will be owned by the specific users. In this
395 # setup, the directory should be writable by both users and should have the
396 # sticky bit set on it to prevent abuse. Obviously this could be extended to
397 # as many users as required.
398 ;[myshare]
399 ;   comment = Mary's and Fred's stuff
400 ;   path = /usr/somewhere/shared
401 ;   valid users = mary fred
402 ;   public = no
403 ;   writable = yes
404 ;   printable = no
405 ;   create mask = 0765