1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN">
8 CONTENT=
"Modular DocBook HTML Stylesheet Version 1.76b+
19 NAME=
"TESTPARM">testparm
</H1
27 >testparm
--
check an smb.conf configuration file for
28 internal correctness
</DIV
30 CLASS=
"REFSYNOPSISDIV"
38 > [-s] [-h] [-v] [-L
<servername
>] [-t
<encoding
>] {config filename} [hostname hostIP]
</P
48 >This tool is part of the
<A
57 > is a very simple test program
61 > configuration file for
62 internal correctness. If this program reports no problems, you
63 can use the configuration file with confidence that
<B
67 > will successfully load the configuration file.
</P
73 the services specified in the configuration file will be
74 available or will operate as expected.
</P
76 >If the optional host name and host IP address are
77 specified on the command line, this test program will run through
78 the service entries reporting whether the specified host
79 has access to each service.
</P
84 > finds an error in the
<TT
87 > file it returns an exit code of
1 to the calling
88 program, else it returns an exit code of
0. This allows shell scripts
89 to test the output from
<B
110 >Without this option,
<B
114 will prompt for a carriage return after printing the service
115 names and before dumping the service definitions.
</P
121 >Print usage message
</P
127 >Sets the value of the %L macro to
<TT
133 This is useful for testing include files specified with the
140 >If this option is specified, testparm
141 will also output all options that were not used in
145 > and are thus set to
152 > Output data in specified encoding.
159 >This is the name of the configuration file
160 to check. If this parameter is not present then the
164 > file will be checked.
171 >If this parameter and the following are
175 > will examine the
<TT
187 parameters in the
<TT
191 determine if the hostname with this IP address would be
192 allowed access to the
<B
196 this parameter is supplied, the hostIP parameter must also
203 >This is the IP address of the host specified
204 in the previous parameter. This address must be supplied
205 if the hostname parameter is supplied.
</P
229 >This is usually the name of the configuration
247 >The program will issue a message saying whether the
248 configuration file loaded OK or not. This message may be preceded by
249 errors and warnings if the file did not load. If the file was
250 loaded OK, the program then dumps all known service details
261 >This man page is correct for version
3.0 of
273 HREF=
"smb.conf.5.html"
298 >The original Samba software and related utilities
299 were created by Andrew Tridgell. Samba is now developed
300 by the Samba Team as an Open Source project similar
301 to the way the Linux kernel is developed.
</P
303 >The original Samba man pages were written by Karl Auer.
304 The man page sources were converted to YODL format (another
305 excellent piece of Open Source software, available at
307 HREF=
"ftp://ftp.icce.rug.nl/pub/unix/"
309 > ftp://ftp.icce.rug.nl/pub/unix/
</A
310 >) and updated for the Samba
2.0
311 release by Jeremy Allison. The conversion to DocBook for
312 Samba
2.2 was done by Gerald Carter
</P