Samba is not that complicated... but there are some pitfalls.
This is a working smb.conf where most shares can be accessed by guest users and some share can only accessed by authenticated users:
This config is just to share /var/www ... We use this on a virtualbox Linux guest to make things easier for testing.
None of the above configs is safe or trustworthy in general. These configs just here to have a starting point. No warranty, no nothing. Use it or leave it as it is.