About Samba Server (1)

  

There are often many machines running different types of operating systems in the network. How to make these machines work effectively and realize mutual resource sharing is an important issue. It is.
In 1987, the SMB protocol was jointly developed by Microsoft Corporation and Intel Corporation. Its meaning is Server Message Block, which is a protocol that defines file and interface sharing between two machines. The SMB works in a request/response manner, that is, the way the client first sends an application, and the SMB server is responsible for interpreting and responding. At present, the resource sharing between Linux and Windows is mainly through the corresponding software of SMB - Samba (linux side).

1. Samba security mechanism
Samba server provides three security mechanisms: share-level security, user-level security and server-level security, what level of security mechanism is used by the security item in the smb.conf file To control.
The security level of its share-level security is the lowest. User-level security requires that users who apply to connect to the SMB server provide a valid username and password to provide services. Server-level security is all about centralizing all user authentication to a specific SMB server, and this server can run any operating system that can authenticate users (that is, not necessarily Linux).

2. samba configuration file
Samba has only one configuration file - smb.conf, the file is located in the /usr/local/samba/lib directory by default, the file format is similar to windows The win.ini file is also divided into sections, each of which begins with a name enclosed in square brackets. Each section of it defines a service, and several important sections are discussed below.
1. [global]


This section configures the server's global parameters. Some commonly used items are as follows:
workgroup=
This item is used to set the name of the Windows workgroup or the domain name of NT;
server string=Samba Server
This item is generally fixed; BR> load printers = yes
This item indicates that the server will automatically load the printer list;
printcap name = /etc/printcap
This item tells the server where the printer is located;
guest account =pcuser
This item defines the username for the guest account;
securoty=user
This specifies the security level as user level;
wins support=no
This item means no Support wins service;
name resolve order=host dns bcast
This item defines the priority of the service scheme for name resolution;
preserver case = no
This item indicates the case of letters without distinction .

2. [printers]
The purpose of this section is to define which shared printers can be used. If this section is set, the user can use all the printers defined in the /etc/printercap file. Some common items are as follows:

comment = all printers
This item means that all shared printers can be used;
path = /tmp
This item indicates that the /tmp directory must be created;
printable = yes
This item determines the print resources available to Samba users;
public = no
This item determines that the guest cannot use the printer;
writable = no
This item indicates that the resource is not writable;
browseable = no
This item determines that the printer is not displayed during web browsing

Copyright © Windows knowledge All Rights Reserved