preparing for release of 2.0.0beta4
[Samba/gbeck.git] / docs / faq / Samba-Server-FAQ.sgml
blob6a53fc068080ecf301d367b6bf0cfdff7599c021
1 <!doctype linuxdoc system> <!-- -*- SGML -*- -->
2 <!--
3 v 0.1 23 Aug 1997 Dan Shearer
4 Original Samba-Client-FAQ.sgml from Paul's sambafaq.sgml
5 v 0.2 25 Aug 1997 Dan
6 v 0.3 7 Oct 1997 Paul, changed email address from ictinus@lake... to ictinus@samba.anu
7 -->
10 <article>
12 <title> Samba Server FAQ
14 <author>Dan Shearer & Paul Blackman, <tt>ictinus@samba.org</tt>
16 <date>v 0.3, 7 Oct '97
18 <abstract> This is the <em>Server</em> Frequently Asked Questions (FAQ)
19 document for Samba, the free and very popular SMB and CIFS server
20 product. A general <url url="Samba-meta-FAQ.html" name="meta FAQ">
21 exists and also a companion <url url="Samba-Client-FAQ.html"
22 name="Client FAQ">, together with more detailed HOWTO documents on
23 topics to do with Samba software. This is current to Samba version
24 1.9.17. Please send any corrections to the author.
26 </abstract>
28 <toc>
30 <sect>What is Samba?<p><label id="WhatIsSamba">
32 See the <url url="Samba-meta-FAQ.html#introduction" name="meta FAQ
33 introduction"> if you don't have any idea what Samba does.
35 Samba has many features that are not supported in other CIFS and SMB
36 implementations, all of which are commercial. It approaches some
37 problems from a different angle.
39 Some of its features include:
40 <itemize>
41 <item>extremely dynamic runtime configuration
42 <item>host as well as username/password security
43 <item>scriptable SMB client
44 <item>automatic home directory exporting
45 <item>automatic printer exporting
46 <item>intelligent dead connection timeouts
47 <item>guest connections
48 </itemize>
50 Look at the <url url="samba-man-index.html" name="manual pages"> included with the package for a full list of
51 features. The components of the suite are (in summary):
53 <descrip>
55 <tag/smbd/ the SMB server. This handles actual connections from clients,
56 doing all the interfacing with the <url
57 url="Samba-meta-FAQ.html#DomainModeSecurity" name="authentication
58 database"> for file, permission and username work.
60 <tag/nmbd/ the NetBIOS name server, which helps clients locate servers,
61 maintaining the <url url="Samba-meta-FAQ.html#BrowseAndDomainDefs"
62 name="authentication database"> doing the browsing work and managing
63 domains as this capability is being built into Samba.
65 <tag/smbclient/ the scriptable commandline SMB client program.
66 Useful for automated work, printer filters and testing purposes. It is
67 more CIFS-compliant than most commercial implementations. Note that this
68 is not a filesystem. The Samba team does not supply a network filesystem
69 driver, although the smbfs filesystem for Linux is derived from
70 smbclient code.
72 <tag/smbrun/ a little 'glue' program to help the server run
73 external programs.
75 <tag/testprns/ a program to test server access to printers
77 <tag/testparms/ a program to test the Samba configuration file
78 for correctness
80 <tag/smb.conf/ the Samba configuration file
82 <tag/examples/ many examples have been put together for the different
83 operating systems that Samba supports.
85 <tag/Documentation!/ DON'T neglect to read it - you will save a great
86 deal of time!
88 </descrip>
90 <sect>How do I get the CIFS, SMB and NetBIOS protocols?<p><label id="ServerProtocols">
92 See the <url url="Samba-meta-FAQ.html#CifsSmb" name="meta FAQ
93 on CIFS and SMB"> if you don't have any idea what these protocols are.
95 CIFS and SMB are implemented by the main Samba fileserving daemon, smbd.
96 [.....]
98 nmbd speaks a limited amount of CIFS (...) but is mostly concerned with
99 NetBIOS. NetBIOS is [....]
101 RFC1001, RFC1002 [...]
103 So, provided you have got Samba correctly installed and running you have
104 all three of these protocols. Some operating systems already come with
105 stacks for all or some of these, such as SCO Unix, OS/2 and [...] In this
106 case you must [...]
108 <sect1>What server operating systems are supported?<p><label id="PortInfo">
110 At the last count, Samba runs on about 40 operating systems! This
111 section looks at general questions about running Samba on the different
112 platforms. Issues specific to particular operating systems are dealt
113 with in elsewhere in this document.
115 Many of the ports have been done by people outside the Samba team keen
116 to get the advantages of Samba. The Samba team is currently trying to
117 bring as many of these ports as possible into the main source tree and
118 integrate the documentation. Samba is an integration tool, and so it has
119 been made as easy as possible to port. The platforms most widely used
120 and thus best tested are Linux and SunOS.
122 This migration has not been completed yet. This means that some
123 documentation is on web sites [...]
125 There are two main families of Samba ports, Unix and other. The Unix
126 ports cover anything that remotely resembles Unix and includes some
127 extremely old products as well as best-sellers, tiny PCs to massive
128 multiprocessor machines supporting hundreds of thousands of users. Samba
129 has been run on more than 30 Unix and Unix-like operating systems.
131 <sect2>Running Samba on a Unix or Unix-like system<p><label id="OnUnix">
133 <url url="../UNIX-SMB.txt"> describes some of the issues that confront a
134 SMB implementation on unix, and how Samba copes with them. They may help
135 people who are looking at unix<->PC interoperability.
137 There is great variation between Unix implementations, especially those
138 not adhering to the Common Unix Specification agreed to in 1996. Things
139 that can be quite tricky are [.....]
141 There are also some considerable advantages conferred on Samba running
142 under Unix compared to, say, Windows NT or LAN Server. Unix has [...]
144 At time of writing, the Makefile claimed support for:
145 <itemize>
146 <item> A/UX 3.0
147 <item> AIX
148 <item> Altos Series 386/1000
149 <item> Amiga
150 <item> Apollo Domain/OS sr10.3
151 <item> BSDI
152 <item> B.O.S. (Bull Operating System)
153 <item> Cray, Unicos 8.0
154 <item> Convex
155 <item> DGUX.
156 <item> DNIX.
157 <item> FreeBSD
158 <item> HP-UX
159 <item> Intergraph.
160 <item> Linux with/without shadow passwords and quota
161 <item> LYNX 2.3.0
162 <item> MachTen (a unix like system for Macintoshes)
163 <item> Motorola 88xxx/9xx range of machines
164 <item> NetBSD
165 <item> NEXTSTEP Release 2.X, 3.0 and greater (including OPENSTEP for Mach).
166 <item> OS/2 using EMX 0.9b
167 <item> OSF1
168 <item> QNX 4.22
169 <item> RiscIX.
170 <item> RISCOs 5.0B
171 <item> SEQUENT.
172 <item> SCO (including: 3.2v2, European dist., OpenServer 5)
173 <item> SGI.
174 <item> SMP_DC.OSx v1.1-94c079 on Pyramid S series
175 <item> SONY NEWS, NEWS-OS (4.2.x and 6.1.x)
176 <item> SUNOS 4
177 <item> SUNOS 5.2, 5.3, and 5.4 (Solaris 2.2, 2.3, and '2.4 and later')
178 <item> Sunsoft ISC SVR3V4
179 <item> SVR4
180 <item> System V with some berkely extensions (Motorola 88k R32V3.2).
181 <item> ULTRIX.
182 <item> UNIXWARE
183 <item> UXP/DS
184 </itemize>
187 <sect2>Running Samba on systems unlike Unix<p><label id="OnUnlikeUnix">
189 More recently Samba has been ported to a number of operating systems
190 which can provide a BSD Unix-like implementation of TCP/IP sockets.
191 These include OS/2, Netware, VMS, StratOS, Amiga and MVS. BeOS,
192 Windows NT and several others are being worked on but not yet available
193 for use.
195 Home pages for these ports are:
197 [... ]
199 <sect1>Exporting server resources with Samba<p><label id="Exporting">
201 Files, printers, CD ROMs and other local devices. Network devices,
202 including networked filesystems and remote printer queues. Other devices
203 such as [....]
205 1.4) Configuring SHARES
206 1.4.1) Homes service
207 1.4.2) Public services
208 1.4.3) Application serving
209 1.4.4) Team sharing a Samba resource
211 1.5) Printer configuration
212 1.5.1) Berkeley LPR/LPD systems
213 1.5.2) ATT SysV lp systems
214 1.5.3) Using a private printcap file
215 1.5.4) Use of the smbprint utility
216 1.5.5) Printing from Windows to Unix
217 1.5.6) Printing from Unix to Windows
219 <sect1>Name Resolution and Browsing<p><label id="NameBrowsing">
221 See also <url url="../BROWSING.txt">
223 1.6) Name resolution issues
224 1.6.1) LMHOSTS file and when to use it
225 1.6.2) configuring WINS (support, server, proxy)
226 1.6.3) configuring DNS proxy
228 1.7) Problem Diagnosis
229 1.8) What NOT to do!!!!
231 3.2) Browse list managment
232 3.3) Name resolution mangement
235 <sect1>Handling SMB Encryption<p><label id="SMBEncryptionSteps">
237 SMB encryption is ...
239 ...in <url url="../ENCRYPTION.txt"> there is...
241 Samba compiled with libdes - enabling encrypted passwords
244 <sect2>Laws in different countries affecting Samba<p><label id="CryptoLaws">
246 <sect2>Relationship between encryption and Domain Authentication<p>
248 <sect1> Files and record locking
250 3.1.1) Old DOS clients
251 3.1.2) Opportunistic locking and the consequences
252 3.1.3) Files caching under Windows for Workgroups, Win95 and NT
254 Some of the foregoing links into Client-FAQ
256 <sect1>Managing Samba Log files<p><label id="LogFiles">
258 <sect1>I can't see the Samba server in any browse lists!<p><label id="no_browse">
259 See <url url="ftp://samba.org/pub/samba/BROWSING.txt" name="BROWSING.txt">
260 for more information on browsing. Browsing.txt can also be found
261 in the docs directory of the Samba source.
263 If your GUI client does not permit you to select non-browsable
264 servers, you may need to do so on the command line. For example, under
265 Lan Manager you might connect to the above service as disk drive M:
266 thusly:
267 <tscreen><verb>
268 net use M: \\mary\fred
269 </verb></tscreen>
270 The details of how to do this and the specific syntax varies from
271 client to client - check your client's documentation.
273 <sect1>Some files that I KNOW are on the server doesn't show up when I view the files from my client! <p> <label id="missing_files">
274 See the next question.
276 <sect1>Some files on the server show up with really wierd filenames when I view the files from my client! <p> <label id="strange_filenames">
277 If you check what files are not showing up, you will note that they
278 are files which contain upper case letters or which are otherwise not
279 DOS-compatible (ie, they are not legal DOS filenames for some reason).
281 The Samba server can be configured either to ignore such files
282 completely, or to present them to the client in "mangled" form. If you
283 are not seeing the files at all, the Samba server has most likely been
284 configured to ignore them. Consult the man page smb.conf(5) for
285 details of how to change this - the parameter you need to set is
286 "mangled names = yes".
288 <sect1>My client reports "cannot locate specified computer" or similar<p><label id="cant_see_server">
289 This indicates one of three things: You supplied an incorrect server
290 name, the underlying TCP/IP layer is not working correctly, or the
291 name you specified cannot be resolved.
293 After carefully checking that the name you typed is the name you
294 should have typed, try doing things like pinging a host or telnetting
295 to somewhere on your network to see if TCP/IP is functioning OK. If it
296 is, the problem is most likely name resolution.
298 If your client has a facility to do so, hardcode a mapping between the
299 hosts IP and the name you want to use. For example, with Man Manager
300 or Windows for Workgroups you would put a suitable entry in the file
301 LMHOSTS. If this works, the problem is in the communication between
302 your client and the netbios name server. If it does not work, then
303 there is something fundamental wrong with your naming and the solution
304 is beyond the scope of this document.
306 If you do not have any server on your subnet supplying netbios name
307 resolution, hardcoded mappings are your only option. If you DO have a
308 netbios name server running (such as the Samba suite's nmbd program),
309 the problem probably lies in the way it is set up. Refer to Section
310 Two of this FAQ for more ideas.
312 By the way, remember to REMOVE the hardcoded mapping before further
313 tests :-)
315 <sect1>My client reports "cannot locate specified share name" or similar<p> <label id="cant_see_share">
316 This message indicates that your client CAN locate the specified
317 server, which is a good start, but that it cannot find a service of
318 the name you gave.
320 The first step is to check the exact name of the service you are
321 trying to connect to (consult your system administrator). Assuming it
322 exists and you specified it correctly (read your client's doco on how
323 to specify a service name correctly), read on:
325 <itemize>
326 <item> Many clients cannot accept or use service names longer than eight characters.
327 <item> Many clients cannot accept or use service names containing spaces.
328 <item> Some servers (not Samba though) are case sensitive with service names.
329 <item> Some clients force service names into upper case.
330 </itemize>
332 <sect1>My client reports "cannot find domain controller", "cannot log on to the network" or similar <p> <label id="cant_see_net">
333 Nothing is wrong - Samba does not implement the primary domain name
334 controller stuff for several reasons, including the fact that the
335 whole concept of a primary domain controller and "logging in to a
336 network" doesn't fit well with clients possibly running on multiuser
337 machines (such as users of smbclient under Unix). Having said that,
338 several developers are working hard on building it in to the next
339 major version of Samba. If you can contribute, send a message to
340 <htmlurl url="mailto:samba-bugs@anu.edu.au" name="samba-bugs@anu.edu.au"> !
342 Seeing this message should not affect your ability to mount redirected
343 disks and printers, which is really what all this is about.
345 For many clients (including Windows for Workgroups and Lan Manager),
346 setting the domain to STANDALONE at least gets rid of the message.
348 <sect1>Printing doesn't work :-(<p> <label id="no_printing">
350 Make sure that the specified print command for the service you are
351 connecting to is correct and that it has a fully-qualified path (eg.,
352 use "/usr/bin/lpr" rather than just "lpr", if you happen to be using
353 Unix).
355 Make sure that the spool directory specified for the service is
356 writable by the user connected to the service.
358 Make sure that the user specified in the service is permitted to use
359 the printer.
361 Check the debug log produced by smbd. Search for the printer name and
362 see if the log turns up any clues. Note that error messages to do with
363 a service ipc$ are meaningless - they relate to the way the client
364 attempts to retrieve status information when using the LANMAN1
365 protocol.
367 If using WfWg then you need to set the default protocol to TCP/IP, not
368 Netbeui. This is a WfWg bug.
370 If using the Lanman1 protocol (the default) then try switching to
371 coreplus. Also not that print status error messages don't mean
372 printing won't work. The print status is received by a different
373 mechanism.
375 <sect1>My programs install on the server OK, but refuse to work properly<p><label id="programs_wont_run">
376 There are numerous possible reasons for this, but one MAJOR
377 possibility is that your software uses locking. Make sure you are
378 using Samba 1.6.11 or later. It may also be possible to work around
379 the problem by setting "locking=no" in the Samba configuration file
380 for the service the software is installed on. This should be regarded
381 as a strictly temporary solution.
383 In earlier Samba versions there were some difficulties with the very
384 latest Microsoft products, particularly Excel 5 and Word for Windows
385 6. These should have all been solved. If not then please let Andrew
386 Tridgell know via email at <htmlurl url="mailto:samba-bugs@anu.edu.au" name="samba-bugs@anu.edu.au">.
388 <sect1>My "server string" doesn't seem to be recognised<p><label id="bad_server_string">
389 OR My client reports the default setting, eg. "Samba 1.9.15p4", instead
390 of what I have changed it to in the smb.conf file.
392 You need to use the -C option in nmbd. The "server string" affects
393 what smbd puts out and -C affects what nmbd puts out.
395 Current versions of Samba (1.9.16 +) have combined these options into
396 the "server string" field of smb.conf, -C for nmbd is now obsolete.
398 <sect1>My client reports "This server is not configured to list shared resources" <p> <label id="cant_list_shares">
399 Your guest account is probably invalid for some reason. Samba uses the
400 guest account for browsing in smbd. Check that your guest account is
401 valid.
403 See also 'guest account' in smb.conf man page.
405 <sect1>Issues specific to Unix and Unix-like systems<p><label id="UnixIssues">
407 <sect2>Printing doesn't work with my Unix Samba server<p> <label id="no_printing">
409 The user "nobody" often has problems with printing, even if it worked
410 with an earlier version of Samba. Try creating another guest user other
411 than "nobody".
413 <sect2>Log message "you appear to have a trapdoor uid system" <p><label id="trapdoor_uid">
414 This can have several causes. It might be because you are using a uid
415 or gid of 65535 or -1. This is a VERY bad idea, and is a big security
416 hole. Check carefully in your /etc/passwd file and make sure that no
417 user has uid 65535 or -1. Especially check the "nobody" user, as many
418 broken systems are shipped with nobody setup with a uid of 65535.
420 It might also mean that your OS has a trapdoor uid/gid system :-)
422 This means that once a process changes effective uid from root to
423 another user it can't go back to root. Unfortunately Samba relies on
424 being able to change effective uid from root to non-root and back
425 again to implement its security policy. If your OS has a trapdoor uid
426 system this won't work, and several things in Samba may break. Less
427 things will break if you use user or server level security instead of
428 the default share level security, but you may still strike
429 problems.
431 The problems don't give rise to any security holes, so don't panic,
432 but it does mean some of Samba's capabilities will be unavailable.
433 In particular you will not be able to connect to the Samba server as
434 two different uids at once. This may happen if you try to print as a
435 "guest" while accessing a share as a normal user. It may also affect
436 your ability to list the available shares as this is normally done as
437 the guest user.
439 Complain to your OS vendor and ask them to fix their system.
441 Note: the reason why 65535 is a VERY bad choice of uid and gid is that
442 it casts to -1 as a uid, and the setreuid() system call ignores (with
443 no error) uid changes to -1. This means any daemon attempting to run
444 as uid 65535 will actually run as root. This is not good!
446 <sect1>Issues specific to IBM OS/2 systems<p><label id="OS2Issues">
448 <url url="http://carol.wins.uva.nl/~leeuw/samba/samba2.html" name="Samba for OS/2">
450 <sect1>Issues specific to IBM MVS systems<p><label id="MVSIssues">
452 <url url="ftp://ftp.mks.com/pub/samba/" name="Samba for OS/390 MVS">
454 <sect1>Issues specific to Digital VMS systems<p><label id="VMSIssues">
456 <sect1>Issues specific to Amiga systems<p><label id="AmigaIssues">
458 <url url="http://www.gbar.dtu.dk/~c948374/Amiga/Samba/" name="Samba for Amiga">
460 There is a mailing list for Samba on the Amiga.
462 Subscribing.
464 Send an email to rask-samba-request@kampsax.dtu.dk with the word subscribe
465 in the message. The list server will use the address in the Reply-To: or
466 From: header field, in that order.
468 Unsubscribing.
470 Send an email to rask-samba-request@kampsax.dtu.dk with the word
471 unsubscribe in the message. The list server will use the address in the
472 Reply-To: or From: header field, in that order. If you are unsure which
473 address you are subscribed with, look at the headers. You should see a
474 "From " (no colon) or Return-Path: header looking something like
476 rask-samba-owner-myname=my.domain@kampsax.dtu.dk
478 where myname=my.domain gives you the address myname@my.domain. This also
479 means that I will always be able to find out which address is causing
480 bounces, for example.
481 List archive.
483 Messages sent to the list are archived in HTML. See the mailing list home
484 page at <URL url="http://www.gbar.dtu.dk/~c948374/Amiga/Samba/mailinglist/">
486 <sect1>Issues specific to Novell IntraNetware systems<p><label id="NetwareIssues">
488 <sect1>Issues specific to Stratos VOS systems<p><label id="NetwareIssues">
490 <url url="ftp://ftp.stratus.com/pub/vos/tools/" name="Samba for Stratus VOS">
492 </article>