Regenerate
[ira/wip.git] / docs / htmldocs / install.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <HTML
3 ><HEAD
4 ><TITLE
5 >How to Install and Test SAMBA</TITLE
6 ><META
7 NAME="GENERATOR"
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.77+"><LINK
9 REL="HOME"
10 TITLE="SAMBA Project Documentation"
11 HREF="samba-howto-collection.html"><LINK
12 REL="UP"
13 TITLE="General installation"
14 HREF="introduction.html"><LINK
15 REL="PREVIOUS"
16 TITLE="General installation"
17 HREF="introduction.html"><LINK
18 REL="NEXT"
19 TITLE="Quick Cross Subnet Browsing / Cross Workgroup Browsing guide"
20 HREF="browsing-quick.html"></HEAD
21 ><BODY
22 CLASS="CHAPTER"
23 BGCOLOR="#FFFFFF"
24 TEXT="#000000"
25 LINK="#0000FF"
26 VLINK="#840084"
27 ALINK="#0000FF"
28 ><DIV
29 CLASS="NAVHEADER"
30 ><TABLE
31 SUMMARY="Header navigation table"
32 WIDTH="100%"
33 BORDER="0"
34 CELLPADDING="0"
35 CELLSPACING="0"
36 ><TR
37 ><TH
38 COLSPAN="3"
39 ALIGN="center"
40 >SAMBA Project Documentation</TH
41 ></TR
42 ><TR
43 ><TD
44 WIDTH="10%"
45 ALIGN="left"
46 VALIGN="bottom"
47 ><A
48 HREF="introduction.html"
49 ACCESSKEY="P"
50 >Prev</A
51 ></TD
52 ><TD
53 WIDTH="80%"
54 ALIGN="center"
55 VALIGN="bottom"
56 ></TD
57 ><TD
58 WIDTH="10%"
59 ALIGN="right"
60 VALIGN="bottom"
61 ><A
62 HREF="browsing-quick.html"
63 ACCESSKEY="N"
64 >Next</A
65 ></TD
66 ></TR
67 ></TABLE
68 ><HR
69 ALIGN="LEFT"
70 WIDTH="100%"></DIV
71 ><DIV
72 CLASS="CHAPTER"
73 ><H1
74 ><A
75 NAME="INSTALL"
76 ></A
77 >Chapter 1. How to Install and Test SAMBA</H1
78 ><DIV
79 CLASS="SECT1"
80 ><H1
81 CLASS="SECT1"
82 ><A
83 NAME="AEN26"
84 ></A
85 >1.1. Read the man pages</H1
86 ><P
87 >The man pages distributed with SAMBA contain 
88         lots of useful info that will help to get you started. 
89         If you don't know how to read man pages then try 
90         something like:</P
91 ><P
92 ><TT
93 CLASS="PROMPT"
94 >$ </TT
95 ><TT
96 CLASS="USERINPUT"
97 ><B
98 >man smbd.8</B
99 ></TT
100 >
101         or 
102         <TT
103 CLASS="PROMPT"
104 >$ </TT
105 ><TT
106 CLASS="USERINPUT"
107 ><B
108 >nroff -man smbd.8 | more
109         </B
110 ></TT
111 > on older unixes.</P
112 ><P
113 >Other sources of information are pointed to 
114         by the Samba web site,<A
115 HREF="http://www.samba.org/"
116 TARGET="_top"
117 >       http://www.samba.org</A
118 ></P
119 ></DIV
120 ><DIV
121 CLASS="SECT1"
122 ><H1
123 CLASS="SECT1"
124 ><A
125 NAME="AEN36"
126 ></A
127 >1.2. Building the Binaries</H1
128 ><P
129 >To do this, first run the program <B
130 CLASS="COMMAND"
131 >./configure
132         </B
133 > in the source directory. This should automatically 
134         configure Samba for your operating system. If you have unusual 
135         needs then you may wish to run</P
136 ><P
137 ><TT
138 CLASS="PROMPT"
139 >root# </TT
140 ><TT
141 CLASS="USERINPUT"
142 ><B
143 >./configure --help
144         </B
145 ></TT
146 ></P
147 ><P
148 >first to see what special options you can enable.
149         Then executing</P
150 ><P
151 ><TT
152 CLASS="PROMPT"
153 >root# </TT
154 ><TT
155 CLASS="USERINPUT"
156 ><B
157 >make</B
158 ></TT
159 ></P
160 ><P
161 >will create the binaries. Once it's successfully 
162         compiled you can use </P
163 ><P
164 ><TT
165 CLASS="PROMPT"
166 >root# </TT
167 ><TT
168 CLASS="USERINPUT"
169 ><B
170 >make install</B
171 ></TT
172 ></P
173 ><P
174 >to install the binaries and manual pages. You can 
175         separately install the binaries and/or man pages using</P
176 ><P
177 ><TT
178 CLASS="PROMPT"
179 >root# </TT
180 ><TT
181 CLASS="USERINPUT"
182 ><B
183 >make installbin
184         </B
185 ></TT
186 ></P
187 ><P
188 >and</P
189 ><P
190 ><TT
191 CLASS="PROMPT"
192 >root# </TT
193 ><TT
194 CLASS="USERINPUT"
195 ><B
196 >make installman
197         </B
198 ></TT
199 ></P
200 ><P
201 >Note that if you are upgrading for a previous version 
202         of Samba you might like to know that the old versions of 
203         the binaries will be renamed with a ".old" extension. You 
204         can go back to the previous version with</P
205 ><P
206 ><TT
207 CLASS="PROMPT"
208 >root# </TT
209 ><TT
210 CLASS="USERINPUT"
211 ><B
212 >make revert
213         </B
214 ></TT
215 ></P
216 ><P
217 >if you find this version a disaster!</P
218 ></DIV
219 ><DIV
220 CLASS="SECT1"
221 ><H1
222 CLASS="SECT1"
223 ><A
224 NAME="AEN64"
225 ></A
226 >1.3. The all important step</H1
227 ><P
228 >At this stage you must fetch yourself a 
229         coffee or other drink you find stimulating. Getting the rest 
230         of the install right can sometimes be tricky, so you will 
231         probably need it.</P
232 ><P
233 >If you have installed samba before then you can skip 
234         this step.</P
235 ></DIV
236 ><DIV
237 CLASS="SECT1"
238 ><H1
239 CLASS="SECT1"
240 ><A
241 NAME="AEN68"
242 ></A
243 >1.4. Create the smb configuration file.</H1
244 ><P
245 >There are sample configuration files in the examples 
246         subdirectory in the distribution. I suggest you read them 
247         carefully so you can see how the options go together in 
248         practice. See the man page for all the options.</P
249 ><P
250 >The simplest useful configuration file would be 
251         something like this:</P
252 ><P
253 ><PRE
254 CLASS="PROGRAMLISTING"
255 >       [global]
256            workgroup = MYGROUP
257
258            [homes]
259               guest ok = no
260               read only = no
261         </PRE
262 ></P
263 ><P
264 >which would allow connections by anyone with an 
265         account on the server, using either their login name or 
266         "homes" as the service name. (Note that I also set the 
267         workgroup that Samba is part of. See BROWSING.txt for details)</P
268 ><P
269 >Note that <B
270 CLASS="COMMAND"
271 >make install</B
272 > will not install 
273         a <TT
274 CLASS="FILENAME"
275 >smb.conf</TT
276 > file. You need to create it 
277         yourself. </P
278 ><P
279 >Make sure you put the smb.conf file in the same place 
280         you specified in the<TT
281 CLASS="FILENAME"
282 >Makefile</TT
283 > (the default is to 
284         look for it in <TT
285 CLASS="FILENAME"
286 >/usr/local/samba/lib/</TT
287 >).</P
288 ><P
289 >For more information about security settings for the 
290         [homes] share please refer to the document UNIX_SECURITY.txt.</P
291 ></DIV
292 ><DIV
293 CLASS="SECT1"
294 ><H1
295 CLASS="SECT1"
296 ><A
297 NAME="AEN82"
298 ></A
299 >1.5. Test your config file with 
300         <B
301 CLASS="COMMAND"
302 >testparm</B
303 ></H1
304 ><P
305 >It's important that you test the validity of your
306         <TT
307 CLASS="FILENAME"
308 >smb.conf</TT
309 > file using the testparm program. 
310         If testparm runs OK then it will list the loaded services. If 
311         not it will give an error message.</P
312 ><P
313 >Make sure it runs OK and that the services look 
314         reasonable before proceeding. </P
315 ><P
316 >Always run testparm again when you change 
317         <TT
318 CLASS="FILENAME"
319 >smb.conf</TT
320 >!</P
321 ></DIV
322 ><DIV
323 CLASS="SECT1"
324 ><H1
325 CLASS="SECT1"
326 ><A
327 NAME="AEN90"
328 ></A
329 >1.6. Starting the smbd and nmbd</H1
330 ><P
331 >You must choose to start smbd and nmbd either
332         as daemons or from <B
333 CLASS="COMMAND"
334 >inetd</B
335 >. Don't try
336         to do both!  Either you can put them in <TT
337 CLASS="FILENAME"
338 >       inetd.conf</TT
339 > and have them started on demand
340         by <B
341 CLASS="COMMAND"
342 >inetd</B
343 >, or you can start them as
344         daemons either from the command line or in <TT
345 CLASS="FILENAME"
346 >       /etc/rc.local</TT
347 >. See the man pages for details
348         on the command line options. Take particular care to read
349         the bit about what user you need to be in order to start
350         Samba.  In many cases you must be root.</P
351 ><P
352 >The main advantage of starting <B
353 CLASS="COMMAND"
354 >smbd</B
355 >
356         and <B
357 CLASS="COMMAND"
358 >nmbd</B
359 > using the recommended daemon method
360         is that they will respond slightly more quickly to an initial connection
361         request.</P
362 ><DIV
363 CLASS="SECT2"
364 ><H2
365 CLASS="SECT2"
366 ><A
367 NAME="AEN100"
368 ></A
369 >1.6.1. Starting from inetd.conf</H2
370 ><P
371 >NOTE; The following will be different if 
372                 you use NIS or NIS+ to distributed services maps.</P
373 ><P
374 >Look at your <TT
375 CLASS="FILENAME"
376 >/etc/services</TT
377 >. 
378                 What is defined at port 139/tcp. If nothing is defined 
379                 then add a line like this:</P
380 ><P
381 ><TT
382 CLASS="USERINPUT"
383 ><B
384 >netbios-ssn     139/tcp</B
385 ></TT
386 ></P
387 ><P
388 >similarly for 137/udp you should have an entry like:</P
389 ><P
390 ><TT
391 CLASS="USERINPUT"
392 ><B
393 >netbios-ns     137/udp</B
394 ></TT
395 ></P
396 ><P
397 >Next edit your <TT
398 CLASS="FILENAME"
399 >/etc/inetd.conf</TT
400
401                 and add two lines something like this:</P
402 ><P
403 ><PRE
404 CLASS="PROGRAMLISTING"
405 >               netbios-ssn stream tcp nowait root /usr/local/samba/bin/smbd smbd 
406                 netbios-ns dgram udp wait root /usr/local/samba/bin/nmbd nmbd 
407                 </PRE
408 ></P
409 ><P
410 >The exact syntax of <TT
411 CLASS="FILENAME"
412 >/etc/inetd.conf</TT
413
414                 varies between unixes. Look at the other entries in inetd.conf 
415                 for a guide.</P
416 ><P
417 >NOTE: Some unixes already have entries like netbios_ns 
418                 (note the underscore) in <TT
419 CLASS="FILENAME"
420 >/etc/services</TT
421 >. 
422                 You must either edit <TT
423 CLASS="FILENAME"
424 >/etc/services</TT
425 > or
426                 <TT
427 CLASS="FILENAME"
428 >/etc/inetd.conf</TT
429 > to make them consistent.</P
430 ><P
431 >NOTE: On many systems you may need to use the 
432                 "interfaces" option in smb.conf to specify the IP address 
433                 and netmask of your interfaces. Run <B
434 CLASS="COMMAND"
435 >ifconfig</B
436
437                 as root if you don't know what the broadcast is for your
438                 net. <B
439 CLASS="COMMAND"
440 >nmbd</B
441 > tries to determine it at run 
442                 time, but fails on some unixes. See the section on "testing nmbd" 
443                 for a method of finding if you need to do this.</P
444 ><P
445 >!!!WARNING!!! Many unixes only accept around 5 
446                 parameters on the command line in <TT
447 CLASS="FILENAME"
448 >inetd.conf</TT
449 >. 
450                 This means you shouldn't use spaces between the options and 
451                 arguments, or you should use a script, and start the script 
452                 from <B
453 CLASS="COMMAND"
454 >inetd</B
455 >.</P
456 ><P
457 >Restart <B
458 CLASS="COMMAND"
459 >inetd</B
460 >, perhaps just send 
461                 it a HUP. If you have installed an earlier version of <B
462 CLASS="COMMAND"
463 >               nmbd</B
464 > then you may need to kill nmbd as well.</P
465 ></DIV
466 ><DIV
467 CLASS="SECT2"
468 ><H2
469 CLASS="SECT2"
470 ><A
471 NAME="AEN129"
472 ></A
473 >1.6.2. Alternative: starting it as a daemon</H2
474 ><P
475 >To start the server as a daemon you should create 
476                 a script something like this one, perhaps calling 
477                 it <TT
478 CLASS="FILENAME"
479 >startsmb</TT
480 >.</P
481 ><P
482 ><PRE
483 CLASS="PROGRAMLISTING"
484 >               #!/bin/sh
485                 /usr/local/samba/bin/smbd -D 
486                 /usr/local/samba/bin/nmbd -D 
487                 </PRE
488 ></P
489 ><P
490 >then make it executable with <B
491 CLASS="COMMAND"
492 >chmod 
493                 +x startsmb</B
494 ></P
495 ><P
496 >You can then run <B
497 CLASS="COMMAND"
498 >startsmb</B
499 > by 
500                 hand or execute it from <TT
501 CLASS="FILENAME"
502 >/etc/rc.local</TT
503 >
504                 </P
505 ><P
506 >To kill it send a kill signal to the processes 
507                 <B
508 CLASS="COMMAND"
509 >nmbd</B
510 > and <B
511 CLASS="COMMAND"
512 >smbd</B
513 >.</P
514 ><P
515 >NOTE: If you use the SVR4 style init system then 
516                 you may like to look at the <TT
517 CLASS="FILENAME"
518 >examples/svr4-startup</TT
519 >
520                 script to make Samba fit into that system.</P
521 ></DIV
522 ></DIV
523 ><DIV
524 CLASS="SECT1"
525 ><H1
526 CLASS="SECT1"
527 ><A
528 NAME="AEN145"
529 ></A
530 >1.7. Try listing the shares available on your 
531         server</H1
532 ><P
533 ><TT
534 CLASS="PROMPT"
535 >$ </TT
536 ><TT
537 CLASS="USERINPUT"
538 ><B
539 >smbclient -L 
540         <TT
541 CLASS="REPLACEABLE"
542 ><I
543 >yourhostname</I
544 ></TT
545 ></B
546 ></TT
547 ></P
548 ><P
549 >You should get back a list of shares available on 
550         your server. If you don't then something is incorrectly setup. 
551         Note that this method can also be used to see what shares 
552         are available on other LanManager clients (such as WfWg).</P
553 ><P
554 >If you choose user level security then you may find 
555         that Samba requests a password before it will list the shares. 
556         See the <B
557 CLASS="COMMAND"
558 >smbclient</B
559 > man page for details. (you 
560         can force it to list the shares without a password by
561         adding the option -U% to the command line. This will not work 
562         with non-Samba servers)</P
563 ></DIV
564 ><DIV
565 CLASS="SECT1"
566 ><H1
567 CLASS="SECT1"
568 ><A
569 NAME="AEN154"
570 ></A
571 >1.8. Try connecting with the unix client</H1
572 ><P
573 ><TT
574 CLASS="PROMPT"
575 >$ </TT
576 ><TT
577 CLASS="USERINPUT"
578 ><B
579 >smbclient <TT
580 CLASS="REPLACEABLE"
581 ><I
582 >       //yourhostname/aservice</I
583 ></TT
584 ></B
585 ></TT
586 ></P
587 ><P
588 >Typically the <TT
589 CLASS="REPLACEABLE"
590 ><I
591 >yourhostname</I
592 ></TT
593
594         would be the name of the host where you installed <B
595 CLASS="COMMAND"
596 >       smbd</B
597 >. The <TT
598 CLASS="REPLACEABLE"
599 ><I
600 >aservice</I
601 ></TT
602 > is 
603         any service you have defined in the <TT
604 CLASS="FILENAME"
605 >smb.conf</TT
606
607         file. Try your user name if you just have a [homes] section
608         in <TT
609 CLASS="FILENAME"
610 >smb.conf</TT
611 >.</P
612 ><P
613 >For example if your unix host is bambi and your login 
614         name is fred you would type:</P
615 ><P
616 ><TT
617 CLASS="PROMPT"
618 >$ </TT
619 ><TT
620 CLASS="USERINPUT"
621 ><B
622 >smbclient //bambi/fred
623         </B
624 ></TT
625 ></P
626 ></DIV
627 ><DIV
628 CLASS="SECT1"
629 ><H1
630 CLASS="SECT1"
631 ><A
632 NAME="AEN170"
633 ></A
634 >1.9. Try connecting from a DOS, WfWg, Win9x, WinNT, 
635         Win2k, OS/2, etc... client</H1
636 ><P
637 >Try mounting disks. eg:</P
638 ><P
639 ><TT
640 CLASS="PROMPT"
641 >C:\WINDOWS\&#62; </TT
642 ><TT
643 CLASS="USERINPUT"
644 ><B
645 >net use d: \\servername\service
646         </B
647 ></TT
648 ></P
649 ><P
650 >Try printing. eg:</P
651 ><P
652 ><TT
653 CLASS="PROMPT"
654 >C:\WINDOWS\&#62; </TT
655 ><TT
656 CLASS="USERINPUT"
657 ><B
658 >net use lpt1:
659         \\servername\spoolservice</B
660 ></TT
661 ></P
662 ><P
663 ><TT
664 CLASS="PROMPT"
665 >C:\WINDOWS\&#62; </TT
666 ><TT
667 CLASS="USERINPUT"
668 ><B
669 >print filename
670         </B
671 ></TT
672 ></P
673 ><P
674 >Celebrate, or send me a bug report!</P
675 ></DIV
676 ><DIV
677 CLASS="SECT1"
678 ><H1
679 CLASS="SECT1"
680 ><A
681 NAME="AEN184"
682 ></A
683 >1.10. What If Things Don't Work?</H1
684 ><P
685 >If nothing works and you start to think "who wrote 
686         this pile of trash" then I suggest you do step 2 again (and 
687         again) till you calm down.</P
688 ><P
689 >Then you might read the file DIAGNOSIS.txt and the 
690         FAQ. If you are still stuck then try the mailing list or 
691         newsgroup (look in the README for details). Samba has been 
692         successfully installed at thousands of sites worldwide, so maybe 
693         someone else has hit your problem and has overcome it. You could 
694         also use the WWW site to scan back issues of the samba-digest.</P
695 ><P
696 >When you fix the problem PLEASE send me some updates to the
697         documentation (or source code) so that the next person will find it
698         easier. </P
699 ><DIV
700 CLASS="SECT2"
701 ><H2
702 CLASS="SECT2"
703 ><A
704 NAME="AEN189"
705 ></A
706 >1.10.1. Diagnosing Problems</H2
707 ><P
708 >If you have installation problems then go to the
709                 <A
710 HREF="Diagnosis.html"
711 TARGET="_top"
712 >Diagnosis</A
713 > chapter to try to find the 
714                 problem.</P
715 ></DIV
716 ><DIV
717 CLASS="SECT2"
718 ><H2
719 CLASS="SECT2"
720 ><A
721 NAME="AEN193"
722 ></A
723 >1.10.2. Scope IDs</H2
724 ><P
725 >By default Samba uses a blank scope ID. This means 
726                 all your windows boxes must also have a blank scope ID. 
727                 If you really want to use a non-blank scope ID then you will 
728                 need to use the 'netbios scope' smb.conf option.
729                 All your PCs will need to have the same setting for 
730                 this to work. I do not recommend scope IDs.</P
731 ></DIV
732 ><DIV
733 CLASS="SECT2"
734 ><H2
735 CLASS="SECT2"
736 ><A
737 NAME="AEN196"
738 ></A
739 >1.10.3. Choosing the Protocol Level</H2
740 ><P
741 >The SMB protocol has many dialects. Currently 
742                 Samba supports 5, called CORE, COREPLUS, LANMAN1, 
743                 LANMAN2 and NT1.</P
744 ><P
745 >You can choose what maximum protocol to support 
746                 in the <TT
747 CLASS="FILENAME"
748 >smb.conf</TT
749 > file. The default is 
750                 NT1 and that is the best for the vast majority of sites.</P
751 ><P
752 >In older versions of Samba you may have found it 
753                 necessary to use COREPLUS. The limitations that led to 
754                 this have mostly been fixed. It is now less likely that you 
755                 will want to use less than LANMAN1. The only remaining advantage 
756                 of COREPLUS is that for some obscure reason WfWg preserves 
757                 the case of passwords in this protocol, whereas under LANMAN1, 
758                 LANMAN2 or NT1 it uppercases all passwords before sending them,
759                 forcing you to use the "password level=" option in some cases.</P
760 ><P
761 >The main advantage of LANMAN2 and NT1 is support for 
762                 long filenames with some clients (eg: smbclient, Windows NT 
763                 or Win95). </P
764 ><P
765 >See the smb.conf(5) manual page for more details.</P
766 ><P
767 >Note: To support print queue reporting you may find 
768                 that you have to use TCP/IP as the default protocol under 
769                 WfWg. For some reason if you leave Netbeui as the default 
770                 it may break the print queue reporting on some systems. 
771                 It is presumably a WfWg bug.</P
772 ></DIV
773 ><DIV
774 CLASS="SECT2"
775 ><H2
776 CLASS="SECT2"
777 ><A
778 NAME="AEN205"
779 ></A
780 >1.10.4. Printing from UNIX to a Client PC</H2
781 ><P
782 >To use a printer that is available via a smb-based 
783                 server from a unix host with LPR you will need to compile the 
784                 smbclient program. You then need to install the script 
785                 "smbprint". Read the instruction in smbprint for more details.
786                 </P
787 ><P
788 >There is also a SYSV style script that does much 
789                 the same thing called smbprint.sysv. It contains instructions.</P
790 ><P
791 >See the CUPS manual for information about setting up 
792                 printing from a unix host with CUPS to a smb-based server. </P
793 ></DIV
794 ><DIV
795 CLASS="SECT2"
796 ><H2
797 CLASS="SECT2"
798 ><A
799 NAME="AEN210"
800 ></A
801 >1.10.5. Locking</H2
802 ><P
803 >One area which sometimes causes trouble is locking.</P
804 ><P
805 >There are two types of locking which need to be 
806                 performed by a SMB server. The first is "record locking" 
807                 which allows a client to lock a range of bytes in a open file. 
808                 The second is the "deny modes" that are specified when a file 
809                 is open.</P
810 ><P
811 >Record locking semantics under Unix is very
812                 different from record locking under Windows. Versions
813                 of Samba before 2.2 have tried to use the native
814                 fcntl() unix system call to implement proper record
815                 locking between different Samba clients. This can not
816                 be fully correct due to several reasons. The simplest
817                 is the fact that a Windows client is allowed to lock a
818                 byte range up to 2^32 or 2^64, depending on the client
819                 OS. The unix locking only supports byte ranges up to
820                 2^31. So it is not possible to correctly satisfy a
821                 lock request above 2^31. There are many more
822                 differences, too many to be listed here.</P
823 ><P
824 >Samba 2.2 and above implements record locking
825                 completely independent of the underlying unix
826                 system. If a byte range lock that the client requests
827                 happens to fall into the range 0-2^31, Samba hands
828                 this request down to the Unix system. All other locks
829                 can not be seen by unix anyway.</P
830 ><P
831 >Strictly a SMB server should check for locks before 
832                 every read and write call on a file. Unfortunately with the 
833                 way fcntl() works this can be slow and may overstress the 
834                 rpc.lockd. It is also almost always unnecessary as clients 
835                 are supposed to independently make locking calls before reads 
836                 and writes anyway if locking is important to them. By default 
837                 Samba only makes locking calls when explicitly asked
838                 to by a client, but if you set "strict locking = yes" then it will
839                 make lock checking calls on every read and write. </P
840 ><P
841 >You can also disable by range locking completely 
842                 using "locking = no". This is useful for those shares that 
843                 don't support locking or don't need it (such as cdroms). In 
844                 this case Samba fakes the return codes of locking calls to 
845                 tell clients that everything is OK.</P
846 ><P
847 >The second class of locking is the "deny modes". These 
848                 are set by an application when it opens a file to determine 
849                 what types of access should be allowed simultaneously with 
850                 its open. A client may ask for DENY_NONE, DENY_READ, DENY_WRITE 
851                 or DENY_ALL. There are also special compatibility modes called 
852                 DENY_FCB and  DENY_DOS.</P
853 ></DIV
854 ><DIV
855 CLASS="SECT2"
856 ><H2
857 CLASS="SECT2"
858 ><A
859 NAME="AEN219"
860 ></A
861 >1.10.6. Mapping Usernames</H2
862 ><P
863 >If you have different usernames on the PCs and 
864                 the unix server then take a look at the "username map" option. 
865                 See the smb.conf man page for details.</P
866 ></DIV
867 ></DIV
868 ></DIV
869 ><DIV
870 CLASS="NAVFOOTER"
871 ><HR
872 ALIGN="LEFT"
873 WIDTH="100%"><TABLE
874 SUMMARY="Footer navigation table"
875 WIDTH="100%"
876 BORDER="0"
877 CELLPADDING="0"
878 CELLSPACING="0"
879 ><TR
880 ><TD
881 WIDTH="33%"
882 ALIGN="left"
883 VALIGN="top"
884 ><A
885 HREF="introduction.html"
886 ACCESSKEY="P"
887 >Prev</A
888 ></TD
889 ><TD
890 WIDTH="34%"
891 ALIGN="center"
892 VALIGN="top"
893 ><A
894 HREF="samba-howto-collection.html"
895 ACCESSKEY="H"
896 >Home</A
897 ></TD
898 ><TD
899 WIDTH="33%"
900 ALIGN="right"
901 VALIGN="top"
902 ><A
903 HREF="browsing-quick.html"
904 ACCESSKEY="N"
905 >Next</A
906 ></TD
907 ></TR
908 ><TR
909 ><TD
910 WIDTH="33%"
911 ALIGN="left"
912 VALIGN="top"
913 >General installation</TD
914 ><TD
915 WIDTH="34%"
916 ALIGN="center"
917 VALIGN="top"
918 ><A
919 HREF="introduction.html"
920 ACCESSKEY="U"
921 >Up</A
922 ></TD
923 ><TD
924 WIDTH="33%"
925 ALIGN="right"
926 VALIGN="top"
927 >Quick Cross Subnet Browsing / Cross Workgroup Browsing guide</TD
928 ></TR
929 ></TABLE
930 ></DIV
931 ></BODY
932 ></HTML
933 >