Procedure37.1.Diagnosing Your Samba Server
In the directory in which you store your smb.conf file, run the command testparm smb.conf . If it reports any errors, then your smb.conf configuration file is faulty.
smb.conf