Name

testparm

Synopsis

The testparm program checks a Samba configuration file for obvious errors.

Command synopsis

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.

Options

-h

Prints usage information for the program.

-L server_name

Sets the %L configuration variable to the specified server name.

-s

Disables the default behavior of prompting for the Enter key to be pressed before printing the list of configuration options for the server.

Get Using Samba, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.