More references to samba.canberra
[kai/samba.git] / examples / smb.conf.default
1 ; The global setting for a default install
2 ; Copyright(C) John H Terpstra - 1997
3 ;======================= Global Settings =====================================
4 [global]
5
6 ; workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4
7    workgroup = WORKGROUP
8
9 ; comment is the equivalent of the NT Description field
10    comment = Samba Server
11
12 ; printing = BSD or SYSV or AIX, etc.
13    printing = bsd
14    printcap name = /etc/printcap
15    load printers = yes
16
17 ; Uncomment this if you want a guest account, you must add this to /etc/passwd
18 ;  guest account = pcguest
19    log file = /usr/local/samba/var/log.%m
20
21 ; Put a capping on the size of the log files (in Kb)
22    max log size = 50
23
24 ; Options for handling file name case sensitivity and / or preservation
25 ; Case Sensitivity breaks many WfW and Win95 apps
26 ;   case sensitive = yes
27     short preserve case = yes
28     preserve case = yes
29
30 ; Security and file integrity related options
31    lock directory = /usr/local/samba/var/locks
32    locking = yes
33 ; Strict locking is available for paranoid locking situations only
34 ;        enabling this severely degrades read / write performance.
35 ;   strict locking = yes
36 ;   fake oplocks = yes
37    share modes = yes
38
39 ; Security modes: USER uses Unix username/passwd, SHARE uses WfW type passwords
40 ;        SERVER uses an other SMB server (eg: Windows NT Server or Samba)
41 ;        to provide authentication services
42    security = user
43 ; Use password server option only with security = server
44 ;   password server = <NT-Server-Name>
45
46 ; Encrypted Password Support - Off by default. Requires smbpasswd file
47 ; Refer to docs/Encryption.txt
48    encrypt passwords = no
49
50 ; Configuration Options ***** The location of this entry in your smb.conf
51 ; heirachy determines  which parameters are overwritten - please watch out!
52 ; Where %m is any SMBName (machine name, or computer name) for which a custom
53 ; configuration is desired
54 ;   include = /usr/local/samba/lib/smb.conf.%m
55
56 ; Performance Related Options
57 ; Before setting socket options read the smb.conf man page!!
58    socket options = TCP_NODELAY 
59 ; Use keep alive only if really needed!!!!
60 ;   keep alive = 60
61 ; Configure Samba to use multiple interfaces
62 ;        Samba will auto-detect network interfaces - only use this if
63 ;        the auto-detection does not deliver the needed results
64 ;   interfaces = 192.168.12.2/24 176.16.111.22/19 10.11.13.14/255.255.252.0
65
66 ; Browser Control Options:
67 ; Local Master set to True causes Samba to participate in browser elections
68 ;       the default setting is true, this causes Samba to behave like a
69 ;       Windows NT server. Setting this to false turns off all browser
70 ;       election participation.
71 ;   local master = yes
72
73 ; OS Level gives Samba the power to win browser elections. Windows NT = 32
74 ;       Any value < 32 means NT wins as Master Browser, > 32 Samba gets it
75 ;       default = 0, this ensures that Samba will NOT win the browser election.
76 ;   os level = 33
77
78 ; Domain Master specifies Samba to be the Domain Master Browser
79 ;       Only ever set this if there is NO Windows NT Domain Controller on the
80 ;       network
81 ;   domain master = yes 
82
83 ; Preferred Master causes Samba to force a local browser election on startup
84 ;   preferred master = yes
85
86 ; Use with care only if you have an NT server on your network that has been
87 ; configured at install time to be a primary domain controller.
88 ;   domain controller = <NT-Domain-Controller-SMBName>
89
90 ; Domain Logon Service Options:
91 ; Domain logon control can be a good thing! See [netlogon] share section below!
92 ;       Do NOT set this to yes if there is an Windows NT domain controller
93 ;       on the network
94 ;   domain logons = yes
95
96 ; run a specific logon batch file per workstation (machine)
97 ;   logon script = %m.bat
98 ; run a specific logon batch file per session username (ie: Client User Name)
99 ;   logon script = %U.bat
100
101 ; Where to store roving profiles (only for Win95 and WinNT)
102 ;        %L substitutes for the SMB name we are called, %U is username
103 ;        You must uncomment the [Profiles] share below
104 ;   logon path = \\%L\Profiles\%U
105
106 ; Windows Internet Name Serving Support Section:
107 ; WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
108 ;       the default is NO. If you have an Windows NT Server WINS use it!
109 ;       Samba defaults to wins support = no
110 ;   wins support = yes
111
112 ; WINS Server - Tells the NMBD components of Samba to be a WINS Client
113 ;       Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
114 ;   wins server = w.x.y.z
115
116 ; WINS Proxy - Tells Samba to answer name resolution queries on behalf of a non
117 ;       WINS Client capable client, for this to work there must be at least one
118 ;       WINS Server on the network. The default is NO.
119 ;   wins proxy = yes
120
121 ;============================ Share Definitions ==============================
122 [homes]
123    comment = Home Directories
124    browseable = no
125    writable = yes
126
127 ; Un-comment the following and create the netlogon directory for Domain Logons
128 ; [netlogon]
129 ;   comment = Samba Network Logon Service
130 ;   path = /usr/local/samba/lib/netlogon
131 ; Case sensitivity breaks logon script processing!!!
132 ;   case sensitive = no
133 ;   guest ok = yes
134 ;   locking = no
135 ;   writable = no
136 ;   For browseable say NO if you want to hide the NETLOGON share
137 ;   browseable = yes
138
139 ; Un-comment the following to provide a specific roving profile share
140 ; the default is to use the user's home directory
141 ;[Profiles]
142 ;    path = /usr/local/samba/profiles
143 ;    browseable = no
144 ;    printable = no
145 ;    guest ok = yes
146
147 ; NOTE: There is NO need to specifically define each individual printer
148 [printers]
149    comment = All Printers
150    path = /usr/spool/samba
151    browseable = no
152    printable = yes
153 ; Set public = yes to allow user 'guest account' to print
154    guest ok = no
155    writable = no
156    create mask = 0700
157
158 ;[tmp]
159 ;   comment = Temporary file space
160 ;   path = /tmp
161 ;   read only = no
162 ;   public = yes
163
164 ; A publicly accessible directory, but read only, except for people in
165 ; the staff group
166 [public]
167    comment = Public Stuff
168    path = /home/samba
169    public = yes
170    writable = yes
171    printable = no
172    write list = @users
173
174 ; Other examples. 
175 ;
176 ; A private printer, usable only by fred. Spool data will be placed in fred's
177 ; home directory. Note that fred must have write access to the spool directory,
178 ; wherever it is.
179 ;[fredsprn]
180 ;   comment = Fred's Printer
181 ;   valid users = fred
182 ;   path = /homes/fred
183 ;   printer = freds_printer
184 ;   public = no
185 ;   writable = no
186 ;   printable = yes
187 ;
188 ; A private directory, usable only by fred. Note that fred requires write
189 ; access to the directory.
190 ;[fredsdir]
191 ;   comment = Fred's Service
192 ;   path = /usr/somewhere/private
193 ;   valid users = fred
194 ;   public = no
195 ;   writable = yes
196 ;   printable = no
197 ;
198 ; a service which has a different directory for each machine that connects
199 ; this allows you to tailor configurations to incoming machines. You could
200 ; also use the %u option to tailor it by user name.
201 ; The %m gets replaced with the machine name that is connecting.
202 ;[pchome]
203 ;  comment = PC Directories
204 ;  path = /usr/pc/%m
205 ;  public = no
206 ;  writable = yes
207 ;
208 ;
209 ; A publicly accessible directory, read/write to all users. Note that all files
210 ; created in the directory by users will be owned by the default user, so
211 ; any user with access can delete any other user's files. Obviously this
212 ; directory must be writable by the default user. Another user could of course
213 ; be specified, in which case all files would be owned by that user instead.
214 ;[public]
215 ;   path = /usr/somewhere/else/public
216 ;   public = yes
217 ;   only guest = yes
218 ;   writable = yes
219 ;   printable = no
220 ;
221 ;
222 ; The following two entries demonstrate how to share a directory so that two
223 ; users can place files there that will be owned by the specific users. In this
224 ; setup, the directory should be writable by both users and should have the
225 ; sticky bit set on it to prevent abuse. Obviously this could be extended to
226 ; as many users as required.
227 ;[myshare]
228 ;   comment = Mary's and Fred's stuff
229 ;   path = /usr/somewhere/shared
230 ;   valid users = mary fred
231 ;   public = no
232 ;   writable = yes
233 ;   printable = no
234 ;   create mask = 0765
235