testparm
testparm is a very simple test program to check an smbd configuration file for internal correctness. If this program reports no problems, you can use the configuration file with confidence that smbd will successfully load the configuration file.[1]
If the optional host name and host IP address are specified on the command line, this test program will run through the service entries reporting whether the specified host has access to each service.[1]
If testparm finds an error in the smb.conf file it returns an exit code of 1 to the calling program, else it returns an exit code of 0. This allows shell scripts to test the output from testparm.[1]
Documentation
- man 1 'testparm' [EN]
Syntax
testparm [PARAMETER ...] [HOST]
Parameters
- -s
- Without this option, testparm will prompt for a carriage return after printing the service names and before dumping the service definitions.