program components for Samba services
Samba Server provides SMBD,NMBD two service programs, each of which accomplishes different functions. Where SMBD is responsible for providing client access to shared resources on the server, and NMBD is responsible for providing host name resolution based on the NetBIOS protocol for querying services for hosts in the Windows network.
Use the netstat command to verify the status of the service process, where the SMBD program is responsible for listening on the TCP protocol's 139 port (SMB protocol), 445 port (CIFS protocol). The NMBD server program is responsible for listening to the UDP protocol's 137-138 port (NetBIOS protocol).
Master configuration file smb.conf
The configuration file for the Samba service is located in the/etc/samba/directory, where smb.conf is the master configuration file.
[global] Global configuration: The contents of this section of the configuration item are valid for the entire Samba server.
[homes] Host directory sharing settings: Sets the default share for Linux users, corresponding to the user's host directory. When a user accesses a shared directory on the server that has the same name as the user. Validation is automatically mapped to the user's host folder.
[printers] Printer Sharing settings: If you need to share a printer device, you can configure it in this section.
This article is from the "Live to learn old" blog, please be sure to keep this source http://nihaozqy.blog.51cto.com/10511002/1683124
Linux system Samba file sharing service