testparm |
The testparm program checks a Samba configuration file for obvious errors.
testparm [options] [filename] [hostname IP_addr]
If the configuration file is not provided using the filename argument, then it defaults to /usr/local/samba/lib/smb.conf . If the hostname and an IP address of a system are included, an extra check is made to ensure that the system is allowed to connect to each service defined in the configuration file. This is done by comparing the hostname and IP address to the definitions of the hosts allow and hosts deny parameters.
Prints usage information for the program.
Sets the %L configuration variable to the specified server name .
Disables the default behavior of prompting for the Enter key to be pressed before printing the list of configuration options for the server.