60ead5bc9fb70334308932d95ca46c28b83af08a
[jra/samba/.git] / docs / faq / sambafaq.txt
1   Samba FAQ
2   Paul Blackman, ictinus@lake.canberra.edu.au
3   , v 0.5
4
5   This is the Frequently Asked Questions (FAQ) document for Samba, the
6   free and very popular SMB server product. An SMB server allows file
7   and printer connections from clients such as Windows, OS/2, Linux and
8   others. Current to version 1.9.16. Please send any corrections to the
9   author.
10   ______________________________________________________________________
11
12   Table of Contents:
13
14   1.      General Information
15
16   1.1.    What is Samba?
17
18   1.2.    What is the current version of Samba?
19
20   1.3.    Where can I get it?
21
22   1.4.    What do the version numbers mean?
23
24   1.5.    What platforms are supported?
25
26   1.6.    How can I find out more about Samba?
27
28   1.7.    Something's gone wrong - what should I do?
29
30   1.8.    Pizza supply details
31
32   2.      Compiling and installing Samba on a Unix host
33
34   2.1.    I can't see the Samba server in any browse lists!
35
36   2.2.    Some files that I KNOW are on the server doesn't show up when
37   I view the files from my client!
38
39   2.3.    Some files on the server show up with really wierd filenames
40   when I view the files from my client!
41
42   2.4.    My client reports "cannot locate specified computer" or
43   similar
44
45   2.5.    My client reports "cannot locate specified share name" or
46   similar
47
48   2.6.    My client reports "cannot find domain controller", "cannot log
49   on to the network" or similar
50
51   2.7.    Printing doesn't work :-(
52
53   2.8.    My programs install on the server OK, but refuse to work
54   properly
55
56   2.9.    My "server string" doesn't seem to be recognised
57
58   2.10.   My client reports "This server is not configured to list
59   shared resources"
60
61   2.11.   Log message "you appear to have a trapdoor uid system"
62
63   3.      Common client questions
64
65   3.1.    Are any Macintosh clients for Samba
66
67   3.2.    "Session request failed (131,130)" error
68
69   3.3.    How do I synchronise my PC's clock with my Samba server?
70
71   3.4.    Problems with WinDD, NTrigue, WinCenterPro etc
72
73   3.5.    Problem with printers under NT
74
75   3.6.    Why are my file's timestamps off by an hour, or by a few
76   hours?
77
78   3.7.    How do I set the printer driver name correctly?
79
80   4.      Specific client application problems
81
82   4.1.    MS Office Setup reports "Cannot change properties of
83   "MSOFFICEUP.INI"
84
85   5.      Miscellaneous
86   ______________________________________________________________________
87
88   1.  General Information
89
90   All about Samba - what it is, how to get it, related sources of
91   information, how to understand the version numbering scheme, pizza
92   details
93
94   1.1.  What is Samba?
95
96   Samba is a suite of programs which work together to allow clients to
97   access to a server's filespace and printers via the SMB (Server
98   Message Block) protocol. Initially written for Unix, Samba now also
99   runs on Netware, OS/2 and VMS.
100
101   In practice, this means that you can redirect disks and printers to
102   Unix disks and printers from Lan Manager clients, Windows for
103   Workgroups 3.11 clients, Windows NT clients, Linux clients and OS/2
104   clients. There is also a generic Unix client program supplied as part
105   of the suite which allows Unix users to use an ftp-like interface to
106   access filespace and printers on any other SMB servers. This gives the
107   capability for these operating systems to behave much like a LAN
108   Server or Windows NT Server machine, only with added functionality and
109   flexibility designed to make life easier for administrators.
110
111   The components of the suite are (in summary):
112
113   o  smbd, the SMB server. This handles actual connections from clients,
114      doing all the file, permission and username work
115
116   o  nmbd, the Netbios name server, which helps clients locate servers,
117      doing the browsing work and managing domains as this capability is
118      being built into Samba
119
120   o  smbclient, the Unix-hosted client program
121
122   o  smbrun, a little 'glue' program to help the server run external
123      programs
124
125   o  testprns, a program to test server access to printers
126
127   o  testparms, a program to test the Samba configuration file for
128      correctness
129
130   o  smb.conf, the Samba configuration file
131
132   o  smbprint, a sample script to allow a Unix host to use smbclient to
133      print to an SMB server
134
135   o  documentation! DON'T neglect to read it - you will save a great
136      deal of time!
137
138   The suite is supplied with full source (of course!) and is GPLed.
139
140   The primary creator of the Samba suite is Andrew Tridgell. Later
141   versions incorporate much effort by many net.helpers. The man pages
142   and this FAQ were originally written by Karl Auer.
143
144   1.2.  What is the current version of Samba?
145
146   At time of writing, the current version was 1.9.16. If you want to be
147   sure check the bottom of the change-log file.
148   <ftp://samba.anu.edu.au/pub/samba/alpha/change-log>
149
150   For more information see ``What do the version numbers mean?''
151
152   1.3.  Where can I get it?
153
154   The Samba suite is available via anonymous ftp from samba.anu.edu.au.
155   The latest and greatest versions of the suite are in the directory:
156
157   /pub/samba/
158
159   Development (read "alpha") versions, which are NOT necessarily stable
160   and which do NOT necessarily have accurate documentation, are
161   available in the directory:
162
163   /pub/samba/alpha
164
165   Note that binaries are NOT included in any of the above. Samba is
166   distributed ONLY in source form, though binaries may be available from
167   other sites. Recent versions of some Linux distributions, for example,
168   do contain Samba binaries for that platform.
169
170   1.4.  What do the version numbers mean?
171
172   It is not recommended that you run a version of Samba with the word
173   "alpha" in its name unless you know what you are doing and are willing
174   to do some debugging. Many, many people just get the latest
175   recommended stable release version and are happy. If you are brave, by
176   all means take the plunge and help with the testing and development -
177   but don't install it on your departmental server. Samba is typically
178   very stable and safe, and this is mostly due to the policy of many
179   public releases.
180
181   How the scheme works:
182
183   1) when major changes are made the version number is increased. For
184   example, the transition from 1.9.15 to 1.9.16. However, this version
185   number will not appear immediately and people should continue to use
186   1.9.15 for production systems (see next point.)
187
188   2) just after major changes are made the software is considered
189   unstable, and a series of alpha releases are distributed, for example
190   1.9.16alpha1. These are for testing by those who know what they are
191   doing.  The "alpha" in the filename will hopefully scare off those who
192   are just looking for the latest version to install.
193
194   3) when Andrew thinks that the alphas have stabilised to the point
195   where he would recommend new users install it, he renames it to the
196   same version number without the alpha, for example 1.9.16.
197
198   4) inevitably bugs are found in the "stable" releases and minor patch
199   levels are released which give us the pXX series, for example
200   1.9.16p2.
201
202   So the progression goes:
203
204   1.9.15p7        (production) 1.9.15p8        (production) 1.9.16alpha1
205   (test sites only) : 1.9.16alpha20   (test sites only) 1.9.16
206   (production) 1.9.16p1        (production)
207
208   The above system means that whenever someone looks at the samba ftp
209   site they will be able to grab the highest numbered release without an
210   alpha in the name and be sure of getting the current recommended
211   version.
212
213   1.5.  What platforms are supported?
214
215   Many different platforms have run Samba successfully. The platforms
216   most widely used and thus best tested are Linux and SunOS.
217
218   At time of writing, the Makefile claimed support for:
219
220   * SunOS * Linux with shadow passwords * Linux without shadow passwords
221   * SOLARIS * SOLARIS 2.2 and above (aka SunOS 5) * SVR4 * ULTRIX * OSF1
222   (alpha only) * OSF1 with NIS and Fast Crypt (alpha only) * OSF1 V2.0
223   Enhanced Security (alpha only) * AIX * BSDI * NetBSD * NetBSD 1.0 *
224   SEQUENT * HP-UX * SGI * SGI IRIX 4.x.x * SGI IRIX 5.x.x * FreeBSD *
225   NeXT 3.2 and above * NeXT OS 2.x * NeXT OS 3.0 * ISC SVR3V4 (POSIX
226   mode) * ISC SVR3V4 (iBCS2 mode) * A/UX 3.0 * SCO with shadow
227   passwords.  * SCO with shadow passwords, without YP.  * SCO with TCB
228   passwords * SCO 3.2v2 (ODT 1.1) with TCP passwords * intergraph * DGUX
229   * Apollo Domain/OS sr10.3 (BSD4.3)
230
231   1.6.  How can I find out more about Samba?
232
233   There are two mailing lists devoted to discussion of Samba-related
234   matters.  There is also the newsgroup, comp.protocols.smb, which has a
235   great deal of discussion on Samba. There is also a WWW site 'SAMBA Web
236   Pages' at http://samba.canberra.edu.au/pub/samba/samba.html, under
237   which there is a comprehensive survey of Samba users. Another useful
238   resource is the hypertext archive of the Samba mailing list.
239
240   Send email to listproc@samba.anu.edu.au. Make sure the subject line is
241   blank, and include the following two lines in the body of the message:
242
243   subscribe samba Firstname Lastname subscribe samba-announce Firstname
244   Lastname
245
246   Obviously you should substitute YOUR first name for "Firstname" and
247   YOUR last name for "Lastname"! Try not to send any signature stuff, it
248   sometimes confuses the list processor.
249
250   The samba list is a digest list - every eight hours or so it
251   regurgitates a single message containing all the messages that have
252   been received by the list since the last time and sends a copy of this
253   message to all subscribers.
254
255   If you stop being interested in Samba, please send another email to
256   listproc@samba.anu.edu.au. Make sure the subject line is blank, and
257   include the following two lines in the body of the message:
258
259   unsubscribe samba unsubscribe samba-announce
260
261   The From: line in your message MUST be the same address you used when
262   you subscribed.
263
264   1.7.  Something's gone wrong - what should I do?
265
266   # *** IMPORTANT! *** # DO NOT post messages on mailing lists or in
267   newsgroups until you have carried out the first three steps given
268   here!
269
270   Firstly, see if there are any likely looking entries in this FAQ! If
271   you have just installed Samba, have you run through the checklist in
272   DIAGNOSIS.txt? It can save you a lot of time and effort.
273
274   Secondly, read the man pages for smbd, nmbd and smb.conf, looking for
275   topics that relate to what you are trying to do.
276
277   Thirdly, if there is no obvious solution to hand, try to get a look at
278   the log files for smbd and/or nmbd for the period during which you
279   were having problems. You may need to reconfigure the servers to
280   provide more extensive debugging information - usually level 2 or
281   level 3 provide ample debugging info. Inspect these logs closely,
282   looking particularly for the string "Error:".
283
284   Fourthly, if you still haven't got anywhere, ask the mailing list or
285   newsgroup.  In general nobody minds answering questions provided you
286   have followed the preceding steps. It might be a good idea to scan the
287   archives of the mailing list, which are available through the Samba
288   web site described in the previous section.
289
290   If you successfully solve a problem, please mail the FAQ maintainer a
291   succinct description of the symptom, the problem and the solution, so
292   I can incorporate it in the next version.
293
294   If you make changes to the source code, _please_ submit these patches
295   so that everyone else gets the benefit of your work. This is one of
296   the most important aspects to the maintainence of Samba. Send all
297   patches to samba-bugs@samba.anu.edu.au, not Andrew Tridgell or any
298   other individual and not the samba team mailing list.
299
300   1.8.  Pizza supply details
301
302   Those who have registered in the Samba survey as "Pizza Factory" will
303   already know this, but the rest may need some help. Andrew doesn't ask
304   for payment, but he does appreciate it when people give him pizza.
305   This calls for a little organisation when the pizza donor is twenty
306   thousand kilometres away, but it has been done.
307
308   Method 1: Ring up your local branch of an international pizza chain
309   and see if they honour their vouchers internationally. Pizza Hut do,
310   which is how the entire Canberra Linux Users Group got to eat pizza
311   one night, courtesy of someone in the US
312
313   Method 2: Ring up a local pizza shop in Canberra and quote a credit
314   card number for a certain amount, and tell them that Andrew will be
315   collecting it (don't forget to tell him.) One kind soul from Germany
316   did this.
317
318   Method 3: Purchase a pizza voucher from your local pizza shop that has
319   no international affiliations and send it to Andrew. It is completely
320   useless but he can hang it on the wall next to the one he already has
321   from Germany :-)
322
323   Method 4: Air freight him a pizza with your favourite regional
324   flavours. It will probably get stuck in customs or torn apart by
325   hungry sniffer dogs but it will have been a noble gesture.
326
327   2.  Compiling and installing Samba on a Unix host
328
329   2.1.  I can't see the Samba server in any browse lists!
330
331   *** Until the FAQ can be updated, please check the file: ***
332   ftp://samba.anu.edu.au/pub/samba/BROWSING.txt *** for more information
333   on browsing.
334
335   If your GUI client does not permit you to select non-browsable
336   servers, you may need to do so on the command line. For example, under
337   Lan Manager you might connect to the above service as disk drive M:
338   thusly:
339
340   net use M: \maryed
341
342   The details of how to do this and the specific syntax varies from
343   client to client - check your client's documentation.
344
345   2.2.  view the files from my client!  Some files that I KNOW are on
346   the server doesn't show up when I
347
348   2.3.  I view the files from my client!  Some files on the server show
349   up with really wierd filenames when
350
351   If you check what files are not showing up, you will note that they
352   are files which contain upper case letters or which are otherwise not
353   DOS-compatible (ie, they are not legal DOS filenames for some reason).
354
355   The Samba server can be configured either to ignore such files
356   completely, or to present them to the client in "mangled" form. If you
357   are not seeing the files at all, the Samba server has most likely been
358   configured to ignore them.  Consult the man page smb.conf(5) for
359   details of how to change this - the parameter you need to set is
360   "mangled names = yes".
361
362   2.4.  My client reports "cannot locate specified computer" or similar
363
364   This indicates one of three things: You supplied an incorrect server
365   name, the underlying TCP/IP layer is not working correctly, or the
366   name you specified cannot be resolved.
367
368   After carefully checking that the name you typed is the name you
369   should have typed, try doing things like pinging a host or telnetting
370   to somewhere on your network to see if TCP/IP is functioning OK. If it
371   is, the problem is most likely name resolution.
372
373   If your client has a facility to do so, hardcode a mapping between the
374   hosts IP and the name you want to use. For example, with Man Manager
375   or Windows for Workgroups you would put a suitable entry in the file
376   LMHOSTS. If this works, the problem is in the communication between
377   your client and the netbios name server. If it does not work, then
378   there is something fundamental wrong with your naming and the solution
379   is beyond the scope of this document.
380
381   If you do not have any server on your subnet supplying netbios name
382   resolution, hardcoded mappings are your only option. If you DO have a
383   netbios name server running (such as the Samba suite's nmbd program),
384   the problem probably lies in the way it is set up. Refer to Section
385   Two of this FAQ for more ideas.
386
387   By the way, remember to REMOVE the hardcoded mapping before further
388   tests :-)
389
390   2.5.  similar My client reports "cannot locate specified share name"
391   or
392
393   This message indicates that your client CAN locate the specified
394   server, which is a good start, but that it cannot find a service of
395   the name you gave.
396
397   The first step is to check the exact name of the service you are
398   trying to connect to (consult your system administrator). Assuming it
399   exists and you specified it correctly (read your client's doco on how
400   to specify a service name correctly), read on:
401
402   * Many clients cannot accept or use service names longer than eight
403   characters.  * Many clients cannot accept or use service names
404   containing spaces.  * Some servers (not Samba though) are case
405   sensitive with service names.  * Some clients force service names into
406   upper case.
407
408   2.6.  on to the network" or similar My client reports "cannot find
409   domain controller", "cannot log
410
411   Nothing is wrong - Samba does not implement the primary domain name
412   controller stuff for several reasons, including the fact that the
413   whole concept of a primary domain controller and "logging in to a
414   network" doesn't fit well with clients possibly running on multiuser
415   machines (such as users of smbclient under Unix). Having said that,
416   several developers are working hard on building it in to the next
417   major version of Samba. If you can contribute, send a message to
418   samba-bugs!
419
420   Seeing this message should not affect your ability to mount redirected
421   disks and printers, which is really what all this is about.
422
423   For many clients (including Windows for Workgroups and Lan Manager),
424   setting the domain to STANDALONE at least gets rid of the message.
425
426   2.7.  Printing doesn't work :-(
427
428   Make sure that the specified print command for the service you are
429   connecting to is correct and that it has a fully-qualified path (eg.,
430   use "/usr/bin/lpr" rather than just "lpr").
431
432   Make sure that the spool directory specified for the service is
433   writable by the user connected to the service. In particular the user
434   "nobody" often has problems with printing, even if it worked with an
435   earlier version of Samba. Try creating another guest user other than
436   "nobody".
437
438   Make sure that the user specified in the service is permitted to use
439   the printer.
440
441   Check the debug log produced by smbd. Search for the printer name and
442   see if the log turns up any clues. Note that error messages to do with
443   a service ipc$ are meaningless - they relate to the way the client
444   attempts to retrieve status information when using the LANMAN1
445   protocol.
446
447   If using WfWg then you need to set the default protocol to TCP/IP, not
448   Netbeui. This is a WfWg bug.
449
450   If using the Lanman1 protocol (the default) then try switching to
451   coreplus.  Also not that print status error messages don't mean
452   printing won't work. The print status is received by a different
453   mechanism.
454
455   2.8.  My programs install on the server OK, but refuse to work prop-
456   erly
457
458   There are numerous possible reasons for this, but one MAJOR
459   possibility is that your software uses locking. Make sure you are
460   using Samba 1.6.11 or later. It may also be possible to work around
461   the problem by setting "locking=no" in the Samba configuration file
462   for the service the software is installed on. This should be regarded
463   as a strictly temporary solution.
464
465   In earlier Samba versions there were some difficulties with the very
466   latest Microsoft products, particularly Excel 5 and Word for Windows
467   6. These should have all been solved. If not then please let Andrew
468   Tridgell know.
469
470   2.9.  My "server string" doesn't seem to be recognised
471
472   my client reports the default setting, eg. "Samba 1.9.15p4", instead
473   of what I have changed it to in the smb.conf file.
474
475   You need to use the -C option in nmbd. The "server string" affects
476   what smbd puts out and -C affects what nmbd puts out. In a future
477   version these will probably be combined and -C will be removed, but
478   for now use -C
479
480   2.10.  resources" My client reports "This server is not configured to
481   list shared
482
483   Your guest account is probably invalid for some reason. Samba uses the
484   guest account for browsing in smbd.  Check that your guest account is
485   valid.
486
487   See also 'guest account' in smb.conf man page.
488
489   2.11.  Log message "you appear to have a trapdoor uid system"
490
491   This can have several causes. It might be because you are using a uid
492   or gid of 65535 or -1. This is a VERY bad idea, and is a big security
493   hole. Check carefully in your /etc/passwd file and make sure that no
494   user has uid 65535 or -1. Especially check the "nobody" user, as many
495   broken systems are shipped with nobody setup with a uid of 65535.
496
497   It might also mean that your OS has a trapdoor uid/gid system :-)
498
499   This means that once a process changes effective uid from root to
500   another user it can't go back to root. Unfortunately Samba relies on
501   being able to change effective uid from root to non-root and back
502   again to implement its security policy. If your OS has a trapdoor uid
503   system this won't work, and several things in Samba may break. Less
504   things will break if you use user or server level security instead of
505   the default share level security, but you may still strike problems.
506
507   The problems don't give rise to any security holes, so don't panic,
508   but it does mean some of Samba's capabilities will be unavailable.  In
509   particular you will not be able to connect to the Samba server as two
510   different uids at once. This may happen if you try to print as a
511   "guest" while accessing a share as a normal user. It may also affect
512   your ability to list the available shares as this is normally done as
513   the guest user.
514
515   Complain to your OS vendor and ask them to fix their system.
516
517   Note: the reason why 65535 is a VERY bad choice of uid and gid is that
518   it casts to -1 as a uid, and the setreuid() system call ignores (with
519   no error) uid changes to -1. This means any daemon attempting to run
520   as uid 65535 will actually run as root. This is not good!
521
522   3.  Common client questions
523
524   3.1.  Are any Macintosh clients for Samba
525
526   In Rob Newberry's words (rob@eats.com, Sun, 4 Dec 1994):
527
528   The answer is "No." Samba speaks SMB, the protocol used for Microsoft
529   networks.  The Macintosh has ALWAYS spoken Appletalk. Even with
530   Microsoft "services for Macintosh", it has been a matter of making the
531   server speak Appletalk. It is the same for Novell Netware and the
532   Macintosh, although I believe Novell has (VERY LATE) released an
533   extension for the Mac to let it speak IPX.
534
535   In future Apple System Software, you may see support for other
536   protocols, such as SMB -- Applet is working on a new networking
537   architecture that will --> -- make it easier to support additional
538   protocols. But it's not here yet.
539
540   Now, the nice part is that if you want your Unix machine to speak
541   Appletalk, there are several options. "Netatalk" and "CAP" are free,
542   and available on the net. There are also several commercial options,
543   such as "PacerShare" and "Helios" (I think). In any case, you'll have
544   to look around for a server, not anything for the Mac.
545
546   Depending on you OS, some of these may not help you. I am currently
547   coordinating the effort to get CAP working with Native Ethertalk under
548   Linux, but we're not done yet.
549
550   lkcl - update 09mar97 - the answer is "Yes!".  Thursby now have a
551   CIFS Client / Server - see www.thursby.com.  They test it against
552   Windows 95, Windows NT and samba for compatibility issues.  At
553   present, DAVE is at version 1.0.0.  DAVE version 1.0.1 is in beta,
554   and will be released in April 97 (the speed of finder copies has
555   been greatly enhanced, and there are bug-fixes included).
556
557   3.2.  Session request failed (131,130)" error
558
559   The following answer is provided by John E. Miller:
560
561   I'll assume that you're able to ping back and forth between the
562   machines by IP address and name, and that you're using some security
563   model where you're confident that you've got user IDs and passwords
564   right.  The logging options (-d3 or greater) can help a lot with that.
565   DNS and WINS configuration can also impact connectivity as well.
566
567   Now, on to 'scope id's.  Somewhere in your Win95 TCP/IP network
568   configuration (I'm too much of an NT bigot to know where it's located
569   in the Win95 setup, but I'll have to learn someday since I teach for a
570   Microsoft Solution Provider Authorized Tech Education Center - what an
571   acronym...) Note: It's under Control Panel | Network | TCP/IP | WINS
572   Configuration there's a little text entry field called something like
573
574   This field essentially creates 'invisible' sub-workgroups on the same
575   wire.  Boxes can only see other boxes whose Scope IDs are set to the
576   exact same value - it's sometimes used by OEMs to configure their
577   boxes to browse only other boxes from the same vendor and, in most
578   environments, this field should be left blank.  If you, in fact, have
579   something in this box that EXACT value (case-sensitive!) needs to be
580   provided to smbclient and nmbd as the -i (lowercase) parameter. So, if
581   your Scope ID is configured as the string 'SomeStr' in Win95 then
582   you'd have to use smbclient -iSomeStr otherparms in connecting to it.
583
584   3.3.  How do I synchronise my PC's clock with my Samba server?
585
586   To syncronize your PC's clock with your Samba server:
587
588   * Copy timesync.pif to your windows directory * timesync.pif can be
589   found at:
590   http://samba.canberra.edu.au/pub/samba/binaries/miscellaneous/timesync.pif
591   * Add timesync.pif to your 'Start Up' group/folder * Open the
592   properties dialog box for the program/icon * Make sure the 'Run
593   Minimized' option is set in program * Change the command line section
594   that reads \sambahost to reflect the name of your server.  * Close the
595   properties dialog box by choosing 'OK'
596
597   Each time you start your computer (or login for Win95) your PC will
598   synchronize it's clock with your Samba server.
599
600   Alternatively, you can set up domain logons - see:
601   ftp://samba.anu.edu.au/pub/samba/BROWSING.txt *** for more information.
602
603   Then, add NET TIME \\%L /SET /YES as one of the lines in the logon script.
604
605   3.4.  Problems with WinDD, NTrigue, WinCenterPro etc
606
607   All of the above programs are applications that sit on an NT box and
608   allow multiple users to access the NT GUI applications from remote
609   workstations (often over X).
610
611   What has this got to do with Samba? The problem comes when these users
612   use filemanager to mount shares from a Samba server. The most common
613   symptom is that the first user to connect get correct file permissions
614   and has a nice day, but subsequent connections get logged in as the
615   same user as the first person to login. They find that they cannot
616   access files in their own home directory, but that they can access
617   files in the first users home directory (maybe not such a nice day
618   after all?)
619
620   Why does this happen? The above products all share a common heritage
621   (and code base I believe). They all open just a single TCP based SMB
622   connection to the Samba server, and requests from all users are piped
623   over this connection. This is unfortunate, but not fatal.
624
625   It means that if you run your Samba server in share level security
626   (the default) then things will definately break as described above.
627   The share level SMB security model has no provision for multiple user
628   IDs on the one SMB connection. See security_level.txt in the docs for
629   more info on share/user/server level security.
630
631   If you run in user or server level security then you have a chance,
632   but only if you have a recent version of Samba (at least 1.9.15p6). In
633   older versions bugs in Samba meant you still would have had problems.
634
635   If you have a trapdoor uid system in your OS then it will never work
636   properly. Samba needs to be able to switch uids on the connection and
637   it can't if your OS has a trapdoor uid system. You'll know this
638   because Samba will note it in your logs.
639
640   Also note that you should not use the magic "homes" share name with
641   products like these, as otherwise all users will end up with the same
642   home directory. Use \serversername instead.
643
644   3.5.  Problem with printers under NT
645
646   This info from Stefan Hergeth hergeth@f7axp1.informatik.fh-muenchen.de
647   may be useful:
648
649   A network-printer (with ethernetcard) is connected to the NT-Clients
650   via our UNIX-Fileserver (SAMBA-Server), like the configuration told by
651   Matthew Harrell harrell@leech.nrl.navy.mil (see WinNT.txt)
652
653   1.) If a user has choosen this printer as the default printer in his
654   NT-Session and this printer is not connected to the network (e.g.
655   switched off) than this user has a problem with the SAMBA- connection
656   of his filesystems. It's very slow.
657
658   2.) If the printer is connected to the network everything works fine.
659
660   3.) When the smbd ist started with debug level 3, you can see that the
661   NT spooling system try to connect to the printer many times. If the
662   printer ist not connected to the network this request fails and the NT
663   spooler is wasting a lot of time to connect to the printer service.
664   This seems to be the reason for the slow network connection.
665
666   4.) Maybe it's possible to change this behaviour by setting different
667   printer properties in the Print-Manager-Menu of NT, but i didn't try
668   it yet.
669
670   3.6.  Why are my file's timestamps off by an hour, or by a few hours?
671
672   This is from Paul Eggert eggert@twinsun.com.
673
674   Most likely it's a problem with your time zone settings.
675
676   Internally, Samba maintains time in traditional Unix format, namely,
677   the number of seconds since 1970-01-01 00:00:00 Universal Time (or
678   ``GMT''), not counting leap seconds.
679
680   On the server side, Samba uses the Unix TZ variable to convert
681   internal timestamps to and from local time.  So on the server side,
682   there are two things to get right.
683
684   1.  The Unix system clock must have the correct Universal time.  Use
685   the shell command "sh -c 'TZ=UTC0 date'" to check this.
686
687   2.  The TZ environment variable must be set on the server before Samba
688   is invoked.  The details of this depend on the server OS, but
689   typically you must edit a file whose name is /etc/TIMEZONE or
690   /etc/default/init, or run the command `zic -l'.
691
692   3.  TZ must have the correct value.
693
694   3a.  If possible, use geographical time zone settings (e.g.
695   TZ='America/Los_Angeles' or perhaps TZ=':US/Pacific').  These are
696   supported by most popular Unix OSes, are easier to get right, and are
697   more accurate for historical timestamps.  If your operating system has
698   out-of-date tables, you should be able to update them from the public
699   domain time zone tables at URL:ftp://elsie.nci.nih.gov/pub/.
700
701   3b.  If your system does not support geographical time zone settings,
702   you must use a Posix-style TZ strings, e.g.
703   TZ='PST8PDT,M4.1.0/2,M10.5.0/2' for US Pacific time.  Posix TZ strings
704   can take the following form (with optional items in brackets):
705
706   StdOffsetDst[Offset,Date/Time,Date/Time]
707
708   where:
709
710   `Std' is the standard time designation (e.g. `PST').
711
712   `Offset' is the number of hours behind UTC (e.g. `8').  Prepend a `-'
713   if you are ahead of UTC, and append `:30' if you are at a half-hour
714   offset.  Omit all the remaining items if you do not use daylight-
715   saving time.
716
717   `Dst' is the daylight-saving time designation (e.g. `PDT').
718
719   The optional second `Offset' is the number of hours that daylight-
720   saving time is behind UTC.  The default is 1 hour ahead of standard
721   time.
722   `Date/Time,Date/Time' specify when daylight-saving time starts and
723   ends.  The format for a date is `Mm.n.d', which specifies the dth day
724   (0 is Sunday) of the nth week of the mth month, where week 5 means the
725   last such day in the month.  The format for a time is hh:mm[:ss],
726   using a 24-hour clock.
727
728   Other Posix string formats are allowed but you don't want to know
729   about them.
730
731   On the client side, you must make sure that your client's clock and
732   time zone is also set appropriately.  [I don't know how to do this.]
733   Samba traditionally has had many problems dealing with time zones, due
734   to the bizarre ways that Microsoft network protocols handle time
735   zones.  A common symptom is for file timestamps to be off by an hour.
736   To work around the problem, try disconnecting from your Samba server
737   and then reconnecting to it; or upgrade your Samba server to
738   1.9.16alpha10 or later.
739
740   3.7.  How do I set the printer driver name correctly?
741
742   Question: > On NT, I opened "Printer Manager" and "Connect to
743   Printer".  > Enter "\ptdi270s1"
744   in the box of printer. I got the > following error message: > >
745   You do not have sufficient access to your machine >     to connect to
746   the selected printer, since a driver >     needs to be installed
747   locally.
748
749   Answer:
750
751   In the more recent versions of Samba you can now set the "printer
752   driver" in smb.conf. This tells the client what driver to use. For
753   example, I have:
754
755   printer driver = HP LaserJet 4L
756
757   and NT knows to use the right driver. You have to get this string
758   exactly right.
759
760   To find the exact string to use, you need to get to the dialog box in
761   your client where you select which printer driver to install. The
762   correct strings for all the different printers are shown in a listbox
763   in that dialog box.
764
765   You could also try setting the driver to NULL like this:
766
767   printer driver = NULL
768
769   this is effectively what older versions of Samba did, so if that
770   worked for you then give it a go. If this does work then let me know
771   and I'll make it the default. Currently the default is a 0 length
772   string.
773
774   4.  Specific client application problems
775
776   4.1.  MS Office Setup reports "Cannot change properties of "MSOF-
777   FICEUP.INI"
778
779   When installing MS Office on a Samba drive for which you have admin
780   user permissions, ie. admin users = username, you will find the setup
781   program unable to complete the installation.
782
783   To get around this problem, do the installation without admin user
784   permissions The problem is that MS Office Setup checks that a file is
785   rdonly by trying to open it for writing.
786
787   Admin users can always open a file for writing, as they run as root.
788   You just have to install as a non-admin user and then use "chown -R"
789   to fix the owner.
790
791   5.  Miscellaneous
792