�������: ������ (���� | �����������) ��RU opennet.me  
The OpenNET Project / Index page

[ ������� /+++ | ����� | ���� | ]

������� ������������ / ������ "������������ ��� Linux" / ���������� ���������
next up previous contents index
Next: ������ � SMB-�������� �� Up: Samba Previous: �������� ��������� (/etc/smb.conf)   Contents   Index

����������� ������� � ������ Linux ��� ����� ��� Windows

��� �������� ���� � ����� smb.conf, ����������� ������� � ������ Linux ��� ������������� Windows �������� �������� ������� �����. ������, � ������� Samba �� ������ �������������� ������ ������������ �������������. ���� ���������� ��������� ��������:

����� ������������ ������ ��� ���� �������������, �������� ����� ������� [tmp], ������������ ����, ������� � smb.conf ���-�� ��������:

[public]
   comment = Public Stuff
   path = /home/public
   public = yes
   writable = yes
   printable = no

������ � ��� ����� ����������� ��������� Samba � ����������� ��������� ������� �� Windows PC. ������, � ��������� ������� Microsoft ``��������� �����'' ���, ��� ���������� Samba. Windows 98, Windows NT (service pack 3 ��� ����) � ������� ������ Windows 95 �� ��������� ���������� ����������� ������, � Samba �� ��������� ���������� ������������� ������. �� �� ������� ������������� ���������� �������, ����� ���� ������ ���� ��� ������ ���������� ����������� ������, ������ ��� ���������� �� ����� ���� ������� ��� �����������.

���� ���������� �������������� ����� ������� ����� �������� � �������� � �� ��������� ����������� � �������, �� ������ ������� ���� ������� � ������� ����� ������� �������� ���������: You are not authorized to access that account from this machine. ��� ����� ��������� Samba-������ ��� ������������� ����������� �������, ���� ��������� ������ � Windows ����� �������, ����� ��� ������������ ������������� ������. ��� ����, ����� ��������� Windows �������� � �������������� �������� SMB �������� ���������:

Windows 95/98
=============
��������� �������� registry (regedit), �������� ���� registry
HKEY_LOCAL_MACHINE - System - CurrentControlSet - Services - VxD - VNETSUP
�������� �������� ���� DWORD:
��� ��������:  EnablePlainTextPassword
������:        0x01.

Windows NT
==========
��������� �������� registry (regedit), �������� ���� registry
HKEY_LOCAL_MACHINE - System - CurrentControlSet - Services - Rdr - Parameters
�������� �������� ���� DWORD:
��� ��������:  EnablePlainTextPassword
��������:        0x01

Windows 2000
============
Using the registry editor (regedit), create the registry setting
HKEY_LOCAL_MACHINE - SYSTEM - CurrentControlSet - Services - LanmanWorkStation - Parameters
Add a new DWORD value:
Value Name: EnablePlainTextPassword
Data: 0x01

����� ����, ��� �� ������� ��� ���������, ������������� ������ � Windows � ����������� ���������� ������� ���� � ������� Samba.

��� ����, ����� ��������� Samba ��� ������������� ����������� ������� � ������ [global] ����� /etc/smb.conf, �������� ��������� ������:

encrypt passwords = yes
smb passwd file = /etc/smbpasswd
\begin{verbatim}

������������ ������������� ��������� ����� \verb|ENCRYPTION.txt|,
\verb|Win95.txt| � \verb|WinNT.txt| � ������������ �� Samba �� ���� ��� ��
������ ������ ���.

���� � ������� � ������ ���������� ����������� ������, �� �� ��
������� ����������� ������ ��������� �������� �� ��� ���, ����
��������� ���������� �� ����� ������� � ��������� ����������
���������� �����. ��� ���� ����� ������� ��������������
����������, ������� ������� ��� ������� � ���������� ���� Windows
File Manager ��� Explorer, ��� ������ ���� � �����
\verb!\\<hostname>\<sharename>!. ������������ � ������� � ������������
��� ������� ������� ������ � �������.

���� �� ������, ��� ������ ���� NetBIOS ����������� ��������
(��������, �� ��������� ��������� �� ������ \verb|host not found|
(������ �� �������) ��� ������� �����������), �� �����������
������������ IP-����� �������: \verb!\\<host ip address>\<sharename>!.

��� ����, ����� ����� ������������ ���������, ����� ������������
������� ��������� ��������� � ��������������� ������� ��� �������.
��������� ���������� �������� ��� �������� ��� �����������
95/98/NT, �� ����� ���� ���������� �������� ��, ���� ��
����������� � �������� �������� ������ � Windows 3.X.

\begin{verbatim}
    ; Mangle case = yes seems to give the correct filenames
    ; for Win95/98/NT.
    mangle case = yes
    ; If samba is case sensitive when looking for files
    case sensitive = no
    ; Default case of files that are created
    default case = lower
    ; Preserve case for all filenames
    preserve case = yes
    ; Preserve case for dos (8.3) filenames
    short preserve case = no

�������� ����� ����� / - ��� ������ �� ������� �����. ��� ���� ������ � ���� ��������� ����� 24. ��� ��������� �������������� ���������� � ���, ��� ��������� �������� ��� ��������, �� ������ ���������� ���������� �� ������ http://www.ralphb.net/IPSubnet/.

�������, ��������� Samba ����� �������, ��� ��������� �����. ���� �� ������ ������� ���-�� ����� �������, �� ������������� �������� ������ Samba, ���������� ����.

����� ������� ���������� ��������� ��� ������ �����, �� ��������� ������ � ��� ������ ������������� �� ������ staff, �������� ������ ��� �������� � ��������� �������:

[public]
   comment = Public Stuff
   path = /home/public
   public = yes
   writable = yes
   printable = no
   write list = @staff

��� �������� ������ ������� ��������� ���� ������� � ������, �������� ������������ �� Samba � ���������� ��������.



Alex Otwagin 2002-12-16



������:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
�������:

�������� �� �����
���������� �� ���������
Created 1996-2026 by Maxim Chirkov
��������, ����������, ����������