1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
8 CONTENT=
"Modular DocBook HTML Stylesheet Version 1.77"></HEAD
28 >testparm
--
check an smb.conf configuration file for
29 internal correctness
</DIV
31 CLASS=
"REFSYNOPSISDIV"
41 > [-s] [-h] [-v] [-L
<servername
>] {config filename} [hostname hostIP]
</P
51 >This tool is part of the
<A
60 > is a very simple test program
64 > configuration file for
65 internal correctness. If this program reports no problems, you
66 can use the configuration file with confidence that
<B
70 > will successfully load the configuration file.
</P
72 >Note that this is
<SPAN
79 the services specified in the configuration file will be
80 available or will operate as expected.
</P
82 >If the optional host name and host IP address are
83 specified on the command line, this test program will run through
84 the service entries reporting whether the specified host
85 has access to each service.
</P
90 > finds an error in the
<TT
93 > file it returns an exit code of
1 to the calling
94 program, else it returns an exit code of
0. This allows shell scripts
95 to test the output from
<B
116 >Without this option,
<B
120 will prompt for a carriage return after printing the service
121 names and before dumping the service definitions.
</P
127 >Print usage message
</P
133 >Sets the value of the %L macro to
<TT
139 This is useful for testing include files specified with the
146 >If this option is specified, testparm
147 will also output all options that were not used in
151 > and are thus set to
158 >This is the name of the configuration file
159 to check. If this parameter is not present then the
163 > file will be checked.
170 >If this parameter and the following are
174 > will examine the
<TT
186 parameters in the
<TT
190 determine if the hostname with this IP address would be
191 allowed access to the
<B
195 this parameter is supplied, the hostIP parameter must also
202 >This is the IP address of the host specified
203 in the previous parameter. This address must be supplied
204 if the hostname parameter is supplied.
</P
228 >This is usually the name of the configuration
246 >The program will issue a message saying whether the
247 configuration file loaded OK or not. This message may be preceded by
248 errors and warnings if the file did not load. If the file was
249 loaded OK, the program then dumps all known service details
260 >This man page is correct for version
2.2 of
272 HREF=
"smb.conf.5.html"
297 >The original Samba software and related utilities
298 were created by Andrew Tridgell. Samba is now developed
299 by the Samba Team as an Open Source project similar
300 to the way the Linux kernel is developed.
</P
302 >The original Samba man pages were written by Karl Auer.
303 The man page sources were converted to YODL format (another
304 excellent piece of Open Source software, available at
306 HREF=
"ftp://ftp.icce.rug.nl/pub/unix/"
308 > ftp://ftp.icce.rug.nl/pub/unix/
</A
309 >) and updated for the Samba
2.0
310 release by Jeremy Allison. The conversion to DocBook for
311 Samba
2.2 was done by Gerald Carter
</P