[homes]—Shares  users’  /home   directories and specifies   directory   paths
and permissions
[printers]—Handles  printing    by  defining    shared  printers    and printer
accessEach    section in  your    /etc/samba/smb.conf configuration   file    should  be
named   for the resource    being   shared. For example,    if  the resource
/usr/local/programs is  being   shared, you could   call    the section
[programs]. When    Windows sees    the share,  it  is  called  by  whatever    you
name    the section (programs   in  this    example).   The easiest and fastest way to
set up  this    share   is  with    the following   example from    smb.conf:
Click   here    to  view    code    image
[programs]
path    =   /usr/local/programs
writeable   =   true
This    bit shares  the /usr/local/programs directory   with    any valid   user
who asks    for it  and makes   that    directory   writable.   It  is  the most    basic   share
because it  sets    no  limits  on  the directory.
Here are some parameters you can set in the sections:
    Requiring   a   user    to  enter   a   password    before  accessing   a   shared  directory
    Limiting    the hosts   allowed to  access  the shared  directory
    Altering    permissions users   are allowed to  have    on  the directory
    Limiting    the time    of  day during  which   the directory   is  accessibleThe possibilities   are almost  endless.    Any parameters  set in  the individual
sections    override    the parameters  set in  the [global]    section.    The following
section adds    a   few restrictions    to  the [programs]  section:
Click   here    to  view    code    image
[programs]
path    =   /usr/local/programs
writeable   =   true
valid   users   =   mhelmke
browseable  =   yes
create  mode    =   0700
NOTE
You can spell   it  as  writeable   or  writable;   either  variant will    work,
and both    spellings   are used    in  this    chapter.The valid users entry in this example limits userid to just mhelmke.