6165deb5f7c0554b5b8189235988a0c7b762e840
[grml-etc.git] / etc / samba / smb.conf
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
9 ;       every parameter.
10
11 [global]
12
13 # Do something sensible when Samba crashes: mail the admin a backtrace
14    panic action = /usr/share/samba/panic-action %d
15    printing = cups
16    printcap name = cups
17    load printers = yes
18    guest account = nobody
19    invalid users = root
20
21 ; "security = user" is always a good idea. This will require a Unix account
22 ;       in this server for every user accessing the server.
23    security = user
24
25 ;  bind interfaces only = True
26 ;  interfaces = eth0 1.2.3.4
27 ;  hosts deny = ALL
28 ;  hosts allow = 1.2.3.4/25
29
30 ; Change this for the workgroup your Samba server will part of
31    workgroup = GRML
32
33    server string = %h server (Samba %v)
34
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.
38    syslog only = no
39
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.
43    syslog = 0;
44
45 ; This socket options really speed up Samba under Linux, according to my
46 ;       own tests.
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
50
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
55
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.
61    wins support = no
62
63 ; If this server is not the WINS server then specify who is it and uncomment
64 ;       next line.
65 ;   wins server = 172.16.0.10
66
67 ; If we receive WINS server info from DHCP, override the options above. 
68 ;   include = /etc/samba/dhcp.conf
69
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
72 ;       out.
73 ;   os level = 0
74 ;   domain master = no
75 ;   local master = no
76 ;   preferred master = no
77
78 ; What naming service and in what order should we use to resolve host names
79 ;       to IP addresses
80    name resolve order = lmhosts host wins bcast
81
82 ; This will prevent nmbd to search for NetBIOS names through DNS.
83    dns proxy = no
84
85 ; Name mangling options
86
87    preserve case = yes
88    short preserve case = yes
89
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
94
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 .
101
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' &
106
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.
112    max log size = 1000
113 ;  debug timestamp = yes
114    obey pam restrictions = yes
115
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
121
122 ; ISOLATIN1 with euro sign
123  unix charset = iso-8859-15
124  display charset = iso-8859-15
125  dos charset = 850
126
127 [public]
128    comment = smb folder of grml
129    writable = no
130    locking = no
131    path = /home/grml/smb
132    public = yes
133
134 [homes]
135    comment = Home Directories
136    browseable = no
137
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.
140    read only = yes
141
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.
144    create mask = 0700
145
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
149
150 [print$]
151    comment = Printer Drivers
152    path = /var/lib/samba/printers
153    browseable = yes
154    guest ok = no
155    read only = yes
156    write list = grml
157
158 [printers]
159    comment = All Printers
160    browseable = no
161    path = /tmp
162    printable = yes
163    public = no
164    writable = no
165    create mode = 0700
166 ;  guest ok = Yes
167 ;  printer admin = grml
168
169 ;[homes]
170 ;  valid users = %S
171 ;  users = %S
172 ;  writeable = yes
173 ;  browseable = no
174
175 ;[outbox]
176 ;  path = /share/outbox
177 ;  writeable = yes
178 ;  comment = read-only
179
180 ;[inbox]
181 ;  path = /share/inbox
182 ;  writeable = yes
183 ;  comment = read-write
184 ;  profile acls = Yes
185 ;  create mask = 0660
186 ;  directory mask = 0770
187 ;  directory security mask = 0777
188 ;  valid users = mika, grml
189
190 ;[netlogon]
191 ;  path = /share/netlogon/
192 ;  comment = netlogon share
193 ;  read only = yes
194 ;  locking = no
195 ;  root preexec = /share/netlogon/logon.cmd
196
197 ; A sample share for sharing your CD-ROM with others.
198 ;[cdrom]
199 ;   comment = Samba server's CD-ROM
200 ;   writable = no
201 ;   locking = no
202 ;   path = /cdrom
203 ;   public = yes
204 ;
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:
208 ;
209 ;       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
210 ;
211 ; The CD-ROM gets unmounted automatically after the connection to the
212 ;
213 ; If you don't want to use auto-mounting/unmounting make sure the CD
214 ;       is mounted on /cdrom
215 ;
216 ;   preexec = /bin/mount /cdrom
217 ;   postexec = /bin/umount /cdrom
218
219 ;# END OF FILE #################################################################