testparm

   
testparm

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.

   


Using Samba
Using Samba: A File and Print Server for Linux, Unix & Mac OS X, 3rd Edition
ISBN: 0596007698
EAN: 2147483647
Year: 2003
Pages: 475

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net