<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//RU">
<HTML>
<HEAD>
 <META http-equiv="Content-Type" content="text/html; charset=koi8-r">
 <META NAME="GENERATOR" CONTENT="lfparser_2.19">
 <META NAME="LFCATEGORY" CONTENT="System Administration">
<!-- this is used be a number of tools:
 =LF=AUTHOR: Sebastian     Sas&iacute;as
 =LF=CAT___: System Administration
 =LF=TITLE_: ������ ����-������� Windows NT/2000 �� Linux/Samba
 =LF=NUMBER: 247
 =LF=ANAME_: article247.htm
 -->
 <TITLE>lf247, System Administration: ������ ����-������� Windows NT/2000 �� Linux/Samba</TITLE>
<!-- stylesheet added by lfparser: --> 
<style type="text/css">
<!--
 td.top {font-family: Arial,Geneva,Verdana,Helvetica,sans-serif; font-size:12 }
 pre { font-familiy:monospace,Courier }
 p.cl { color:#EE9500 }
 a.nodec { text-decoration:none }
 p.trans { font-size:8pt; text-align:right }
 p.clbox { width:50%; alignment:center; background-color:#FFD700; border-style:none; border-width:medium; border-color:#FFD700; padding:0.5cm ;  text-align:center }
 p.foot { background-color:#AAAAAA; color:#FFFFFF; border-style:none; border-width:medium; border-color:#AAAAAA; padding:0.5cm ; margin-top:0.1cm; margin-right:1cm; margin-left:1cm; text-align:center }
-->
</style>
 
</HEAD>
<BODY bgcolor="#ffffff" text="#000000">
 <!-- this is generated html code. NEVER use this file for your
 translation work. Instead get the file with the same article number
 and .meta.shtml in its name. Translate this meta file and then
 use lfparser program to generate the final article -->
 <!-- lfparser can be obtained from http://www.linuxfocus.org/~guido/dev/lfparser.html -->

<!-- 2pdaIgnoreStart -->

<!-- start navegation bar -->
 <!-- top navegation bar -->
 <TABLE cellspacing="0" cellpadding="0" border="0" align="center" width="90%">
   <TR bgcolor="#2e2292">
     <TD class="top"><TABLE cellspacing="0" cellpadding="0" border="0" width=
       "100%">
         <TR><TD width="144"><IMG src="../../common/images/logolftop.gif"
           alt="[LinuxFocus-icon]" width="350" height="45" align="left" 
           border="0"></TD>

           <TD class="top">
             <TABLE width="100%">
               <TR align="right">
                 <TD class="top"><A class="nodec" href="../index.shtml"><FONT color=
                 "#DDDDDD" size="-1">�����</FONT></A> &nbsp;|&nbsp; <A class=
                 "nodec" href="../map.html"><FONT color=
                 "#DDDDDD" size="-1">�����</FONT></A> &nbsp;|&nbsp; <A class=
                 "nodec" href="../indice.html"><FONT color=
                 "#DDDDDD" size="-1">������</FONT></A> &nbsp;|&nbsp; <A class="nodec" href="../Search/index.shtml"><FONT color=
                 "#DDDDDD" size="-1">�����</FONT></A> </TD>
               </TR>

               <TR align="right">
                 <TD class="top">
                   <HR width="100%" noshade size="1">
                 </TD>
               </TR>
             </TABLE>
           </TD>
         </TR>
       </TABLE>
     </TD>
   </TR>
 </TABLE>
 <!-- end top navegation bar -->
 <!-- blue bar -->
 <TABLE cellspacing="0" cellpadding="0" border="0" align="center"
 width="90%">
   <TR bgcolor="#00ffff">
     <TD><IMG src="../../common/images/transpix.gif" width="1" height=
     "2" alt=""></TD>
   </TR>
 </TABLE>
 <!-- end blue bar -->
 <!-- bottom navegation bar -->
 <TABLE cellspacing="0" cellpadding="0" border="0" align="center"
 width="94%">
   <TR bgcolor="#000000">
     <TD>
       <TABLE cellspacing="0" cellpadding="1" border="0" width=
       "100%">
         <TR align="center">
           <TD><A class="nodec" href="../News/index.shtml"><FONT color=
           "#FFFFFF">�������</FONT></A> </TD>
           <TD><FONT color="#FFFFFF">|</FONT> </TD>
           <TD><A class="nodec" href="../Archives/index.html"><FONT color=
           "#FFFFFF">������</FONT></A> </TD>
           <TD><FONT color="#FFFFFF">|</FONT> </TD>
           <TD><A class="nodec" href="../Links/index.shtml"><FONT color=
           "#FFFFFF">������</FONT></A> </TD>
           <TD><FONT color="#FFFFFF">|</FONT> </TD>
           <TD><A class="nodec" href="../aboutus.html"><FONT color=
           "#FFFFFF">��� LF</FONT></A> </TD>
         </TR>
       </TABLE>
     </TD>
   </TR>
 </TABLE>
 <!-- end bottom navegation bar -->
<!-- stop navegation bar -->

<!-- SSI_INFO -->

<!-- tr_staticssi include virtual -->
<!-- tr_staticssi exec cmd -->
<!-- addedByLfdynahead ver 1.1 --><TABLE ALIGN="right" border=0><TR><TD ALIGN="right"><FONT SIZE="-1" FACE="Arial,Helvetica">��� ������� �������� ��: <A href="../../English/May2002/article247.shtml">English</a> &nbsp;<A href="../../Castellano/May2002/article247.shtml">Castellano</a> &nbsp;<A href="../../ChineseGB/May2002/article247.shtml">ChineseGB</a> &nbsp;<A href="../../Deutsch/May2002/article247.shtml">Deutsch</a> &nbsp;<A href="../../Francais/May2002/article247.shtml">Francais</a> &nbsp;<A href="../../Italiano/May2002/article247.shtml">Italiano</a> &nbsp;<A href="../../Nederlands/May2002/article247.shtml">Nederlands</a> &nbsp;<A href="../../Russian/May2002/article247.shtml">Russian</a> &nbsp;<A href="../../Turkce/May2002/article247.shtml">Turkce</a> &nbsp;</FONT></TD></TR></TABLE><br>
 


<!-- SSI_INFO STOP -->
<!-- 2pdaIgnoreStop -->

<!-- SHORT BIO ABOUT THE AUTHOR -->
<TABLE ALIGN=LEFT BORDER=0  WIDTH="30%" >
<TR>
<TD>

<img alt="[�����]" src=
    "../../common/images/SebastianSasias.jpg" width="70" height=
    "102">
<BR>�����  Sebastian Sas&iacute;as <br> <font size="1">&lt;sasias(at)linuxmail(dot)org&gt;</font>
<BR><BR>
<I>�� ������:</I><BR>
<p>����� � ������� ���������� ��� ��������� Linux � �������� ��������
    ���������� ��������������� �������.<br>
    ���������� ������������� ��������� ��� Linux, �������� � �������
    ������������, ������� ������������, ��������� ��������.
    <br>���������� �� �����������, ���������� � ������������ ������.<br>
    ��������� � ���������� ���������� ������������ �����������, �������
    ���������������� ��� ��������� GNU/GPL.<br></p>
<!-- TRANSLATED TO ru -->
<BR><BR><I>������� �� �������:</I><BR>
������ ������ <font size="1">&lt;codeseg(at)nevod(dot)ru&gt;</font>
<!-- TRANSLATED TO STOP -->
<BR><BR><i>����������</i>:
<UL>
  <LI><A HREF="#247lfindex0">������ �� �����</A></LI>
  <LI><A HREF="#247lfindex1">������������</A></LI>
  <LI><A HREF="#247lfindex2">������ ����������������� �����</A></LI>
  <LI><A HREF="#247lfindex3">����������</A></LI>
  <LI><A HREF="#247lfindex4">������: ������������ � ���������</A></LI>
  <LI><A HREF="#247lfindex5">Copyright Notes</A></LI>
  <LI><A HREF="http://cgi.linuxfocus.org/cgi-bin/lftalkback?anum=247&amp;lang=en">�������� �������</A></LI>
</UL>

</TD></TR></TABLE>
<!-- HEAD OF THE ARTICLE -->
<br>&nbsp;
<H2>������ ����-������� Windows NT/2000 �� Linux/Samba</H2>
 <img alt="[������� Samba]" hspace="10" src=
    "../../common/images/article247/sambalogo.jpg" width="82"
    height="94">
<!-- ABSTRACT OF THE ARTICLE -->
<P><i>������</i>:
<P>

    ��� ������� ���������� ������������ � ��������� ������
    Samba, ������� ������������ ��� ���������� �������� �
    ������������ (�����������) Unix/Windows �����. �����
    �������������� � ���, ��� ��������� ������ Samba ��� Linux,
    ����� �������� ����� ��, ��� � ��� ������������� Windows-�������,
    ����������������.<br>
    Samba �� ������ ���������� �������� � �������� �� Linux, ��
    ��� ����� ���� ������������ ������:
    <br><ul><li> ��� ������������� ����������� ������������ ���������� ��
    ������������� �� Windows �� ����� ��������;</li>
	<li> ���� �� ����� ������, ��� ������� Windows-������, ������������
    (���������, ������) ����� ���� ���������� ����� �� ��� ������
    ������������������.</li></ul><br>
    ��� ������� ��������� Samba �������� ������ ������� � ������� ���
    ����������� Windows NT/2000 �� ������ ��� Linux. Samba ���������
    ��������� ����������� �������, ������������ ������ � ������ ��������� Active
    Directory (ADS - Active Directory Service), � ����� ����� ��������� �
    ���� ��������� (����������) ����������� ������ (PDC - Primary Domain
    Controller), �������� �������������� �������������, ���������� ���
    Windows 95/98/NT/2000, ����������� ���������� �������� (���������� �
    ���������) � ��������� ���������������� ������ (users sessions). ����
    ��������������� ��������� �� ���� ������������.<br><br>
    � ����������, �� ������ ������� Linux/Samba-������ ������������ �����
    ��, ��� � Windows-������, ����������������, ��� ���� �� ������ ��������������
    ��������� ���������� �����.<br>
    ����� ����� �������, ��� ����� Samba ��� ���������� �� ������ �
    ��� �������� ������ � ��������� ����������� �� Linux � Windows.

    </P>
<HR size="2" noshade align="right"><BR>
<!-- BODY OF THE ARTICLE -->


    <A NAME="247lfindex0">&nbsp;</A>
<H2>������ �� �����</H2>


    <p>����� ��� Linux-������ � ������������� �� ��� ������� Samba ���������
    � ���� ��������� ����������� ������ (PDC), ��� ������ ������������������
    ������������ ����� ������ � ���� ����������� ����������� (shared directories):
    ��� ������ � ��� ������������� (����������) �������. ����� ������������ ��������
    �������� ����������������.<br>
    <br>
    <br>
    <br>
    <big><b>������� ��������� ��������:</b></big><br>
    <br>
    <font face="Helvetica, Arial, sans-serif">NetBIOS-���
    Linux/Samba-�������:</font><font face=
    "Helvetica, Arial, sans-serif"> <b>SMBServer</b><br>
    ��� ������ Windows ��� ������� ������: <b>THEDOMAIN</b><br>
    ������������ ������ ��� ������� ������������: H: (Windows) =&gt;
    <b>/home/</b> (Linux-������)<br>
    ����� ������: P: (Windows) =&gt;
    <b>/home/public</b> (Linux-������)</font><br>
    <br>
    <br>
    �� ������� 1 �������� ����� ��������� ����, � ������� ����������
    Windows-������ ���������� ����������� ������� Windows NT/2000
    �������. �� ����� ���� ������� Linux-�������� � ���������� ��
    ��� ������� Samba.<br>
    <br>
    </p>

    <!--div align="Center">
      <img src="../../common/images/article247/diag_samba_en.png"
      alt="Network diagram" width="443" height="339"><br>
    </div-->

    <div align="Center">
      <img src="../../common/images/article247/diag_samba_ru.png"
      alt="����� ����" width="443" height="339"><br>
    </div>

    <div align="Center">
      <small><i>���. 1 &ndash; �������� ���������� ������ (PDC) � ����-������
      �� Windows</i></small><br>
    </div>


    <A NAME="247lfindex1">&nbsp;</A>
<H2>������������</H2>


    <p><big><b>������������ �������� � ���� ��������� ����:</b></big><br>
    <br>
    1) �������� �� Linux-������� ������ ������������.
    ��� ����� ������������ ������� <b>adduser</b>, <b>useradd</b>
    ��� <b>userconf</b>; ����� ����� ������������ ����������
    ����������� ������� (Webmin, Linuxconf, Yast � �. �.).
    </p>

    <p>���� �� ������, ����� ������������ ���� ������ ���� � �������
    Samba � �� ��� ����� �� ������ �  �������� shell, � �����
    /etc/passwd � �������� �������� ���������� �������
    <b><font color="#000099">/dev/null</font></b>, � �
    �������� �������� - <b><font color="#000099">/bin/false</font></b>.<br>
    <br>
    2) �������������� ���� <b>/etc/passwd</b> � ���� <b>smbpasswd</b>:<br>
    <br>
    <b><font face="Helvetica, Arial, sans-serif">cat /etc/passwd |
    mksmbpasswd.sh &gt; /etc/samba/smbpasswd</font></b><br>
    <br>
    ��� �������� ������������� � ������� ����� ��������� ������ �������:</p>

    <p><b><font face="Helvetica, Arial, sans-serif">smbadduser<br>
     smbpasswd,<br>
    </font></b><br>
    ������� �������� ������� �������� adduser � passwd.<br>
    <br>
    3) �������������� ���������������� ���� Samba (smb.conf) � ������������ ��
    ������ �������������:
    <br>
    <p class="code">
    netbios name = SMBServer<br>
    workgroup = THEDOMAIN<br>
    server string = Linux/Samba-������<br>
    log file = /var/log/samba/%m.log<br>
    max log file = 0<br>
    security = user<br>
    encrypt password = yes<br>
    smb password file = /etc/samba/smbpasswd<br>
    ssl CA certificate = /usr/share/ssl/.... (cancel comment)<br>
    socket options = (cancel comment)<br>
    local master = yes<br>
    preferred master = yes<br>
    domain master = yes<br>
    domain logons = yes<br>
    logon script = logon.bat<br>
    wins support = yes<br>
    </p><br>
    <b>���������:</b><i><br>
    ����� ������ ��� ������� ������������ ��������� �������� �����
    (logon script), ���������� logon script = %U.bat (��� %u.bat).
    ����� �� ������ ������������ ������������ %g (��� %G) ��� ����,
    ����� ���������� �������� ������, � ������� �����������
    ������������ (��. ����� <b>man smb.conf</b>).</i><br>
    <br>
    4) �������� ����������� ��������.<br>
    �������������� �������� ����������� �������� � �����
    <b>smb.conf</b>, ������ (��� ����������� ������ ';') �������� �������
    � �������� �����������:<br>
    <br>
    <p class="code">
    [netlogon]<br>
    comment = �������� �����<br>
    path = /home/netlogon<br>
    read only = yes<br>
    guest ok = yes<br>
    browseable = no<br>
    <br>
    [home]<br>
    comment = ���������� ������������<br>
    path = /home/%U<br>
    browseable = yes<br>
    writable = yes<br>
    <br>
    [public]<br>
    comment = ����� ����������<br>
    path = /home/public<br>
    browseable = yes<br>
    writable = yes<br>
    guest ok = yes<br>
    create mask = 0777<br>
    force create mask = 0777<br>
    </p><br>
    ��������� ���������� ���� <b>smb.conf</b>.<br>
    <br>
    5) � ������� ������� <b>testparm</b> ��������� ���������
    ����������������� ����� smb.conf. ��� ������� ������ ����� ������
    ��������������� ���������.
    <br>
    <br>
    6) �������� ���������� <b>/home/netlogon</b> (� ������� ������� 0754)
    � <b>/home/public</b> (� ������� ������� 0777).<br>
    <br>
    7) �������������� �������� ����� <b>logon.bat</b>.<br>
    <font color="#ff6666"><b>�������� ��������:</b> ��� ��������
    <b>logon.bat</b> ���������� ������������ ��������� �������� ���
    DOS/Windows (Notepad, Edit � �. �.). ����� ����� ������������
    ��������� �������� ��� Linux, �� �������, ������, ���������������
    ���������� ����� � ����������� � DOS/Windows ������. � �������,
    � ��������� vim ��� �������� � ������� ������� ":set textmode".
    �������� <b>logon.bat</b> ����� ���������, ��������, ���:
    </font><br>
    <p class="code">
    <b>
    net time \\SMBServer /y</b> <i><small>
    (��� /yes)</small></i><b>
    <br>
    net use H: \\SMBServer\home -y</b> <i><small>
    (��� /yes)</small></i><b>
    <br>
    net use P: \\SMBServer\public -y<br>
    <br>
    </b></p>
   8) � ���� <b>/etc/samba/lmhosts</b> (��� /etc/lmhosts)
    �������� ������ � ����� Samba-������� (SMBServer).<br>
    ��������:<br>
    <br>
    <b>192.168.0.10 SMBServer</b><br>
    <br>
    9) ���������/������������� ����� Samba (smbd):<br>
    <br>
    <b><font face="Helvetica, Arial, sans-serif">service smb
    restart</font></b><br>
    <br>
    ���� � ������� ���� ������� �� ���������� ���������, ����������
    ��������� ���������:<br>
    <font face="Helvetica, Arial, sans-serif"><b>ps -auxgx | grep
    smb<br>
    kill -9 &lt;ID smb-��������&gt;<br>
    smbd<br>
    </b></font><br>
    10) ��� �������� ����������������� Samba-������� �����������
    smbclient:<br>
    <br>
    <font face="Helvetica, Arial, sans-serif"><b>smbclient -L
    //SMBServer</b></font><br>
    <br>
    ���� ����� ������ ����������� "Password:", ������� "Enter",
    � ����� ������ ������� ������ ����� ����������� ��������.<br>
    <br>
    11) � ������, ���������� ��� Windows 95/98/NT, ����������
    ����� � ��������� ������ ��� ����� THEDOMAIN. ��� �����
    ����������� ��� ������������ � ������, ��������� �� ����
    1 � 2.</p>

    <p>�� �������� ���������� ��������� ������� ������� ��� �����
    Microsoft. ��� ����� � �� Windows 95/98/ME ���������:</p>

    <p>Start (����) =&gt; Setup (���������) =&gt; Control Panel
    (������ ����������) =&gt; Network (����) =&gt;Network Client
    for Microsoft Networks (������ ��� ����� Microsoft) =&gt;
    Properties (��������).</p>

    <p>� ��������� ���������� ������ "Start session in Windows
    NT/2000 domain" ("������� � ����� Windows NT") � ������� ���
    ������ (��� ������� ������): THEDOMAIN.<br>
    </p>

    <p>������� ������� ������������� � Windows NT/2000
    (Workstation/Professional).<br>
    </p>

    <A NAME="247lfindex2">&nbsp;</A>
