When setting up Samba shares, I always wonder how to set file and directory masks correctly. The following is a best practice example that works quite well in smb.conf:

[<share-name>]
   path=<path-to-share>
   browseable=yes
   writeable=yes
   valid users=<user>
   create mask=0644
   directory mask=0755