I suggest you visit the
Samba HOWTO documentation site where you will find answers to the majority of your questions. Also,
Samba 3 By Example, which is a PDF book available for download from the Samba site, will provide you will real-world examples on how to use Samba in a enterprise environment.