<H2>������ ����������������� �����</H2>


    <p>���������� ���������������� ���� Samba �������� ����. ������
    ������������ ����������� �� ���������� ������������� Linux.
    �� ������ ������������ ���� ������ � �������� �������� ���
    �������� � ��������� ����� ����������� ������������.<br>
    <br>
    ��� ���, ��� ����� ����� ������������� ��������� ��� �������
    ��������� Samba, ����� ��������������� ������������ �����
    �����������, ��� Webmin �/��� SWAT.</p>

    <p><font face=
    "Helvetica, Arial, sans-serif">#============================================================#<br>

    # /etc/smb.conf<br>
     #------------------------------------------------------------------------------------------------------------#<br>

    # <b>������� ���������������� ���� Samba (����-�������).<br>
    </b># <b>��������� ������������ � ������������ ��<br>
    </b># <b>������ �������������.</b><br>
     #------------------------------------------------------------------------------------------------------------#<br>

    # �������������� � ��������� ��:<br>
     # RedHat 6.0, 7.0, 7.1<br>
     # Solaris 7<br>
    # Slackware 7.x<br>
    # Mandrake 6.1, 7.0, 8.1<br>
    # SuSe 7.2<br>
     #------------------------------------------------------------------------------------------------------------#<br>

    # ���� ��������� �����������: 08/12/2001.<br>
    # Sebastian Sasias - sasias(at)linuxmail(dot)org<br>
    #============================================================#<br>

    #<br>
    # ��� �������� ������� ����� �������������� ����������� �� ���������<br>
    # Samba smb.conf(5).<br>
     #<br>
    # ����������: ����� ��������� ����� ����� �� �������� �������������� ���<br>
    # � ������� "testparm" (� ������������� ����� smbd - <i>����. �����.</i>)<br>
    #<br>
    #==================== ���������� ��������� ====================#<br>
     #<br>
    <small># �������� ������������</small><br>
     #<br>
    <font color="#6633ff"><b>[global]</b></font><br>
    #......................................................................................................................................#<br>

    <small># Workgroup = ��� NT-������ (��� ������� ������):
    THEDOMAIN.</small> <small><br>
    </small><b><font color="#6633ff">workgroup =
    THEDOMAIN</font></b><br>
    #......................................................................................................................................#<br>

    <small># NetBIOS-���, ��� ������� ����� ����� ������ ���������
    ������� ����.</small><br>
     <font color="#6633ff"><b>netbios name =
    SMBServer</b></font><br>
    #......................................................................................................................................#<br>

    <small># �����������, ������������ ����� � ������ ������ � "�������
    ���������" Windows.</small><br>
    <b><font color="#6633ff">server string = ��� Samba-������</font></b><br>
    #......................................................................................................................................#<br>

    <small># ��������� �������� ������ �� ������������. Hosts allow ���������
    ������� �</small> <small><br>
    </small><small># ���������� IP-�������� �������������� �
    Samba-�������.</small> <small><br>
    </small><small># � ���� ������� ������ �������� �����������,
    ������� IP-����� �� ���������</small> <small><br>
    </small><small># ��������� ������� 192.168.8.0 (����� C) �
    ����� ��������� "�������� �����" (loopback).</small><small><br>
    </small><small># ����� �������� ��. � man smb.conf.</small><small><br>
    </small><font color="#33cc00"><i><b>; hosts allow = 192.168.8.
    127.</b></i></font><br>
     #......................................................................................................................................#<br>

    <small># ���������������� ���� �������� ��� �������������� ��������
    ������ ���������</small><small><br>
    </small><small># �� ����� printcap.</small> <small><br>
    </small><font color="#33cc00"><i><b>; load printers =
    yes</b></i></font><br>
     #......................................................................................................................................#<br>

    <small># �������� Printcap name ������ �������������� ������������ �����
    printcap.</small><br>
    <i><b><font color="#33cc00">; printcap name =
    /etc/printcap</font></b></i><br>
     #......................................................................................................................................#<br>

    <small># � SystemV ��� ������ � �������� ������ ������������ ���������
    lpstat. ��� </small><small><br>
    </small><small># ��������������� ��������� ������ ��������� �� �������
    ������ SystemV �������</small><small><br>
    </small><small># ����� Printcap name = lpstat.</small><small><br>
    </small><font color="#33cc00"><i><b>; printcap name =
    lpstat</b></i></font><br>
     #......................................................................................................................................#<br>

    <small># ���� �� ������ ������������� ������� ������, ���
     ���������� ������� �� ���,<br>
     # � ��������� ������ ���� �������� ����� ��������.<br>
     # � ��������� ����� �������������� ��������� ������� ������:<br>
     # bsd, sysv, plp, lprng, aix, hpux, qnx.<b><i><br>
    </i></b></small><font color="#33cc00"><i><b>; printing =
    bsd</b></i></font><br>
     #......................................................................................................................................#<br>

    <small># ���������������� ������� Guest account ��� ��������������
    ������������� ("���������")</small>
    <small><br>
    </small><small># ����� �� Samba-������. � /etc/passwd ����������
    �������� pcguest, � ��������� ������ <br>
    # ����� �������������� ������� ������ "nobody".</small> <small><br>
    </small><font color="#33cc00"><i><b>; guest account =
    pcguest</b></i></font><br>
     #......................................................................................................................................#<br>

    <small># ��� ������ ������ %m, ������������ � Samba-�������,
    ������������ ���� log-����.</small> <small><br>
    </small><font color="#6633ff"><b>log file =
    /var/log/samba/log.%m</b></font><br>
     #......................................................................................................................................#<br>

    <small># ������������ ������ log-����� - 50 ��������.</small><br>
    <b><font color="#6633ff">max log size = 50</font></b><br>
     #......................................................................................................................................#<br>

    <small># �������� Security ����������, ����� ������� �����
    �������������� �������� ������
    </small><small><br>
    </small><small># ������������. Security = user �������� �������������
    ����� ������� smbpasswd.
    </small><small><br>
    </small><small># ����� �������� ��. � ������������ �� Samba (���� security_level.txt).
    </small><small><br>
    </small><font color="#6633ff"><b>security = user</b></font><br>
     #......................................................................................................................................#<br>

    <small># � ������, ���� Security = server, �������� ������ ������������
    ������ ��������.</small> <small><br>
    </small><small># �������� Password server ������������ ������ ���������
    � ������ Security = server.</small> <small><br>
    </small><small># Password server = [IP-����� ������������������ �������].</small><small><br>
    </small><font color="#33cc00"><i><b>; password server =
    &lt;��� NT-�������&gt;</b></i></font><br>
     #......................................................................................................................................#<br>

    <small># ����� �������� ��������� ����������� �������. ���������
    ������� ENCRYPTION.txt,</small><small><br>
    </small><small># Win95.txt � WinNT.txt �� ������������ �� Samba.
    </small><small><br>
    </small><small># �� ��������� ������ �������� �� ��� ���, ����
    ��������� �� ������� ��� ����������.</small> <small><br>
    </small><small># � ��������: �� Win95, Win98 � WinNT ��������
    ������ � ������������� ����.</small> <small><br>
    </small><font color="#6633ff"><b>encrypt passwords =
    yes</b></font><br>
     #......................................................................................................................................#<br>

    <small># ��������� ��������� ��������, �� ������� ������� ���������
    ������������ ��� <br># ������ ������ ������.
    </small> <small><br>
    # ������ ���� �������� %m ��� ����� ������������� NetBIOS-��� ������.
    </small><small><br>
    </small>
    <font color="#33cc00"><i><b>; include =
    /usr/local/samba/lib/smb.conf.%m</b></i></font><br>
     #......................................................................................................................................#<br>

    <small># � ������������ � � �������� ������� ���������, ��� �
    ������� ���������� ���������</small><small><br>
    </small><small># ����� �������� ������������������ Samba-�������.
    ��������, �� ��������</small><small><br>
    </small><small># �������������������� � ����. ����������� ��������
    � ������������ (man pages) ��</small><small><br>
    </small><small># Samba � � ����� Speed.txt.</small><small><br>
    </small><font color="#6633ff"><b>socket options =
    TCP_NODELAY</b></font><br>
     #......................................................................................................................................#<br>

    <small># �� ��������� ����� Samba ������� ��� �������� �������
    ����������. � �������</small><small><br>
    </small><small># ��������� Interfaces ����� �������
    ������ �� ����������, ������� ����������</small><small><br>
    </small><small># ������������.</small>
    <small><br>
    </small><font color="#33cc00"><b><i>; interfaces =
    192.168.8.2/24 192.168.12.2/24</i></b></font><br>
     #......................................................................................................................................#<br>

    <small># ���������� Local master � "no", ����� Samba-������ �� ���
    ����� �������������</small><small><br>
    </small><small># ���� (� ��������� ������ ������ ����� ���������
    ������� � ������� ������������</small><small><br>
    </small><small># ���� - <i>����. �����.</i>)</small><small><br>
    </small><font color="#6633ff"><b>local master =
    yes</b></font><br>
     #......................................................................................................................................#<br>

    <small># �������� OS Level ������ ��������� ������� ������� ��� �������
    ������������ ����</small><small><br>
    </small><small># (master browser) . ������ ��������
    �� ��������� �������� ��� �����������</small><small><br>
    </small><small># �������.</small><small><br>
    </small><font color="#33cc00"><i><b>; os level =
    33</b></i></font><br>
     #......................................................................................................................................#<br>

    <small># �������� Domain master ������ Samba-������ ������� �������������
    ������</small> <small><br>
    </small><small># (Domain Master Browser). ��� ��������� Samba ���������
    ������� �����������</small> <small><br>
    </small><small># ������, � ����� ��������� ������ ����� �� ������
    ��������, �������</small> <small><br>
    </small><small># ��������� � ������� ������.</small><small><br>
    </small><small># �� ����������� ���� ��������, ���� � ����� ����
    ��� ������� ���������� ������ </small><small><br>
    </small><small># �� Windows NT/2000, ����������� �� �� �������.</small> <small><br>
    </small><font color="#6633ff"><b>domain master =
    yes</b></font><br>
     #......................................................................................................................................#<br>

    <small># �������� Preferred master ��������� Samba-������� ��� ������
    ������������ ������</small> <small><br>
    </small><small># ������������ ����; ��� ���� Samba-������ �������� ��������
    ������� ����� ��</small> <small><br>
    </small><small># ������ � ���� �������.</small> <small><br>
    </small> <small># ���� � ���� ������� ����� ������ �������, �� ��������
    ����������� (favorite) ���</small> <small><br>
    </small><small># �������� ����� "���������������� ������������" (preferred master).<br></small><font color="#6633ff"><b>preferred master =
    yes</b></font><br>
     #......................................................................................................................................#<br>

    <small># ����������� ��������� ����� ������ � ������, ���� � �����
    ���� �������</small><small><br>
    </small><small># Windows NT/2000 ������, ���������� � �������� PDC.</small><small><br>
    </small><font color="#33cc00"><i><b>; domain controller =
    &lt;SMB-��� ����������� ������&gt;</b></i></font><br>
     #......................................................................................................................................#<br>

    <small># ��� ����, ����� ������� Windows 9x/Me ����� ������������ ������
    Samba ���</small> <small><br>
    </small><small># ����� � �����, ������� ��������� ��������.</small>
    <small><br>
    </small><font color="#6633ff"><b>domain logons =
    yes</b></font><br>
     #......................................................................................................................................#<br>

    <small># ���� �������� Domain logons ���������� � "yes", �� ������
    ����������� ���������</small><small><br>
    </small><small># ��� ������������ (%u) ��� ������� ������� (%m) ����
    �������� ����� (logon script).</small><small><br>
    <br>
    </small><small># �������� ����� ��� ������� �������:</small> <small><br>
    </small><font color="#33cc00"><i><b>; logon script =
    %m.bat</b></i></font><br>
    <br>
     <small># �������� ����� ��� ������������:</small><br>
     <font color="#33cc00"><b><i>; logon script =
    %U.bat</i></b></font><br>
     #......................................................................................................................................#<br>

    <small># ������ �������� ������ ����� ���������� ������������
    �������� (roving (���</small> <small><br>
    </small><small># roaming - <i>����. �����.</i>) profiles).</small> <small><br>
    </small><small># ������ %L ������������� NetBIOS-��� ������� �������,
    ������ %U - ��� ������������.</small><small><br>
    </small> <small># �� �������� ����������������� ������ [Profiles] �
    ���������������� �����.</small> <small><br>
    </small><font color="#33cc00"><i><b>; logon path =
    \\%L\Profiles\%U</b></i></font><br>
     #......................................................................................................................................#<br>

    <small># ��������� WINS - ������ ���� Windows (WINS - Windows Internet Name Service).</small><small><br>
    </small><small># ������ �������� ��������� ������ NMBD �������� ���� ������ WINS.</small><small><br>
    </small><small># WINS, ������� ������ DNS, ������������ IP-����� ������ � �� ������.</small><br>
     <font color="#33cc00"><i><b>; wins support =
    yes</b></i></font><br>
     #......................................................................................................................................#<br>

    <small># �������� WINS Server ������ IP-����� WINS-�������,
    ������������� � ����, �</small> <small><br>
    </small><small># ��������� �� ��, ��� � ���� ������ Samba-������
    �������� WINS-��������.</small> <small><br>
    </small><small># �� ���������, ��� Samba-������ ����� ���� ����
    WINS-��������, ���� </small> <small><br>
    </small><small># WINS-�������� (�� �� ������ �����).</small><br>
    <font color="#33cc00"><i><b>; wins server =
    192.168.8.1</b></i></font><br>
     #......................................................................................................................................#<br>

    <small># Samba ����� ���������� ��-WINS ��������, ����������� � ����.
    ��� ����� �����</small> <small><br>
    </small><small># ������� �������� WINS Proxy = yes. ��� ����������
    ������ WINS Proxy ����������,</small> <small><br>
    </small><small># ����� � ���� ������ �� ������� ���� ���� WINS-������.</small><small><br>
    </small><small># �������� �� ��������� - "no".</small><small><br>
    </small><font color="#33cc00"><i><b>; wins proxy =
    yes</b></i></font><br>
    #......................................................................................................................................#<br>

    <small># ���� ����� �������� DNS Proxy, Samba ����� �������� ���������
    ��������������</small> <small><br>
    </small><small># NetBIOS-���� ����������� �������� � DNS. �� ���������
    ��� ������ 1.9.17 ����</small> <small><br>
    </small><small># �������� ���������� � "yes". ������� � ������  1.9.18
    �������� DNS Proxy ��</small> <small><br>
    </small><small># ��������� ����� "no".<br>
    </small><b><font color="#009900"><i># dns proxy = yes<br>
     # dns proxy = no (�������������� ���� ������� � ������� ����� lmhosts)<br>
    </i></font></b>#......................................................................................................................................#<br>

    <small># �������� Logon drive ������ ����� �����, � �������� �����
    ������������� ��������</small> <small><br>
    </small><small># (home) ���������� ������������. ��� ����� ����� �����,
    ������ ���� Samba ���������</small> <small><br>
    </small><small># � �������� Logon server'�. ���� �������� Logon drive
    �� �����, ������������ Z:.</small><br>
     <font color="#6633ff"><b>logon drive = P:</b></font><br>
     #......................................................................................................................................#<br>

    <small># ����� �������� ����� �� Samba-������ �� ������ ������� �����������
    ��������</small> <small><br>
    </small><small># SAMBA.BAT (������ ���� - /etc/samba/netlogon/SAMBA.BAT),
    ������� � �������<br>
    </small><small># ������� "net use" ���������� ����������� ������� ������ (�
    ����� ����� ���������</small> <small><br>
    </small><small># ������ �������� ������, ��������, ������������� ������� -
    <i>����. �����.</i>)
    </small><small><br>
    </small><font color="#6633ff"><b>logon script =
    SAMBA.BAT</b></font><br>
    <br>
     #============== ����������� ����������� ��������
    ================#<br>
    <br>
    <small># ������������ ���������� ��� ������� ������������.</small> <small><br>
    </small><small># ���� P:</small> <small><br>
    </small><br>
    <font color="#6633ff"><b>[homes]<br>
     comment = �������� ����������<br>
     browseable = no<br>
     writable = yes<br>
     readonly = no<br>
     force create mode = 0700<br>
     create mode = 0700<br>
     force directory mode = 0700<br>
     directory mode = 700<br>
    </b></font><br>
     #------------------------------------------------------------------------------------------------------------#<br>

    <small># ���������� ��� ��������� ������.</small> <small><br>
    </small><small># ���� T:</small> <small><br>
    </small><br>
    <font color="#6633ff"><b>[tmp]<br>
     comment = ��������� �����<br>
     path = /tmp<br>
     readonly = no<br>
     public = yes<br>
     writable = yes<br>
     force create mode = 0777<br>
     create mode = 0777<br>
     force directory mode = 0777<br>
     directory mode = 0777<br>
    <br>
    </b></font>
    #------------------------------------------------------------------------------------------------------------#<br>

    <small># ������ CD-ROM �������.</small> <small><br>
    </small><small># ���� L:</small> <small><br>
    </small><font color="#6633ff"><b><br>
    [cdrom]<br>
     comment = CD-ROM<br>
     path = /mnt/cdrom<br>
     public = yes<br>
     writable = no<br>
    <br>
    </b></font>
    #------------------------------------------------------------------------------------------------------------#<br>

    <small># ������ ������ ("/home/grp.���_������"), � ������� ����������� ������������ (%u).</small>
    <small><br>
    </small><small># /home/%u/group �������� ������� ��
    "/home/grp.���_������".</small> <small><br>
    </small><small># "grp.���_������" ����� ����� ������� 770.</small>
    <small><br>
    </small><small># ���� G:</small> <small><br>
    </small><br>
    <font color="#6633ff"><b>[group]<br>
     comment = ���������� ������<br>
     path = /home/%u/group<br>
     writable = yes<br>
     readonly = no<br>
     force create mode = 0770<br>
     create mode = 0770<br>
     force directory mode = 0770<br>
     directory mode = 0770<br>
    <br>
    </b></font>
    #------------------------------------------------------------------------------------------------------------#<br>

    <small># ���� ������ ������������ ��� �������� ����������, �������������,</small> <small><br>
    </small><small># �������������� �� (corporative software) � �. �.</small> <small><br>
    </small><small># ����� ������� ��� /net � /net/install - 755, �� ���� �������� ������� - root.</small> <small><br>
    </small><small># ���� N:</small> <small><br>
    </small><br>
    <font color="#6633ff"><b>[net]<br>
     comment = ������ Net<br>
     path = /net<br>
     writable = yes<br>
     readonly = no<br>
     force create mode = 0750<br>
     create mode = 0750<br>
     force directory mode = 0750<br>
     directory mode = 0750<br>
    </b></font><br>
     #------------------------------------------------------------------------------------------------------------#<br>

    <font color="#6633ff"><b>[netlogon]<br>
     comment = Logon Services in the Network<br>
     path = /etc/samba/netlogon<br>
     guest ok = yes<br>
     writable = no<br>
     locking = no<br>
     public = no<br>
     browseable = yes<br>
     share modes = no<br>
    <br>
    </b></font>
    #------------------------------------------------------------------------------------------------------------#</font><br>

    <font face=
    "Helvetica, Arial, sans-serif">#============================================================#</font></p>

    <A NAME="247lfindex3">&nbsp;</A>
<H2>����������</H2>


    <p>� ����� Samba, � ������ ������ ����������� Linux ��������� �
    ����������� ��������, ������� ������ ��������, ��� ��������� ������,
    ��������� � ���� �������, ����� �������� ���� ������������.

    � ���� �������� Samba ��������� ��������� �����������������
    ����� ������ ����������, ����� �������� ���������� �������.<br>
    <br>
    ���� ��� ������������ Samba-������� �� �������� ��������� �
    ����������� ����������, ���� ���� �������� ��������� ���
    ��������:<br>
    <ul>
    <li> ��������� ������������ ����� smb.conf; ����������� ��������
    �����������, ������� ����� ��������� ������ ���������� �
    �������������� ����������;</li>
    <li> �������� ������������ �� Samba, ����� � �����, � �������
    ����������� ��������� ��������� ������.</li>
    </ul>

    <A NAME="247lfindex4">&nbsp;</A>
<H2>������: ������������ � ���������</H2>


    <ul>
      <li>Samba, ����������� ����: <a href=
      "http://www.samba.org">http://www.samba.org</a>.</li>

      <li>Webmin, ����������� ����: <a href=
      "http://www.webmin.com">http://www.webmin.com</a>. Webmin - ����������
      ��� ���������� ����������������� UNIX-������.</li>

      <li>������ GNU � ���� ���������� ������������ �����������: <a href=
      "http://www.gnu.org">http://www.gnu.org</a>.</li>

      <li>���������� ����, ����������� ������� RPM: <a href=
      "http://www.rpmfind.net">http://www.rpmfind.net</a>.</li>

      <li>�������� �������� LinNeighborhood: <a href=
      "http://www.bnro.de/~schmidjo">http://www.bnro.de/~schmidjo</a>.
      LinNeighborhood - ���������� ���������� ��� Linux ��� ������ �
      ������������ �������� ��������� ����� SMB.<br>
      </li>
    </ul>

    <A NAME="247lfindex5">&nbsp;</A>
<H2>Copyright Notes</H2>


    <p><i><small>Samba - ����������� �������, ���������������� ��� ���������
    GPL.<br>
    Linux - ������������������ ����� ������ ���������� (Linus Torvalds).<br>
    Solaris - ������������ ������� � ������������������ ����� Sun Microsystems.<br>
    MS Windows - ������������ ������� � ������������������ ����� Microsoft.<br>
    ������������� Samba ���� ������� �������� �� ������������ ����������� ��� Microsoft.<br>
    </small></i></p>

    <!-- vim: set sw=2 ts=2 et tw=74: -->
  


<!-- 2pdaIgnoreStart -->
<A NAME="talkback">&nbsp;</a>
<h2>�������� �������</h2>
� ������ ������� ���� �������� �������. �� ���� �������� �� ������ ��������
���� ����������� ��� ����������� ����������� ������ ���������.
<center>
<table border="0"  CELLSPACING="2" CELLPADDING="1">
 <tr BGCOLOR="#C2C2C2"><td align=center>
  <table border="3"  CELLSPACING="2" CELLPADDING="1">
   <tr BGCOLOR="#C2C2C2"><td align=center>
    <A href="http://cgi.linuxfocus.org/cgi-bin/lftalkback?anum=247&amp;lang=en"><b>&nbsp;talkback page&nbsp;</b></a>
   </td></tr></table>
</td></tr></table>
</center>

<HR size="2" noshade>
<!-- ARTICLE FOOT -->
<CENTER><TABLE WIDTH="98%">
<TR><TD ALIGN=CENTER BGCOLOR="#9999AA" WIDTH="50%">
<A HREF="../../common/lfteam.html">Webpages maintained by the LinuxFocus Editor team</A>
<BR><FONT COLOR="#FFFFFF">&copy; Sebastian     Sas&iacute;as, <a href="../../common/copy.html">FDL</a> <BR><a href="http://www.linuxfocus.org">LinuxFocus.org</a></FONT>
<BR><a href="http://cgi.linuxfocus.org/cgi-bin/lfcomment?lang=ru&amp;article=article247.htm" target="_TOP">Click here to report a fault or send a comment to LinuxFocus</A><BR></TD>
<TD BGCOLOR="#9999AA">
<!-- TRANSLATION INFO -->
<font size=2>Translation information:</font>
<TABLE>
  <tr><td><font size="2">es --&gt; -- : Sebastian Sas&iacute;as <font size="1">&lt;sasias(at)linuxmail(dot)org&gt;</font></font></td></tr>
  <tr><td><font size="2">es --&gt; en: Sebastian Sas&iacute;as &lt;sasias(at)linuxmail(dot)org&gt;</font></td></tr>
  <tr><td><font size="2">en --&gt; ru: ������ ������ &lt;codeseg(at)nevod(dot)ru&gt;</font></td></tr>
</TABLE>
</TD>
</TR></TABLE></CENTER>
<p><font size=1>2002-06-20, generated by lfparser version 2.19</font></p>
<!-- 2pdaIgnoreStop -->
</BODY>
</HTML>