PHPTR Edit 2. More to come.
[import/samba-docs-svnimport.git] / Samba3-HOWTO / TOSHARG-Other-Clients.xml
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE chapter PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <chapter id="Other-Clients">
4 <chapterinfo>
5         &author.jelmer;
6         &author.jht;
7         &author.danshearer;
8         <author>&person.jmcd;<contrib>OS/2</contrib></author>
9         <pubdate>5 Mar 2001</pubdate>
10 </chapterinfo>
11
12 <title>Samba and Other CIFS Clients</title>
13
14 <para>This chapter contains client-specific information.</para>
15
16 <sect1>
17 <title>Macintosh Clients</title>
18
19 <para>
20 Yes. <ulink url="http://www.thursby.com/">Thursby</ulink> has a CIFS client/server called <ulink url="http://www.thursby.com/products/dave.html">DAVE</ulink>.
21 They test it against Windows 95, Windows NT/200x/XP, and Samba for
22 compatibility issues. At the time of this writing, DAVE was at version
23 4.1. Please refer to Thursby's Web site for more information regarding this
24 product.
25 </para>
26
27 <para> 
28 Alternatives include two free implementations of AppleTalk for
29 several kinds of UNIX machines and several more commercial ones.
30 These products allow you to run file services and print services
31 natively to Macintosh users, with no additional support required on
32 the Macintosh. The two free implementations are 
33 <ulink url="http://www.umich.edu/~rsug/netatalk/">Netatalk</ulink> and 
34 <ulink url="http://www.cs.mu.oz.au/appletalk/atalk.html">CAP</ulink>. 
35 What Samba offers MS Windows users, these packages offer to Macs. 
36 For more info on these packages, Samba, and Linux (and other UNIX-based systems), see
37 <ulink noescape="1" url="http://www.eats.com/linux_mac_win.html">http://www.eats.com/linux_mac_win.html.</ulink>
38 </para>
39
40 <para>Newer versions of the Macintosh (Mac OS X) include Samba.</para>
41
42 </sect1>
43
44 <sect1>
45 <title>OS2 Client</title>
46
47         <sect2>
48                 <title>Configuring OS/2 Warp Connect or OS/2 Warp 4</title>
49
50                 <para>Basically, you need three components:</para>
51                 
52                 <itemizedlist>
53                         <listitem><para>The File and Print Client (IBM peer)</para></listitem>
54                         <listitem><para>TCP/IP (Internet support) </para></listitem>
55                         <listitem><para>The <quote>NetBIOS over TCP/IP</quote> driver (TCPBEUI)</para></listitem>
56                 </itemizedlist>
57                 
58                 <para>Installing the first two together with the base operating 
59                 system on a blank system is explained in the Warp manual. If Warp 
60                 has already been installed, but you now want to install the 
61                 networking support, use the <quote>Selective Install for Networking</quote> 
62                 object in the <quote>System Setup</quote> folder.</para>
63
64                 <para>Adding the <quote>NetBIOS over TCP/IP</quote> driver is not described 
65                 in the manual and just barely in the online documentation. Start 
66                 <command>MPTS.EXE</command>, click on <guiicon>OK</guiicon>, click on <guimenu>Configure LAPS</guimenu>, and click 
67                 on <guimenu>IBM OS/2 NETBIOS OVER TCP/IP</guimenu> in  <guilabel>Protocols</guilabel>. This line 
68                 is then moved to <guilabel>Current Configuration</guilabel>. Select that line, 
69                 click on <guimenuitem>Change number</guimenuitem>, and increase it from 0 to 1. Save this
70                 configuration.</para>
71
72                 <para>If the Samba server is not on your local subnet, you 
73                 can optionally add IP names and addresses of these servers 
74                 to the <guimenu>Names List</guimenu> or specify a  WINS server (NetBIOS 
75                 Nameserver in IBM and RFC terminology). For Warp Connect, you 
76                 may need to download an update for <constant>IBM Peer</constant> to bring it on 
77                 the same level as Warp 4. See the Web page (John, which page do you mean???????).</para>
78         </sect2>
79         
80         <sect2>
81                 <title>Configuring Other Versions of OS/2</title>
82         
83                 <para>This sections deals with configuring OS/2 Warp 3 (not Connect), OS/2 1.2, 1.3 or 2.x.</para>
84                 
85                 <para>You can use the free Microsoft LAN Manager 2.2c Client for OS/2 that is
86                 available from 
87                 <ulink noescape="1" url="ftp://ftp.microsoft.com/BusSys/Clients/LANMAN.OS2/">
88                 ftp://ftp.microsoft.com/BusSys/Clients/LANMAN.OS2/</ulink>. In a nutshell, edit
89         the file <filename>\OS2VER</filename> in the root directory of the OS/2 boot partition and add the lines:</para>
90                 
91                 <para><programlisting>
92                 20=setup.exe
93                 20=netwksta.sys
94                 20=netvdd.sys
95                 </programlisting></para>
96                 
97                 <para>before you install the client. Also, do not use the included NE2000 driver because it is buggy.
98                 Try the NE2000 or NS2000 driver from <ulink noescape="1" url="ftp://ftp.cdrom.com/pub/os2/network/ndis/">
99                 ftp://ftp.cdrom.com/pub/os2/network/ndis/</ulink> instead.
100                 </para>
101         </sect2>
102         
103         <sect2>
104                 <title>Printer Driver Download for OS/2 Clients</title>
105
106                 <para>Create a share called <smbconfsection name="[PRINTDRV]"/> that is 
107                 world-readable. Copy your OS/2 driver files there. The <filename>.EA_</filename>
108                 files must still be separate, so you will need to use the original install files
109                 and not copy an installed driver from an OS/2 system.</para>
110                 
111                 <para>Install the NT driver first for that printer. Then, add to your &smb.conf; a parameter,
112                 <smbconfoption name="os2 driver map"><replaceable>filename</replaceable></smbconfoption>. 
113                 Next, in the file specified by <replaceable>filename</replaceable>, map the 
114                 name of the NT driver name to the OS/2 driver name as follows:</para>
115                 
116                 <para><parameter><replaceable>nt driver name</replaceable> = <replaceable>os2 driver name</replaceable>.<replaceable>device name</replaceable></parameter>, e.g.,</para>
117
118                 <para><parameter>
119                 HP LaserJet 5L = LASERJET.HP LaserJet 5L</parameter></para>
120
121                 <para>You can have multiple drivers mapped in this file.</para>
122         
123                 <para>If you only specify the OS/2 driver name, and not the 
124                 device name, the first attempt to download the driver will 
125                 actually download the files, but the OS/2 client will tell 
126                 you the driver is not available. On the second attempt, it 
127                 will work. This is fixed simply by adding the device name
128                  to the mapping, after which it will work on the first attempt.
129                 </para>
130         </sect2>
131 </sect1>
132
133 <sect1>
134 <title>Windows for Workgroups</title>
135
136 <sect2>
137 <title>Latest TCP/IP Stack from Microsoft</title>
138
139 <para>Use the latest TCP/IP stack from Microsoft if you use Windows
140 for Workgroups. The early TCP/IP stacks had lots of bugs.</para>
141
142 <para> 
143 Microsoft has released an incremental upgrade to its TCP/IP 32-bit
144 VxD drivers. The latest release can be found at
145 ftp.microsoft.com, located in <filename>/Softlib/MSLFILES/TCP32B.EXE</filename>.
146 There is an update.txt file there that describes the problems that were
147 fixed. New files include <filename>WINSOCK.DLL</filename>, 
148 <filename>TELNET.EXE</filename>, 
149 <filename>WSOCK.386</filename>, 
150 <filename>VNBT.386</filename>,
151 <filename>WSTCP.386</filename>, 
152 <filename>TRACERT.EXE</filename>, 
153 <filename>NETSTAT.EXE</filename>, and 
154 <filename>NBTSTAT.EXE</filename>.
155 </para>
156
157 <para>More information about this patch is available in <ulink url="http://support.microsoft.com/kb/q99891/">Knowledge Base article 99891</ulink>.</para>
158
159 </sect2>
160
161 <sect2>
162 <title>Delete .pwl Files After Password Change</title>
163
164 <para>
165 Windows for Workgroups does a lousy job with passwords. When you change passwords on either
166 the UNIX box or the PC, the safest thing to do is delete the .pwl files in the Windows
167 directory. The PC will complain about not finding the files, but will soon get over it,
168 allowing you to enter the new password.
169 </para>
170
171 <para> 
172 If you do not do this, you may find that Windows for Workgroups remembers and uses the old
173 password, even if you told it a new one.
174 </para>
175
176 <para> 
177 Often Windows for Workgroups will totally ignore a password you give it in a dialog box.
178 </para>
179
180 </sect2>
181
182 <sect2>
183 <title>Configuring Windows for Workgroups Password Handling</title>
184
185 <para>
186 There is a program call <filename>admincfg.exe</filename>
187 on the last disk (disk 8) of the WFW 3.11 disk set. To install it,
188 type <userinput>EXPAND A:\ADMINCFG.EX_ C:\WINDOWS\ADMINCFG.EXE</userinput>.
189 Then add an icon for it via the <application>Program Manager</application> <guimenu>New</guimenu> menu. 
190 This program allows you to control how WFW handles passwords,
191 Disable Password Caching and so on,
192 for use with <smbconfoption name="security">user</smbconfoption>.
193 </para>
194
195 </sect2>
196
197 <sect2>
198 <title>Password Case Sensitivity</title>
199
200 <para>Windows for Workgroups uppercases the password before sending it to the server.
201 UNIX passwords can be case-sensitive though. Check the &smb.conf; information on
202 <smbconfoption name="password level"/> to specify what characters
203 Samba should try to uppercase when checking.</para>
204
205 </sect2>
206
207 <sect2>
208 <title>Use TCP/IP as Default Protocol</title>
209
210 <para>To support print queue reporting, you may find
211 that you have to use TCP/IP as the default protocol under
212 Windows for Workgroups. For some reason, if you leave NetBEUI as the default,
213 it may break the print queue reporting on some systems.
214 It is presumably a Windows for Workgroups bug.</para>
215
216 </sect2>
217
218 <sect2>
219 <title>Speed Improvement</title>
220
221 <para>
222         Note that some people have found that setting <parameter>DefaultRcvWindow</parameter> in
223 the <smbconfsection name="[MSTCP]"/> section of the 
224 <filename>SYSTEM.INI</filename> file under Windows for Workgroups to 3072 gives a
225 big improvement.
226 </para>
227
228 <para>
229 My own experience with DefaultRcvWindow is that I get a much better
230 performance with a large value (16384 or larger). Other people have
231 reported that anything over 3072 slows things down enormously. One
232 person even reported a speed drop of a factor of 30 when he went from
233 3072 to 8192.
234 </para>
235 </sect2>
236 </sect1>
237
238 <sect1>
239 <title>Windows 95/98</title>
240
241 <para>
242 When using Windows 95 OEM SR2, the following updates are recommended where Samba
243 is being used. Please note that the above change (John, specify the change???????) will affect you once these
244 updates  have been installed.
245 </para>
246
247 <para> 
248 There are more updates than the ones mentioned here. Refer to the
249 Microsoft Web site for all currently available updates to your specific version
250 of Windows 95.
251 </para>
252
253 <simplelist>
254 <member>Kernel Update: KRNLUPD.EXE</member>
255 <member>Ping Fix: PINGUPD.EXE</member>
256 <member>RPC Update: RPCRTUPD.EXE</member>
257 <member>TCP/IP Update: VIPUPD.EXE</member>
258 <member>Redirector Update: VRDRUPD.EXE</member>
259 </simplelist>
260
261 <para>
262 Also, if using <application>MS Outlook,</application> it is desirable to 
263 install the <command>OLEUPD.EXE</command> fix. This
264 fix may stop your machine from hanging for an extended period when exiting
265 Outlook, and you may notice a significant speedup when accessing network
266 neighborhood services.
267 </para>
268
269 <sect2>
270 <title>Speed Improvement</title>
271
272 <para>
273 Configure the Windows 95 TCP/IP registry settings to give better
274 performance. I use a program called <command>MTUSPEED.exe</command> that I got off the
275 Internet. There are various other utilities of this type freely available.
276 </para>
277
278 </sect2>
279
280 </sect1>
281
282 <sect1>
283 <title>Windows 2000 Service Pack 2</title>
284
285 <para> 
286 There are several annoyances with Windows 2000 SP2, one of which
287 only appears when using a Samba server to host user profiles
288 to Windows 2000 SP2 clients in a Windows domain. This assumes
289 that Samba is a member of the domain, but the problem will
290 most likely occur if it is not.
291 </para>
292
293 <para> 
294 In order to serve profiles successfully to Windows 2000 SP2 
295 clients (when not operating as a PDC), Samba must have 
296 <smbconfoption name="nt acl support">no</smbconfoption>
297 added to the file share that houses the roaming profiles.
298 If this is not done, then the Windows 2000 SP2 client will
299 complain about not being able to access the profile (Access 
300 Denied) and create multiple copies of it on disk (DOMAIN.user.001,
301 DOMAIN.user.002, and so on). See the &smb.conf; man page
302 for more details on this option. Also note that the 
303 <smbconfoption name="nt acl support"/> parameter was formally a global parameter in
304 releases prior to Samba 2.2.2.
305 </para>
306
307 <para> 
308 <link linkend="minimalprofile">Following example</link> provides a minimal profile share.
309 </para>
310
311 <example id="minimalprofile">
312 <title>Minimal Profile Share</title>
313 <smbconfblock>
314 <smbconfsection name="[profile]"/>
315 <smbconfoption name="path">/export/profile</smbconfoption>
316 <smbconfoption name="create mask">0600</smbconfoption>
317 <smbconfoption name="directory mask">0700</smbconfoption>
318 <smbconfoption name="nt acl support">no</smbconfoption>
319 <smbconfoption name="read only">no</smbconfoption>
320 </smbconfblock>
321 </example>
322
323 <para>
324 The reason for this bug is that the Windows 200x SP2 client copies
325 the security descriptor for the profile that contains
326 the Samba server's SID, and not the domain SID. The client
327 compares the SID for SAMBA\user and realizes it is
328 different from the one assigned to DOMAIN\user; hence,
329 <errorname>access denied</errorname> message.
330 </para>
331
332 <para>
333 When the <smbconfoption name="nt acl support"/> parameter is disabled, Samba will send
334 the Windows 200x client a response to the QuerySecurityDescriptor trans2 call, which causes the client
335 to set a default ACL for the profile. This default ACL includes:
336 </para>
337
338 <para><emphasis>DOMAIN\user     <quote>Full Control</quote></emphasis>></para>
339
340 <note><para>This bug does not occur when using Winbind to
341 create accounts on the Samba host for Domain users.</para></note>
342
343 </sect1>
344
345 <sect1>
346 <title>Windows NT 3.1</title>
347
348 <para>If you have problems communicating across routers with Windows 
349 NT 3.1 workstations, read <ulink url="http://support.microsoft.com/default.aspx?scid=kb;Q103765">this Microsoft Knowledge Base article:</ulink>.
350
351 </para>
352
353 </sect1>
354
355 </chapter>