After you have created your
/etc/smb.conf file, you can check it for correctness by using the
testparm command. This command parses through your
/etc/smb.conf file and checks for any syntax errors. If none are found, your configuration file will probably work correctly. It does not, however, guarantee that the services specified in the file will work. It is merely making sure that the file is correctly written.
As with all configuration files, if you are modifying an existing, working file, it is always prudent to copy the working file to a different location and modify that file. Then, you can check the file with the
testparm utility. The command syntax is as follows: