JHT ===> Updated default RedHat smb.conf file
[kai/samba.git] / examples / redhat / smb.conf
1 ; The global setting for a RedHat default install
2 ; smbd re-reads this file regularly, but if in doubt stop and restart it:
3 ; /etc/rc.d/init.d/smb stop
4 ; /etc/rc.d/init.d/smb start
5 ;======================= Global Settings =====================================
6 [global]
7
8 ; workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4
9    workgroup = WORKGROUP
10
11 ; comment is the equivalent of the NT Description field
12    comment = RedHat Samba Server
13
14 ; volume = used to emulate a CDRom label (can be set on a per share basis)
15    volume = RedHat4
16
17 ; printing = BSD or SYSV or AIX, etc.
18    printing = bsd
19    printcap name = /etc/printcap
20    load printers = yes
21
22 ; Uncomment this if you want a guest account
23 ;  guest account = pcguest
24    log file = /var/log/samba-log.%m
25 ; Put a capping on the size of the log files (in Kb)
26    max log size = 50
27
28 ; Options for handling file name case sensitivity and / or preservation
29 ; Case Sensitivity breaks many WfW and Win95 apps
30 ;   case sensitive = yes
31     short preserve case = yes
32     preserve case = yes
33
34 ; Security and file integrity related options
35    lock directory = /var/lock/samba
36    locking = yes
37    strict locking = yes
38 ;   fake oplocks = yes
39    share modes = yes
40 ; Security modes: USER uses Unix username/passwd, SHARE uses WfW type passwords
41 ;        SERVER uses a Windows NT Server to provide authentication services
42    security = user
43 ; Use password server option only with security = server
44 ;   password server = <NT-Server-Name>
45
46 ; Configuration Options ***** Watch location in smb.conf for side-effects *****
47 ; Where %m is any SMBName (machine name, or computer name) for which a custom
48 ; configuration is desired
49 ;   include = /etc/smb.conf.%m
50
51 ; Performance Related Options
52 ; Before setting socket options read the smb.conf man page!!
53    socket options = TCP_NODELAY 
54 ; Socket Address is used to specify which socket Samba
55 ; will listen on (good for aliased systems)
56 ;   socket address = aaa.bbb.ccc.ddd
57 ; Use keep alive only if really needed!!!!
58 ;   keep alive = 60
59
60 ; Domain Control Options
61 ; OS Level gives Samba the power to rule the roost. Windows NT = 32
62 ;       Any value < 32 means NT wins as Master Browser, > 32 Samba gets it
63 ;   os level = 33
64 ; specifies Samba to be the Domain Master Browser
65 ;   domain master = yes 
66 ; Use with care only if you have an NT server on your network that has been
67 ; configured at install time to be a primary domain controller.
68 ;   domain controller = <NT-Domain-Controller-SMBName>
69 ; Domain logon control can be a good thing! See [netlogon] share section below!
70 ;   domain logons = yes
71 ; run a specific logon batch file per workstation (machine)
72 ;   logon script = %m.bat
73 ; run a specific logon batch file per username
74 ;   logon script = %u.bat
75 ; Windows Internet Name Serving Support Section
76 ; WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
77 ;       the default is NO.
78 ;   wins support = yes
79 ; WINS Server - Tells the NMBD components of Samba to be a WINS Client
80 ;       Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
81 ;   wins server = w.x.y.z
82 ; WINS Proxy - Tells Samba to answer name resolution queries on behalf of a non
83 ;       WINS Client capable client, for this to work there must be at least one
84 ;       WINS Server on the network. The default is NO.
85 ;   wins proxy = yes
86
87 ;============================ Share Declarations ==============================
88 [homes]
89    comment = Home Directories
90    browseable = no
91    read only = no
92    preserve case = yes
93    short preserve case = yes
94    create mode = 0750
95
96 ; Un-comment the following and create the netlogon directory for Domain Logons
97 ; [netlogon]
98 ;   comment = Samba Network Logon Service
99 ;   path = /home/netlogon
100 ; Case sensitivity breaks logon script processing!!!
101 ;   case sensitive = no
102 ;   guest ok = yes
103 ;   locking = no
104 ;   read only = yes
105 ;   browseable = yes  ; say NO if you want to hide the NETLOGON share
106 ;   admin users = @wheel
107
108 ; NOTE: There is NO need to specifically define each individual printer
109 [printers]
110    comment = All Printers
111    path = /var/spool/samba
112    browseable = no
113    printable = yes
114 ; Set public = yes to allow user 'guest account' to print
115    public = no
116    writable = no
117    create mode = 0700
118
119 ;[tmp]
120 ;   comment = Temporary file space
121 ;   path = /tmp
122 ;   read only = no
123 ;   public = yes
124
125 ; A publicly accessible directory, but read only, except for people in
126 ; the staff group
127 [public]
128    comment = Public Stuff
129    path = /home/samba
130    public = yes
131    writable = yes
132    printable = no
133    write list = @users
134
135 ; Other examples. 
136 ;
137 ; A private printer, usable only by fred. Spool data will be placed in fred's
138 ; home directory. Note that fred must have write access to the spool directory,
139 ; wherever it is.
140 ;[fredsprn]
141 ;   comment = Fred's Printer
142 ;   valid users = fred
143 ;   path = /homes/fred
144 ;   printer = freds_printer
145 ;   public = no
146 ;   writable = no
147 ;   printable = yes
148 ;
149 ; A private directory, usable only by fred. Note that fred requires write
150 ; access to the directory.
151 ;[fredsdir]
152 ;   comment = Fred's Service
153 ;   path = /usr/somewhere/private
154 ;   valid users = fred
155 ;   public = no
156 ;   writable = yes
157 ;   printable = no
158 ;
159 ; a service which has a different directory for each machine that connects
160 ; this allows you to tailor configurations to incoming machines. You could
161 ; also use the %u option to tailor it by user name.
162 ; The %m gets replaced with the machine name that is connecting.
163 ;[pchome]
164 ;  comment = PC Directories
165 ;  path = /usr/pc/%m
166 ;  public = no
167 ;  writeable = yes
168 ;
169 ;
170 ; A publicly accessible directory, read/write to all users. Note that all files
171 ; created in the directory by users will be owned by the default user, so
172 ; any user with access can delete any other user's files. Obviously this
173 ; directory must be writable by the default user. Another user could of course
174 ; be specified, in which case all files would be owned by that user instead.
175 ;[public]
176 ;   path = /usr/somewhere/else/public
177 ;   public = yes
178 ;   only guest = yes
179 ;   writable = yes
180 ;   printable = no
181 ;
182 ;
183 ; The following two entries demonstrate how to share a directory so that two
184 ; users can place files there that will be owned by the specific users. In this
185 ; setup, the directory should be writable by both users and should have the
186 ; sticky bit set on it to prevent abuse. Obviously this could be extended to
187 ; as many users as required.
188 ;[myshare]
189 ;   comment = Mary's and Fred's stuff
190 ;   path = /usr/somewhere/shared
191 ;   valid users = mary fred
192 ;   public = no
193 ;   writable = yes
194 ;   printable = no
195 ;   create mask = 0765
196