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