Every share's configuration begins with a string enclosed in square brackets. In this case, the global share's configuration follows [global]
These are the global configuration options, specified using name = value syntax. Samba will set the given name's value to whatever follows the equal sign. Comment lines begin with a semi-colon(;) or a hash (#)
Every share's configuration begins with a string enclosed in square brackets. In this case the home share's configuration follows [homes].
These are the home share's configuration options, specified using name=value syntax. Samba will set the given name's value to whatever follows the equal sign. Comment lines begin with a semi-colon(;)
Configuring Samba Server
The configuration file smb.conf
Global section
Share sections
Global
Example: [global]
workgroup = MYGROUP
server string = Samba Server
printcap name = /etc/printcap
load printers = yes
printing = lprng
log file= /var/log/samba/%m.log
max log size=0
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
Homes section
The Homes section is a special share section
Use the home dir from /etc/passwd based on user name requesting the share.
Example: [homes]