1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.7"></HEAD
28 >testparm -- check an smb.conf configuration file for
29 internal correctness</DIV
31 CLASS="REFSYNOPSISDIV"
41 > [-s] [-h] [-v] [-L <servername>] [-t <encoding>] {config filename} [hostname hostIP]</P
51 >This tool is part of the <SPAN
62 > is a very simple test program
69 > configuration file for
70 internal correctness. If this program reports no problems, you
71 can use the configuration file with confidence that <B
75 > will successfully load the configuration file.</P
77 >Note that this is <SPAN
84 the services specified in the configuration file will be
85 available or will operate as expected. </P
87 >If the optional host name and host IP address are
88 specified on the command line, this test program will run through
89 the service entries reporting whether the specified host
90 has access to each service. </P
95 > finds an error in the <TT
98 > file it returns an exit code of 1 to the calling
99 program, else it returns an exit code of 0. This allows shell scripts
100 to test the output from <B
121 >Without this option, <B
125 will prompt for a carriage return after printing the service
126 names and before dumping the service definitions.</P
132 >Print usage message </P
138 >Sets the value of the %L macro to <VAR
142 This is useful for testing include files specified with the
149 >If this option is specified, testparm
150 will also output all options that were not used in <SPAN
153 CLASS="REFENTRYTITLE"
156 > and are thus set to their defaults.</P
162 > Output data in specified encoding.
169 >This is the name of the configuration file
170 to check. If this parameter is not present then the
174 CLASS="REFENTRYTITLE"
177 > file will be checked.
184 >If this parameter and the following are
188 > will examine the <VAR
196 parameters in the <SPAN
199 CLASS="REFENTRYTITLE"
203 determine if the hostname with this IP address would be
204 allowed access to the <B
208 this parameter is supplied, the hostIP parameter must also
215 >This is the IP address of the host specified
216 in the previous parameter. This address must be supplied
217 if the hostname parameter is supplied. </P
238 CLASS="REFENTRYTITLE"
244 >This is usually the name of the configuration
248 CLASS="REFENTRYTITLE"
265 >The program will issue a message saying whether the
266 configuration file loaded OK or not. This message may be preceded by
267 errors and warnings if the file did not load. If the file was
268 loaded OK, the program then dumps all known service details
279 >This man page is correct for version 3.0 of
293 CLASS="REFENTRYTITLE"
299 CLASS="REFENTRYTITLE"
312 >The original Samba software and related utilities
313 were created by Andrew Tridgell. Samba is now developed
314 by the Samba Team as an Open Source project similar
315 to the way the Linux kernel is developed.</P
317 >The original Samba man pages were written by Karl Auer.
318 The man page sources were converted to YODL format (another
319 excellent piece of Open Source software, available at <A
320 HREF="ftp://ftp.icce.rug.nl/pub/unix/"
322 > ftp://ftp.icce.rug.nl/pub/unix/</A
323 >) and updated for the Samba 2.0
324 release by Jeremy Allison. The conversion to DocBook for
325 Samba 2.2 was done by Gerald Carter. The conversion to DocBook XML 4.2
326 for Samba 3.0 was done by Alexander Bokovoy.</P