There is a utility, testparam, used to check if smb.conf is valid at /etc/samba/smb.conf after adding a Samba share. However, trying to set up a new share I just made, my Linux server does recognize command "testparam."
Try 'testparm'. Hope this helps :-P