i. For authentication-based-access, append...
[private]
comment = Private Share
path = /tmp/pri-share
browseable = no
read only = no
ii. For anonymous-read-only access
[public]Be sure, while accessing the shares from either windows or linux box, you are using 'private' of 'public' as share names instead 'pri-share' and 'pub-share'.
comment = Public Share
path = /tmp/pub-share
read only = no
guest only = yes
guest ok = yes
e.g. \\192.168.1.10\private
smb://192.168.1.10/private
..............Done!!!