Linux system Samba file sharing service

Source: Internet
Author: User

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

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.