source: trunk/samba/docs/manpages/testparm.1@ 17

Last change on this file since 17 was 1, checked in by Paul Smedley, 18 years ago

Initial code import

File size: 4.2 KB
Line 
1.\"Generated by db2man.xsl. Don't modify this, modify the source.
2.de Sh \" Subsection
3.br
4.if t .Sp
5.ne 5
6.PP
7\fB\\$1\fR
8.PP
9..
10.de Sp \" Vertical space (when we can't use .PP)
11.if t .sp .5v
12.if n .sp
13..
14.de Ip \" List item
15.br
16.ie \\n(.$>=3 .ne \\$3
17.el .ne 3
18.IP "\\$1" \\$2
19..
20.TH "TESTPARM" 1 "" "" ""
21.SH NAME
22testparm \- check an smb.conf configuration file for internal correctness
23.SH "SYNOPSIS"
24.ad l
25.hy 0
26.HP 9
27\fBtestparm\fR [\-s] [\-h] [\-v] [\-L\ <servername>] [\-t\ <encoding>] {config\ filename} [hostname\ hostIP]
28.ad
29.hy
30
31.SH "DESCRIPTION"
32
33.PP
34This tool is part of the \fBsamba\fR(7) suite\&.
35
36.PP
37\fBtestparm\fR is a very simple test program to check an \fBsmbd\fR(8) configuration file for internal correctness\&. If this program reports no problems, you can use the configuration file with confidence that \fBsmbd \fR will successfully load the configuration file\&.
38
39.PP
40Note that this is \fBNOT\fR a guarantee that the services specified in the configuration file will be available or will operate as expected\&.
41
42.PP
43If the optional host name and host IP address are specified on the command line, this test program will run through the service entries reporting whether the specified host has access to each service\&.
44
45.PP
46If \fBtestparm\fR finds an error in the \fI smb\&.conf\fR file it returns an exit code of 1 to the calling program, else it returns an exit code of 0\&. This allows shell scripts to test the output from \fBtestparm\fR\&.
47
48.SH "OPTIONS"
49
50.TP
51\-s
52Without this option, \fBtestparm\fR will prompt for a carriage return after printing the service names and before dumping the service definitions\&.
53
54.TP
55\-h|\-\-help
56Print a summary of command line options\&.
57
58.TP
59\-V
60Prints the program version number\&.
61
62.TP
63\-L servername
64Sets the value of the %L macro to \fIservername\fR\&. This is useful for testing include files specified with the %L macro\&.
65
66.TP
67\-v
68If this option is specified, testparm will also output all options that were not used in \fBsmb\&.conf\fR(5) and are thus set to their defaults\&.
69
70.TP
71\-t encoding
72Output data in specified encoding\&.
73
74.TP
75\-\-parameter\-name parametername
76Dumps the named parameter\&. If no section\-name is set the view is limited by default to the global section\&. It is also possible to dump a parametrical option\&. Therfore the option has to be separated by a colon from the parametername\&.
77
78.TP
79\-\-section\-name sectionname
80Dumps the named section\&.
81
82.TP
83configfilename
84This is the name of the configuration file to check\&. If this parameter is not present then the default \fBsmb\&.conf\fR(5) file will be checked\&.
85
86.TP
87hostname
88If this parameter and the following are specified, then \fBtestparm\fR will examine the \fIhosts allow\fR and \fIhosts deny\fR parameters in the \fBsmb\&.conf\fR(5) file to determine if the hostname with this IP address would be allowed access to the \fBsmbd\fR server\&. If this parameter is supplied, the hostIP parameter must also be supplied\&.
89
90.TP
91hostIP
92This is the IP address of the host specified in the previous parameter\&. This address must be supplied if the hostname parameter is supplied\&.
93
94.SH "FILES"
95
96.TP
97\fBsmb\&.conf\fR(5)
98This is usually the name of the configuration file used by \fBsmbd\fR(8)\&.
99
100.SH "DIAGNOSTICS"
101
102.PP
103The program will issue a message saying whether the configuration file loaded OK or not\&. This message may be preceded by errors and warnings if the file did not load\&. If the file was loaded OK, the program then dumps all known service details to stdout\&.
104
105.SH "VERSION"
106
107.PP
108This man page is correct for version 3\&.0 of the Samba suite\&.
109
110.SH "SEE ALSO"
111
112.PP
113\fBsmb\&.conf\fR(5), \fBsmbd\fR(8)
114
115.SH "AUTHOR"
116
117.PP
118The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
119
120.PP
121The original Samba man pages were written by Karl Auer\&. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at ftp://ftp\&.icce\&.rug\&.nl/pub/unix/) and updated for the Samba 2\&.0 release by Jeremy Allison\&. The conversion to DocBook for Samba 2\&.2 was done by Gerald Carter\&. The conversion to DocBook XML 4\&.2 for Samba 3\&.0 was done by Alexander Bokovoy\&.
122
Note: See TracBrowser for help on using the repository browser.