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

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

������� ������������ / ������ "������������ ��� Linux" / ���������� ���������
next up previous contents index
Next: ����������� ������� � ������ Up: Samba Previous: ������ �������   Contents   Index

�������� ��������� (/etc/smb.conf)

��������� Samba � Linux (��� ������ UNIX-�������) �������������� ������������ ������, /etc/smb.conf. ���� ���� ����������, � ����� ��������� �������� �� ������ ���� ������ ``�� �������� ����'' � ����� ����������� �� ������ ���� �� ������������� ���� ��������.

��� ��� ��������� ������ ��������� ����������� ������� � ������ � ��������� Linux ��� Windows-�����, �� ���� smb.conf, ���������� � ���� ������� �������� ��������, ������������� � ����� ������������.

������ ������ ����� ���������� � ��������� �������, ������ ��� [global], [homes], [printers], � �.�.

������ [global] ���������� ��������� ����������, ������� Samba ����� ������������ ��� ����������� ������� �� ���� ��������.

������ [homes] ��������� ��������� ������������� ����� ������ � ����� (� ������ �����) �������� ����������� �� ��������� Linux- ������. ��� ���, ���� ������������ Windows ���������� ������������ � ����� ������� �� Windows-�����, �� ��� ����� ���������� � ����� ������������ �������� �����������. �������, ��� ��� ���������� ���� ����, ��� ������ ���� ���������������� �� Linux-������.

������� ���� smb.conf, ����������� ����, ��������� ��������� ������������� ����� ������ � �� �������� ����������� �� ��������� ������ � ������ �� ��������� ����������. ��� ����, ����� ������������ Windows ����� ������� ��� ������� ������ � Linux ������ ���� � ��������� ����. ����� ������������ ������ ���������� ������� ����� � ������� Windows File Manager ��� Windows Explorer.

�������, ��� � ��������� �������� ����� ���� �������������� ������ ��� ����� �����, ����������� ���� ������ � �������� ���������� ��������.

; /etc/smb.conf
;
; ��������� � ������������� ������ ����� �������� ��������� � ����
; ����, ��������:
; /etc/rc.d/init.d/smb stop
; /etc/rc.d/init.d/smb start
[global]
; ���������������� ��� ������, ���� �� ������ ���� ������ ������������ "�����"
; guest account = nobody
   log file = /var/log/samba-log.%m
   lock directory = /var/lock/samba
   share modes = yes
[homes]
   comment = Home Directories
   browseable = no
   read only = no
   create mode = 0750
[tmp]
   comment = Temporary file space
   path = /tmp
   read only = no
   public = yes

������� ����� ���� smb.conf, ������� ��������� ��� ������������. �� ������ ��������� ������������ ��������� ����� smb.conf, ��������� ������� testparm (���������� ��������: testparm); ���� testparm �������� �� ���������� ``�������'', �� smbd ��������� �������� ���� ��������.

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

interfaces = 192.168.1.1/24

����� �������� ����������� ����� �� ����� ������� ���������� Ethernet. �������� 24 �������� ���������� ��� ���� ������ C, �� ��� ����� ������������ ����������� ��� ��������, ���� ���������� ��������� �� �������. ��� ����� ��������� � ������� �����. ����� ��� ������ ������� ����� ��������� � �������� IP-Masquerade.

����� ���������� GUI-������� ��� ��������� Samba: GtkSamba. �������� �������� �� ������ http://www.open-systems.com/gtksamba.html.



Alex Otwagin 2002-12-16



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

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