Samba service introduction and configuration process

1. Function

Realize the mutual access problem between Linux and Microsoft system

Second, the working principle of SMB

It is based on the two protocols of NetBIOS and SMB running on the TCP/IP communication protocol. Using the NetBIOS name server allows the user's Linux machine to be seen in the Windows network neighborhood, so it can communicate with the windows host on the network. , Shared files and services, there are two services that make up Samba to run, one is SMB, the other is NMB, SMB is the core startup service of Samba, which is mainly responsible for establishing the dialogue between Linux Samba server and Samba client and verifying users Identity and provide access to the file and printing system. Only when the SMB service is started can file sharing be realized. It monitors TCP 139 and 445 ports. The NMB service is responsible for resolution. Similar to the function implemented by DNS, NMB can share Linux systems The workgroup name corresponds to its IP. If the NMB service is not started, the shared files can only be accessed through the IP, listening on UDP137 and 138 ports.

Three, the configuration process of Samba service

Prepare two Centos system virtual machines, one W10 virtual machine, use vmnet1 network card, set to the same network segment, turn off the firewall and core protection,
install the Samba software
Insert picture description here

Create a shared directory and set permissions
Insert picture description here

Turn on the service and check the status of the service
Insert picture description here

Create a user, add the user to the samba service and set the password of the samba account
Insert picture description here
Insert picture description here
Insert picture description here

Configure the main samba configuration file
Insert picture description here
Insert picture description here

Restart the service and view
Insert picture description here

Microsoft Test
Insert picture description here
Insert picture description here

Insert picture description here

Centos test
Insert picture description here

Guess you like

Origin blog.csdn.net/yuiLan0/article/details/109153888