1 ; Filename: /etc/samba/smb.conf
2 ; Purpose: configuration file for the samba suite
3 ; Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
4 ; Bug-Reports: see http://grml.org/bugs/
5 ; License: This file is licensed under the GPL v2.
6 ; Latest change: Don Nov 02 21:02:08 CET 2006 [mika]
7 ;###############################################################################
8 ; Please see the manual page for smb.conf for detailed description of
13 # Do something sensible when Samba crashes: mail the admin a backtrace
14 panic action = /usr/share/samba/panic-action %d
18 guest account = nobody
21 ; "security = user" is always a good idea. This will require a Unix account
22 ; in this server for every user accessing the server.
25 ; bind interfaces only = True
26 ; interfaces = eth0 1.2.3.4
28 ; hosts allow = 1.2.3.4/25
30 ; Change this for the workgroup your Samba server will part of
33 server string = %h server (Samba %v)
35 ; If you want Samba to log though syslog only then set the following
36 ; parameter to 'yes'. Please note that logging through syslog in
37 ; Samba is still experimental.
40 ; We want Samba to log a minimum amount of information to syslog. Everything
41 ; should go to /var/log/{smb,nmb} instead. If you want to log through
42 ; syslog you should set the following parameter to something higher.
45 ; This socket options really speed up Samba under Linux, according to my
47 ; Notice by the grml-team: performance might be *better* without the following
48 ; option so it's deactivated by default!
49 ; socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
51 ; Passwords are encrypted by default. This way the latest Windows 95 and NT
52 ; clients can connect to the Samba server with no problems.
53 encrypt passwords = true
54 ; passdb backend = smbpasswd
56 ; It's always a good idea to use a WINS server. If you want this server
57 ; to be the WINS server for your network change the following parameter
58 ; to "yes". Otherwise leave it as "no" and specify your WINS server
59 ; below (note: only one Samba server can be the WINS server).
60 ; Read BROWSING.txt for more details.
63 ; If this server is not the WINS server then specify who is it and uncomment
65 ; wins server = 172.16.0.10
67 ; If we receive WINS server info from DHCP, override the options above.
68 ; include = /etc/samba/dhcp.conf
70 ; Please read BROWSING.txt and set the next four parameters according
71 ; to your network setup. There is no valid default so they are commented
76 ; preferred master = no
78 ; What naming service and in what order should we use to resolve host names
80 name resolve order = lmhosts host wins bcast
82 ; This will prevent nmbd to search for NetBIOS names through DNS.
85 ; Name mangling options
88 short preserve case = yes
90 ; This boolean parameter controlls whether Samba attempts to sync. the Unix
91 ; password with the SMB password when the encrypted SMB password in the
92 ; /etc/samba/smbpasswd file is changed.
93 unix password sync = false
95 ; For Unix password sync. to work on a Debian GNU/Linux system, the following
96 ; parameters must be set (thanks to Augustin Luton
97 ; <aluton@hybrigenics.fr> for sending the correct chat script for
98 ; the passwd program in Debian Potato).
99 passwd program = /usr/bin/passwd %u
100 passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
102 ; The following parameter is useful only if you have the linpopup package
103 ; installed. The samba maintainer and the linpopup maintainer are
104 ; working to ease installation and configuration of linpopup and samba.
105 ; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
107 ; The default maximum log file size is 5 MBytes. That's too big so this
108 ; next parameter sets it to 1 MByte. Currently, Samba rotates log
109 ; files (/var/log/{smb,nmb} in Debian) when these files reach 1000 KBytes.
110 ; A better solution would be to have Samba rotate the log file upon
111 ; reception of a signal, but for now on, we have to live with this.
113 ; debug timestamp = yes
114 obey pam restrictions = yes
116 ; Some defaults for winbind (make sure you're not using the ranges
117 ; for something else.)
118 ; winbind uid = 10000-20000
119 ; winbind gid = 10000-20000
120 ; template shell = /bin/bash
122 ; ISOLATIN1 with euro sign
123 unix charset = iso-8859-15
124 display charset = iso-8859-15
128 comment = smb folder of grml
131 path = /home/grml/smb
135 comment = Home Directories
138 ; By default, the home directories are exported read only. Change next
139 ; parameter to "no" if you want to be able to write to them.
142 ; File creation mask is set to 0700 for security reasons. If you want to
143 ; create files with group=rw permissions, set next parameter to 0775.
146 ; Directory creation mask is set to 0700 for security reasons. If you want to
147 ; create dirs. with group=rw permissions, set next parameter to 0775.
148 directory mask = 0700
151 comment = Printer Drivers
152 path = /var/lib/samba/printers
159 comment = All Printers
167 ; printer admin = grml
176 ; path = /share/outbox
178 ; comment = read-only
181 ; path = /share/inbox
183 ; comment = read-write
186 ; directory mask = 0770
187 ; directory security mask = 0777
188 ; valid users = mika, grml
191 ; path = /share/netlogon/
192 ; comment = netlogon share
195 ; root preexec = /share/netlogon/logon.cmd
197 ; A sample share for sharing your CD-ROM with others.
199 ; comment = Samba server's CD-ROM
205 ; The next two parameters show how to auto-mount a CD-ROM when the
206 ; cdrom share is accesed. For this to work /etc/fstab must contain
207 ; an entry like this:
209 ; /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
211 ; The CD-ROM gets unmounted automatically after the connection to the
213 ; If you don't want to use auto-mounting/unmounting make sure the CD
214 ; is mounted on /cdrom
216 ; preexec = /bin/mount /cdrom
217 ; postexec = /bin/umount /cdrom
219 ;# END OF FILE #################################################################