2 Paul Blackman, ictinus@lake.canberra.edu.au
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.17. Please send any corrections to the
10 ______________________________________________________________________
14 1. General Information
18 1.2. What is the current version of Samba?
20 1.3. Where can I get it?
22 1.4. What do the version numbers mean?
24 1.5. What platforms are supported?
26 1.6. How can I find out more about Samba?
28 1.7. How do I subscribe to the Samba Mailing Lists?
30 1.8. Something's gone wrong - what should I do?
32 1.9. Pizza supply details
34 2. Compiling and installing Samba on a Unix host
36 2.1. I can't see the Samba server in any browse lists!
38 2.2. Some files that I KNOW are on the server doesn't show up when
39 I view the files from my client!
41 2.3. Some files on the server show up with really wierd filenames
42 when I view the files from my client!
44 2.4. My client reports "cannot locate specified computer" or
47 2.5. My client reports "cannot locate specified share name" or
50 2.6. My client reports "cannot find domain controller", "cannot log
51 on to the network" or similar
53 2.7. Printing doesn't work :-(
55 2.8. My programs install on the server OK, but refuse to work
58 2.9. My "server string" doesn't seem to be recognised
60 2.10. My client reports "This server is not configured to list
63 2.11. Log message "you appear to have a trapdoor uid system"
65 3. Common client questions
67 3.1. Are there any Macintosh clients for Samba?
69 3.2. "Session request failed (131,130)" error
71 3.3. How do I synchronise my PC's clock with my Samba server?
73 3.4. Problems with WinDD, NTrigue, WinCenterPro etc
75 3.5. Problem with printers under NT
77 3.6. Why are my file's timestamps off by an hour, or by a few
80 3.7. How do I set the printer driver name correctly?
82 3.8. I've applied NT 4.0 SP3, and now I can't access Samba shares,
85 4. Specific client application problems
87 4.1. MS Office Setup reports "Cannot change properties of
92 5.1. Is Samba Year 2000 compliant?
93 ______________________________________________________________________
95 1. General Information
99 All about Samba - what it is, how to get it, related sources of
100 information, how to understand the version numbering scheme, pizza
107 Samba is a suite of programs which work together to allow clients to
108 access to a server's filespace and printers via the SMB (Server
109 Message Block) protocol. Initially written for Unix, Samba now also
110 runs on Netware, OS/2 and VMS.
112 In practice, this means that you can redirect disks and printers to
113 Unix disks and printers from Lan Manager clients, Windows for
114 Workgroups 3.11 clients, Windows NT clients, Linux clients and OS/2
115 clients. There is also a generic Unix client program supplied as part
116 of the suite which allows Unix users to use an ftp-like interface to
117 access filespace and printers on any other SMB servers. This gives the
118 capability for these operating systems to behave much like a LAN
119 Server or Windows NT Server machine, only with added functionality and
120 flexibility designed to make life easier for administrators.
122 The components of the suite are (in summary):
125 o smbd, the SMB server. This handles actual connections from clients,
126 doing all the file, permission and username work
128 o nmbd, the Netbios name server, which helps clients locate servers,
129 doing the browsing work and managing domains as this capability is
130 being built into Samba
133 o smbclient, the Unix-hosted client program
135 o smbrun, a little 'glue' program to help the server run external
138 o testprns, a program to test server access to printers
140 o testparms, a program to test the Samba configuration file for
143 o smb.conf, the Samba configuration file
145 o smbprint, a sample script to allow a Unix host to use smbclient to
146 print to an SMB server
148 o Documentation! DON'T neglect to read it - you will save a great
151 The suite is supplied with full source (of course!) and is GPLed.
153 The primary creator of the Samba suite is Andrew Tridgell. Later
154 versions incorporate much effort by many net.helpers. The man pages
155 and this FAQ were originally written by Karl Auer.
158 1.2. What is the current version of Samba?
161 At time of writing, the current version was 1.9.17. If you want to be
162 sure check the bottom of the change-log file.
163 <ftp://samba.anu.edu.au/pub/samba/alpha/change-log>
165 For more information see ``What do the version numbers mean?''
168 1.3. Where can I get it?
171 The Samba suite is available via anonymous ftp from samba.anu.edu.au.
172 The latest and greatest versions of the suite are in the directory:
176 Development (read "alpha") versions, which are NOT necessarily stable
177 and which do NOT necessarily have accurate documentation, are
178 available in the directory:
182 Note that binaries are NOT included in any of the above. Samba is
183 distributed ONLY in source form, though binaries may be available from
184 other sites. Recent versions of some Linux distributions, for example,
185 do contain Samba binaries for that platform.
188 1.4. What do the version numbers mean?
191 It is not recommended that you run a version of Samba with the word
192 "alpha" in its name unless you know what you are doing and are willing
193 to do some debugging. Many, many people just get the latest
194 recommended stable release version and are happy. If you are brave, by
195 all means take the plunge and help with the testing and development -
196 but don't install it on your departmental server. Samba is typically
197 very stable and safe, and this is mostly due to the policy of many
199 How the scheme works:
201 1. When major changes are made the version number is increased. For
202 example, the transition from 1.9.15 to 1.9.16. However, this
203 version number will not appear immediately and people should
204 continue to use 1.9.15 for production systems (see next point.)
206 2. Just after major changes are made the software is considered
207 unstable, and a series of alpha releases are distributed, for
208 example 1.9.16alpha1. These are for testing by those who know what
209 they are doing. The "alpha" in the filename will hopefully scare
210 off those who are just looking for the latest version to install.
212 3. When Andrew thinks that the alphas have stabilised to the point
213 where he would recommend new users install it, he renames it to the
214 same version number without the alpha, for example 1.9.16.
216 4. Inevitably bugs are found in the "stable" releases and minor patch
217 levels are released which give us the pXX series, for example
220 So the progression goes:
222 1.9.15p7 (production)
223 1.9.15p8 (production)
224 1.9.16alpha1 (test sites only)
226 1.9.16alpha20 (test sites only)
228 1.9.16p1 (production)
231 The above system means that whenever someone looks at the samba ftp
232 site they will be able to grab the highest numbered release without an
233 alpha in the name and be sure of getting the current recommended ver-
237 1.5. What platforms are supported?
240 Many different platforms have run Samba successfully. The platforms
241 most widely used and thus best tested are Linux and SunOS.
243 At time of writing, the Makefile claimed support for:
249 o Altos Series 386/1000
253 o Apollo Domain/OS sr10.3
257 o B.O.S. (Bull Operating System)
273 o Linux with/without shadow passwords and quota
277 o MachTen (a unix like system for Macintoshes)
279 o Motorola 88xxx/9xx range of machines
283 o NEXTSTEP Release 2.X, 3.0 and greater (including OPENSTEP for
286 o OS/2 using EMX 0.9b
298 o SCO (including: 3.2v2, European dist., OpenServer 5)
302 o SMP_DC.OSx v1.1-94c079 on Pyramid S series
304 o SONY NEWS, NEWS-OS (4.2.x and 6.1.x)
308 o SUNOS 5.2, 5.3, and 5.4 (Solaris 2.2, 2.3, and '2.4 and later')
314 o System V with some berkely extensions (Motorola 88k R32V3.2).
323 1.6. How can I find out more about Samba?
326 There are a number of places to look for more information on Samba,
329 o Two mailing lists devoted to discussion of Samba-related matters.
331 o The newsgroup, comp.protocols.smb, which has a great deal of
334 o The WWW site 'SAMBA Web Pages' at
335 <http://samba.canberra.edu.au/pub/samba/samba.html> includes:
337 o Links to man pages and documentation, including this FAQ
339 o A comprehensive survey of Samba users.
341 o A searchable hypertext archive of the Samba mailing list.
343 o Links to Samba source code, binaries, and mirrors of both.
345 o The long list of topic documentation. These files can be found in
346 the 'docs' directory of the Samba source, or at
347 <ftp://samba.anu.edu.au/pub/samba/docs/>
349 o Application_Serving.txt
350 <ftp://samba.anu.edu.au/pub/samba/docs/Application_Serving.txt>
352 o BROWSING.txt <ftp://samba.anu.edu.au/pub/samba/docs/BROWSING.txt>
354 o BUGS.txt <ftp://samba.anu.edu.au/pub/samba/docs/BUGS.txt>
356 o DIAGNOSIS.txt <ftp://samba.anu.edu.au/pub/samba/docs/DIAGNOSIS.txt>
358 o DNIX.txt <ftp://samba.anu.edu.au/pub/samba/docs/DNIX.txt>
360 o DOMAIN.txt <ftp://samba.anu.edu.au/pub/samba/docs/DOMAIN.txt>
363 <ftp://samba.anu.edu.au/pub/samba/docs/DOMAIN_CONTROL.txt>
366 <ftp://samba.anu.edu.au/pub/samba/docs/ENCRYPTION.txt>
368 o Faxing.txt <ftp://samba.anu.edu.au/pub/samba/docs/Faxing.txt>
370 o GOTCHAS.txt <ftp://samba.anu.edu.au/pub/samba/docs/GOTCHAS.txt>
372 o HINTS.txt <ftp://samba.anu.edu.au/pub/samba/docs/HINTS.txt>
375 <ftp://samba.anu.edu.au/pub/samba/docs/INSTALL.sambatar>
377 o INSTALL.txt <ftp://samba.anu.edu.au/pub/samba/docs/INSTALL.txt>
379 o MIRRORS <ftp://samba.anu.edu.au/pub/samba/docs/MIRRORS>
381 o NetBIOS.txt <ftp://samba.anu.edu.au/pub/samba/docs/NetBIOS.txt>
383 o OS2.txt <ftp://samba.anu.edu.au/pub/samba/docs/OS2.txt>
385 o PROJECTS <ftp://samba.anu.edu.au/pub/samba/docs/PROJECTS>
387 o Passwords.txt <ftp://samba.anu.edu.au/pub/samba/docs/Passwords.txt>
389 o Printing.txt <ftp://samba.anu.edu.au/pub/samba/docs/Printing.txt>
391 o README.DCEDFS <ftp://samba.anu.edu.au/pub/samba/docs/README.DCEDFS>
393 o README.OS2 <ftp://samba.anu.edu.au/pub/samba/docs/README.OS2>
395 o README.jis <ftp://samba.anu.edu.au/pub/samba/docs/README.jis>
398 <ftp://samba.anu.edu.au/pub/samba/docs/README.sambatar>
400 o SCO.txt <ftp://samba.anu.edu.au/pub/samba/docs/SCO.txt>
402 o SMBTAR.notes <ftp://samba.anu.edu.au/pub/samba/docs/SMBTAR.notes>
404 o Speed.txt <ftp://samba.anu.edu.au/pub/samba/docs/Speed.txt>
406 o Support.txt <ftp://samba.anu.edu.au/pub/samba/docs/Support.txt>
408 o THANKS <ftp://samba.anu.edu.au/pub/samba/docs/THANKS>
410 o Tracing.txt <ftp://samba.anu.edu.au/pub/samba/docs/Tracing.txt>
412 o SMB.txt <ftp://samba.anu.edu.au/pub/samba/docs/UNIX-SMB.txt>
414 o Warp.txt <ftp://samba.anu.edu.au/pub/samba/docs/Warp.txt>
416 o WinNT.txt <ftp://samba.anu.edu.au/pub/samba/docs/WinNT.txt>
418 o history <ftp://samba.anu.edu.au/pub/samba/docs/history>
421 <ftp://samba.anu.edu.au/pub/samba/docs/security_level.txt>
423 o slip.htm <ftp://samba.anu.edu.au/pub/samba/docs/wfw_slip.htm>
426 1.7. How do I subscribe to the Samba Mailing Lists?
429 Send email to listproc@samba.anu.edu.au. Make sure the subject line is
430 blank, and include the following two lines in the body of the message:
433 subscribe samba Firstname Lastname
434 subscribe samba-announce Firstname Lastname
439 Obviously you should substitute YOUR first name for "Firstname" and
440 YOUR last name for "Lastname"! Try not to send any signature stuff, it
441 sometimes confuses the list processor.
443 The samba list is a digest list - every eight hours or so it
444 regurgitates a single message containing all the messages that have
445 been received by the list since the last time and sends a copy of this
446 message to all subscribers.
448 If you stop being interested in Samba, please send another email to
449 listproc@samba.anu.edu.au. Make sure the subject line is blank, and
450 include the following two lines in the body of the message:
454 unsubscribe samba-announce
459 The From: line in your message MUST be the same address you used when
463 1.8. Something's gone wrong - what should I do?
466 # *** IMPORTANT! *** #
468 DO NOT post messages on mailing lists or in newsgroups until you have
469 carried out the first three steps given here!
471 Firstly, see if there are any likely looking entries in this FAQ! If
472 you have just installed Samba, have you run through the checklist in
473 DIAGNOSIS.txt <ftp://samba.anu.edu.au/pub/samba/DIAGNOSIS.txt>? It can
474 save you a lot of time and effort. DIAGNOSIS.txt can also be found in
475 the docs directory of the Samba distribution.
477 Secondly, read the man pages for smbd, nmbd and smb.conf, looking for
478 topics that relate to what you are trying to do.
480 Thirdly, if there is no obvious solution to hand, try to get a look at
481 the log files for smbd and/or nmbd for the period during which you
482 were having problems. You may need to reconfigure the servers to
483 provide more extensive debugging information - usually level 2 or
484 level 3 provide ample debugging info. Inspect these logs closely,
485 looking particularly for the string "Error:".
487 Fourthly, if you still haven't got anywhere, ask the mailing list or
488 newsgroup. In general nobody minds answering questions provided you
489 have followed the preceding steps. It might be a good idea to scan the
490 archives of the mailing list, which are available through the Samba
491 web site described in the previous section.
493 If you successfully solve a problem, please mail the FAQ maintainer a
494 succinct description of the symptom, the problem and the solution, so
495 I can incorporate it in the next version.
497 If you make changes to the source code, _please_ submit these patches
498 so that everyone else gets the benefit of your work. This is one of
499 the most important aspects to the maintainence of Samba. Send all
500 patches to samba-bugs@samba.anu.edu.au. Do not send patches to Andrew
501 Tridgell or any other individual, they may be lost if you do.
504 1.9. Pizza supply details
507 Those who have registered in the Samba survey as "Pizza Factory" will
508 already know this, but the rest may need some help. Andrew doesn't ask
509 for payment, but he does appreciate it when people give him pizza.
510 This calls for a little organisation when the pizza donor is twenty
511 thousand kilometres away, but it has been done.
513 Method 1: Ring up your local branch of an international pizza chain
514 and see if they honour their vouchers internationally. Pizza Hut do,
515 which is how the entire Canberra Linux Users Group got to eat pizza
516 one night, courtesy of someone in the US
518 Method 2: Ring up a local pizza shop in Canberra and quote a credit
519 card number for a certain amount, and tell them that Andrew will be
520 collecting it (don't forget to tell him.) One kind soul from Germany
523 Method 3: Purchase a pizza voucher from your local pizza shop that has
524 no international affiliations and send it to Andrew. It is completely
525 useless but he can hang it on the wall next to the one he already has
529 Method 4: Air freight him a pizza with your favourite regional
530 flavours. It will probably get stuck in customs or torn apart by
531 hungry sniffer dogs but it will have been a noble gesture.
534 2. Compiling and installing Samba on a Unix host
538 2.1. I can't see the Samba server in any browse lists!
541 See BROWSING.txt <ftp://samba.anu.edu.au/pub/samba/BROWSING.txt> for
542 more information on browsing. Browsing.txt can also be found in the
543 docs directory of the Samba source.
545 If your GUI client does not permit you to select non-browsable
546 servers, you may need to do so on the command line. For example, under
547 Lan Manager you might connect to the above service as disk drive M:
551 net use M: \\mary\fred
556 The details of how to do this and the specific syntax varies from
557 client to client - check your client's documentation.
560 2.2. Some files that I KNOW are on the server doesn't show up when I
561 view the files from my client!
564 See the next question.
566 2.3. Some files on the server show up with really wierd filenames
567 when I view the files from my client!
570 If you check what files are not showing up, you will note that they
571 are files which contain upper case letters or which are otherwise not
572 DOS-compatible (ie, they are not legal DOS filenames for some reason).
574 The Samba server can be configured either to ignore such files
575 completely, or to present them to the client in "mangled" form. If you
576 are not seeing the files at all, the Samba server has most likely been
577 configured to ignore them. Consult the man page smb.conf(5) for
578 details of how to change this - the parameter you need to set is
579 "mangled names = yes".
582 2.4. My client reports "cannot locate specified computer" or similar
585 This indicates one of three things: You supplied an incorrect server
586 name, the underlying TCP/IP layer is not working correctly, or the
587 name you specified cannot be resolved.
589 After carefully checking that the name you typed is the name you
590 should have typed, try doing things like pinging a host or telnetting
591 to somewhere on your network to see if TCP/IP is functioning OK. If it
592 is, the problem is most likely name resolution.
595 If your client has a facility to do so, hardcode a mapping between the
596 hosts IP and the name you want to use. For example, with Man Manager
597 or Windows for Workgroups you would put a suitable entry in the file
598 LMHOSTS. If this works, the problem is in the communication between
599 your client and the netbios name server. If it does not work, then
600 there is something fundamental wrong with your naming and the solution
601 is beyond the scope of this document.
603 If you do not have any server on your subnet supplying netbios name
604 resolution, hardcoded mappings are your only option. If you DO have a
605 netbios name server running (such as the Samba suite's nmbd program),
606 the problem probably lies in the way it is set up. Refer to Section
607 Two of this FAQ for more ideas.
609 By the way, remember to REMOVE the hardcoded mapping before further
613 2.5. My client reports "cannot locate specified share name" or simi-
617 This message indicates that your client CAN locate the specified
618 server, which is a good start, but that it cannot find a service of
621 The first step is to check the exact name of the service you are
622 trying to connect to (consult your system administrator). Assuming it
623 exists and you specified it correctly (read your client's doco on how
624 to specify a service name correctly), read on:
627 o Many clients cannot accept or use service names longer than eight
630 o Many clients cannot accept or use service names containing spaces.
632 o Some servers (not Samba though) are case sensitive with service
635 o Some clients force service names into upper case.
638 2.6. My client reports "cannot find domain controller", "cannot log
639 on to the network" or similar
642 Nothing is wrong - Samba does not implement the primary domain name
643 controller stuff for several reasons, including the fact that the
644 whole concept of a primary domain controller and "logging in to a
645 network" doesn't fit well with clients possibly running on multiuser
646 machines (such as users of smbclient under Unix). Having said that,
647 several developers are working hard on building it in to the next
648 major version of Samba. If you can contribute, send a message to
649 samba-bugs@samba.anu.edu.au !
651 Seeing this message should not affect your ability to mount redirected
652 disks and printers, which is really what all this is about.
654 For many clients (including Windows for Workgroups and Lan Manager),
655 setting the domain to STANDALONE at least gets rid of the message.
661 2.7. Printing doesn't work :-(
664 Make sure that the specified print command for the service you are
665 connecting to is correct and that it has a fully-qualified path (eg.,
666 use "/usr/bin/lpr" rather than just "lpr").
668 Make sure that the spool directory specified for the service is
669 writable by the user connected to the service. In particular the user
670 "nobody" often has problems with printing, even if it worked with an
671 earlier version of Samba. Try creating another guest user other than
674 Make sure that the user specified in the service is permitted to use
677 Check the debug log produced by smbd. Search for the printer name and
678 see if the log turns up any clues. Note that error messages to do with
679 a service ipc$ are meaningless - they relate to the way the client
680 attempts to retrieve status information when using the LANMAN1
683 If using WfWg then you need to set the default protocol to TCP/IP, not
684 Netbeui. This is a WfWg bug.
686 If using the Lanman1 protocol (the default) then try switching to
687 coreplus. Also not that print status error messages don't mean
688 printing won't work. The print status is received by a different
692 2.8. My programs install on the server OK, but refuse to work prop-
696 There are numerous possible reasons for this, but one MAJOR
697 possibility is that your software uses locking. Make sure you are
698 using Samba 1.6.11 or later. It may also be possible to work around
699 the problem by setting "locking=no" in the Samba configuration file
700 for the service the software is installed on. This should be regarded
701 as a strictly temporary solution.
703 In earlier Samba versions there were some difficulties with the very
704 latest Microsoft products, particularly Excel 5 and Word for Windows
705 6. These should have all been solved. If not then please let Andrew
706 Tridgell know via email at samba-bugs@samba.anu.edu.au.
709 2.9. My "server string" doesn't seem to be recognised
712 OR My client reports the default setting, eg. "Samba 1.9.15p4",
713 instead of what I have changed it to in the smb.conf file.
715 You need to use the -C option in nmbd. The "server string" affects
716 what smbd puts out and -C affects what nmbd puts out.
718 Current versions of Samba (1.9.16 +) have combined these options into
719 the "server string" field of smb.conf, -C for nmbd is now obsolete.
722 2.10. My client reports "This server is not configured to list shared
726 Your guest account is probably invalid for some reason. Samba uses the
727 guest account for browsing in smbd. Check that your guest account is
730 See also 'guest account' in smb.conf man page.
733 2.11. Log message "you appear to have a trapdoor uid system"
736 This can have several causes. It might be because you are using a uid
737 or gid of 65535 or -1. This is a VERY bad idea, and is a big security
738 hole. Check carefully in your /etc/passwd file and make sure that no
739 user has uid 65535 or -1. Especially check the "nobody" user, as many
740 broken systems are shipped with nobody setup with a uid of 65535.
742 It might also mean that your OS has a trapdoor uid/gid system :-)
744 This means that once a process changes effective uid from root to
745 another user it can't go back to root. Unfortunately Samba relies on
746 being able to change effective uid from root to non-root and back
747 again to implement its security policy. If your OS has a trapdoor uid
748 system this won't work, and several things in Samba may break. Less
749 things will break if you use user or server level security instead of
750 the default share level security, but you may still strike problems.
752 The problems don't give rise to any security holes, so don't panic,
753 but it does mean some of Samba's capabilities will be unavailable. In
754 particular you will not be able to connect to the Samba server as two
755 different uids at once. This may happen if you try to print as a
756 "guest" while accessing a share as a normal user. It may also affect
757 your ability to list the available shares as this is normally done as
760 Complain to your OS vendor and ask them to fix their system.
762 Note: the reason why 65535 is a VERY bad choice of uid and gid is that
763 it casts to -1 as a uid, and the setreuid() system call ignores (with
764 no error) uid changes to -1. This means any daemon attempting to run
765 as uid 65535 will actually run as root. This is not good!
768 3. Common client questions
773 3.1. Are there any Macintosh clients for Samba?
776 Yes! Thursby now have a CIFS Client / Server called DAVE - see
777 <http://www.thursby.com/>. They test it against Windows 95, Windows
778 NT and samba for compatibility issues. At the time of writing, DAVE
779 was at version 1.0.1. The 1.0.0 to 1.0.1 update is available as a free
780 download from the Thursby web site (the speed of finder copies has
781 been greatly enhanced, and there are bug-fixes included).
783 Alternatives - There are two free implementations of AppleTalk for
784 several kinds of UNIX machnes, and several more commercial ones.
785 These products allow you to run file services and print services
786 natively to Macintosh users, with no additional support required on
787 the Macintosh. The two free omplementations are Netatalk,
788 <http://www.umich.edu/~rsug/netatalk/>, and CAP,
789 <http://www.cs.mu.oz.au/appletalk/atalk.html>. What Samba offers MS
790 Windows users, these packages offer to Macs. For more info on these
791 packages, Samba, and Linux (and other UNIX-based systems) see
792 <http://www.eats.com/linux_mac_win.html>
793 3.2. Session request failed (131,130)" error
796 The following answer is provided by John E. Miller:
798 I'll assume that you're able to ping back and forth between the
799 machines by IP address and name, and that you're using some security
800 model where you're confident that you've got user IDs and passwords
801 right. The logging options (-d3 or greater) can help a lot with that.
802 DNS and WINS configuration can also impact connectivity as well.
804 Now, on to 'scope id's. Somewhere in your Win95 TCP/IP network
805 configuration (I'm too much of an NT bigot to know where it's located
806 in the Win95 setup, but I'll have to learn someday since I teach for a
807 Microsoft Solution Provider Authorized Tech Education Center - what an
808 acronym...) Note: It's under Control Panel | Network | TCP/IP | WINS
809 Configuration there's a little text entry field called something like
811 This field essentially creates 'invisible' sub-workgroups on the same
812 wire. Boxes can only see other boxes whose Scope IDs are set to the
813 exact same value - it's sometimes used by OEMs to configure their
814 boxes to browse only other boxes from the same vendor and, in most
815 environments, this field should be left blank. If you, in fact, have
816 something in this box that EXACT value (case-sensitive!) needs to be
817 provided to smbclient and nmbd as the -i (lowercase) parameter. So, if
818 your Scope ID is configured as the string 'SomeStr' in Win95 then
819 you'd have to use smbclient -iSomeStr otherparms in connecting to it.
822 3.3. How do I synchronise my PC's clock with my Samba server?
825 To syncronize your PC's clock with your Samba server:
827 o Copy timesync.pif to your windows directory
829 o timesync.pif can be found at:
830 <http://samba.canberra.edu.au/pub/samba/binaries/miscellaneous/timesync.pif>
832 o Add timesync.pif to your 'Start Up' group/folder
834 o Open the properties dialog box for the program/icon
836 o Make sure the 'Run Minimized' option is set in program 'Properties'
838 o Change the command line section that reads \sambahost to reflect
839 the name of your server.
841 o Close the properties dialog box by choosing 'OK'
843 Each time you start your computer (or login for Win95) your PC will
844 synchronize it's clock with your Samba server.
846 Alternativley, if you clients support Domain Logons, you can setup
847 Domain Logons with Samba - see: BROWSING.txt
848 <ftp://samba.anu.edu.au/pub/samba/docs/BROWSING.txt> *** for more
854 NET TIME \\%L /SET /YES
859 as one of the lines in the logon script.
861 3.4. Problems with WinDD, NTrigue, WinCenterPro etc
864 All of the above programs are applications that sit on an NT box and
865 allow multiple users to access the NT GUI applications from remote
866 workstations (often over X).
868 What has this got to do with Samba? The problem comes when these users
869 use filemanager to mount shares from a Samba server. The most common
870 symptom is that the first user to connect get correct file permissions
871 and has a nice day, but subsequent connections get logged in as the
872 same user as the first person to login. They find that they cannot
873 access files in their own home directory, but that they can access
874 files in the first users home directory (maybe not such a nice day
877 Why does this happen? The above products all share a common heritage
878 (and code base I believe). They all open just a single TCP based SMB
879 connection to the Samba server, and requests from all users are piped
880 over this connection. This is unfortunate, but not fatal.
882 It means that if you run your Samba server in share level security
883 (the default) then things will definately break as described above.
884 The share level SMB security model has no provision for multiple user
885 IDs on the one SMB connection. See security_level.txt
886 <ftp://samba.anu.edu.au/pub/samba/docs/security_level.txt> in the docs
887 for more info on share/user/server level security.
889 If you run in user or server level security then you have a chance,
890 but only if you have a recent version of Samba (at least 1.9.15p6). In
891 older versions bugs in Samba meant you still would have had problems.
893 If you have a trapdoor uid system in your OS then it will never work
894 properly. Samba needs to be able to switch uids on the connection and
895 it can't if your OS has a trapdoor uid system. You'll know this
896 because Samba will note it in your logs.
898 Also note that you should not use the magic "homes" share name with
899 products like these, as otherwise all users will end up with the same
900 home directory. Use \serversername instead.
903 3.5. Problem with printers under NT
906 This info from Stefan Hergeth hergeth@f7axp1.informatik.fh-muenchen.de
909 A network-printer (with ethernetcard) is connected to the NT-Clients
910 via our UNIX-Fileserver (SAMBA-Server), like the configuration told by
911 Matthew Harrell harrell@leech.nrl.navy.mil (see WinNT.txt)
913 1. If a user has choosen this printer as the default printer in his
914 NT-Session and this printer is not connected to the network (e.g.
915 switched off) than this user has a problem with the SAMBA-
916 connection of his filesystems. It's very slow.
918 2. If the printer is connected to the network everything works fine.
920 3. When the smbd ist started with debug level 3, you can see that the
921 NT spooling system try to connect to the printer many times. If the
922 printer ist not connected to the network this request fails and the
923 NT spooler is wasting a lot of time to connect to the printer
924 service. This seems to be the reason for the slow network
927 4. Maybe it's possible to change this behaviour by setting different
928 printer properties in the Print-Manager-Menu of NT, but i didn't
932 3.6. Why are my file's timestamps off by an hour, or by a few hours?
935 This is from Paul Eggert eggert@twinsun.com.
937 Most likely it's a problem with your time zone settings.
939 Internally, Samba maintains time in traditional Unix format, namely,
940 the number of seconds since 1970-01-01 00:00:00 Universal Time (or
941 ``GMT''), not counting leap seconds.
943 On the server side, Samba uses the Unix TZ variable to convert
944 internal timestamps to and from local time. So on the server side,
945 there are two things to get right.
947 1. The Unix system clock must have the correct Universal time. Use
948 the shell command "sh -c 'TZ=UTC0 date'" to check this.
950 2. The TZ environment variable must be set on the server before Samba
951 is invoked. The details of this depend on the server OS, but
952 typically you must edit a file whose name is /etc/TIMEZONE or
953 /etc/default/init, or run the command `zic -l'.
955 3. TZ must have the correct value.
957 a. If possible, use geographical time zone settings (e.g.
958 TZ='America/Los_Angeles' or perhaps TZ=':US/Pacific'). These
959 are supported by most popular Unix OSes, are easier to get
960 right, and are more accurate for historical timestamps. If your
961 operating system has out-of-date tables, you should be able to
962 update them from the public domain time zone tables at
963 <ftp://elsie.nci.nih.gov/pub/>.
965 b. If your system does not support geographical timezone settings,
966 you must use a Posix-style TZ strings, e.g.
967 TZ='PST8PDT,M4.1.0/2,M10.5.0/2' for US Pacific time. Posix TZ
968 strings can take the following form (with optional items in
971 StdOffset[Dst[Offset],Date/Time,Date/Time]
976 o `Std' is the standard time designation (e.g. `PST').
978 o `Offset' is the number of hours behind UTC (e.g. `8'). Prepend
979 a `-' if you are ahead of UTC, and append `:30' if you are at a
980 half-hour offset. Omit all the remaining items if you do not
981 use daylight-saving time.
983 o `Dst' is the daylight-saving time designation (e.g. `PDT').
985 The optional second `Offset' is the number of hours that
986 daylight-saving time is behind UTC. The default is 1 hour ahead
989 o `Date/Time,Date/Time' specify when daylight-saving time starts
990 and ends. The format for a date is `Mm.n.d', which specifies
991 the dth day (0 is Sunday) of the nth week of the mth month,
992 where week 5 means the last such day in the month. The format
993 for a time is hh:mm[:ss], using a 24-hour clock.
995 Other Posix string formats are allowed but you don't want to
998 On the client side, you must make sure that your client's clock and
999 time zone is also set appropriately. [I don't know how to do
1000 this.] Samba traditionally has had many problems dealing with time
1001 zones, due to the bizarre ways that Microsoft network protocols
1002 handle time zones. A common symptom is for file timestamps to be
1003 off by an hour. To work around the problem, try disconnecting from
1004 your Samba server and then reconnecting to it; or upgrade your
1005 Samba server to 1.9.16alpha10 or later.
1008 3.7. How do I set the printer driver name correctly?
1011 Question: On NT, I opened "Printer Manager" and "Connect to Printer".
1013 in the box of printer. I got the following error message:
1016 You do not have sufficient access to your machine
1017 to connect to the selected printer, since a driver
1018 needs to be installed locally.
1025 In the more recent versions of Samba you can now set the "printer
1026 driver" in smb.conf. This tells the client what driver to use. For
1030 printer driver = HP LaserJet 4L
1035 with this, NT knows to use the right driver. You have to get this
1036 string exactly right.
1038 To find the exact string to use, you need to get to the dialog box in
1039 your client where you select which printer driver to install. The
1040 correct strings for all the different printers are shown in a listbox
1043 You could also try setting the driver to NULL like this:
1046 printer driver = NULL
1051 this is effectively what older versions of Samba did, so if that
1052 worked for you then give it a go. If this does work then let us know
1053 via samba-bugs@samba.anu.edu.au, and we'll make it the default. Currently
1054 the default is a 0 length string.
1057 3.8. I've applied NT 4.0 SP3, and now I can't access Samba shares,
1061 As of SP3, Microsoft has decided that they will no longer default to
1062 passing clear text passwords over the network. To enable access to
1063 Samba shares from NT 4.0 SP3, you must do ONE of two things:
1065 1. Set the Samba configuration option 'security = user' and implement
1066 all of the stuff detailed in ENCRYPTION.txt
1067 <ftp://samba.anu.edu.au/pub/samba/docs/ENCRYPTION.txt>.
1069 2. Follow Microsoft's directions for setting your NT box to allow
1070 plain text passwords. see Knowledge Base Article Q166730
1071 <http://www.microsoft.com/kb/articles/q166/7/30.htm>
1074 4. Specific client application problems
1079 4.1. MS Office Setup reports "Cannot change properties of 'MSOF-
1083 When installing MS Office on a Samba drive for which you have admin
1084 user permissions, ie. admin users = username, you will find the setup
1085 program unable to complete the installation.
1087 To get around this problem, do the installation without admin user
1088 permissions The problem is that MS Office Setup checks that a file is
1089 rdonly by trying to open it for writing.
1091 Admin users can always open a file for writing, as they run as root.
1092 You just have to install as a non-admin user and then use "chown -R"
1100 5.1. Is Samba Year 2000 compliant?
1103 The CIFS protocol that Samba implements negotiates times in various
1104 formats, all of which are able to cope with dates beyond 2000.