Manually Configuring Samba with /etc/samba/smb.conf
/etc/samba/smb.conf file is broken into sections. Each section is a description of the resource shared (share) and should be titled appropriately. The three special sections are as follows:
[global]—Establishes the global configuration settings (defined in detail in the
smb.conf man page and Samba documentation, found under the
/home directories and specifies directory paths and permissions.
[printers]—Handles printing by defining ...