Samba configuration for RHCE Certification

Source: Internet
Author: User
I. Why is samba used? The reason is that Samba is the first to build a bridge between Linux and Windows. The emergence of Samba allows us to communicate with each other between Linux and Windows, for example, copying files and sharing resources among different operating systems, we can build a file server with very powerful functions, it can also be set up as a printing server to provide local and remote online printing, or even we can use sambaServer to completely replace

I. Why samba:

The reason is that Samba is the first to build a bridge between the Linux and Windows platforms. The emergence of Samba allows us to communicate with each other between the Linux and Windows systems, for example, copying files and sharing resources among different operating systems, we can build a file server with very powerful functions, it can also be set up as a printing Server to provide local and remote online printing, or even we can use samba Server to completely replace the domain controller in windows for domain management, which is also very convenient to use.

2. Samba application environment

(1) file and printer sharing: file and printer sharing is the main function of Samba. the SMB process shares resources and publishes files and printers to the network for users to access.

(2) authentication and permission settings: the smbd service supports authentication and permission setting modes such as user mode and domain mode to protect shared files and printers through encryption.

(3) Name resolution: Samba can build an NBNS (NetBIOS Name Service) server through the nmbd Service, provide Name resolution, and resolve the NetBIOS Name of the computer to an IP address.

(4) browsing service: in the LAN, the Samba server can be the local host browsing server (LMB) to save the list of available resources. When a client accesses a Windows network neighbor, the browser list is provided, displays shared directories, printers, and other resources.

Iii. How samba works:

The Samba service is powerful. SMB not only provides directory and printer sharing, but also supports authentication and permission settings. In the early stages, SMB was running on the NBT protocol (NetBIOS over TCP/IP), using UDP 137, 138, and TCP 139 ports. Later SMB was developed, it can run directly on the TCP/IP protocol without any additional NBT layer and uses port 445 of the TCP protocol.

Samba workflow:

--------- (1) ---------> ---------- (2) ----> smb. conf main configuration file

[Client] [Samba server]

-------- (4) ----------> ---------- (3) --------> Log File

(1) The client requests access to the Share directory on the Samba server.

(2) After receiving the request, the Samba server queries the main configuration file smb. conf to check whether the Share directory is shared. If this directory is shared, it checks whether the client has access permissions.

(3) the Samba server records the access information in the log file. The name and path of the log file must be set.

(4) If the client meets the access permission settings, allow the client to access

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.