source: branches/samba-3.5.x/docs/manpages/testparm.1@ 773

Last change on this file since 773 was 773, checked in by Herwig Bauernfeind, 12 years ago

Samba Server 3.5: Update branch to 3.5.20

File size: 4.8 KB
Line 
1'\" t
2.\" Title: testparm
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 12/14/2012
6.\" Manual: User Commands
7.\" Source: Samba 3.5
8.\" Language: English
9.\"
10.TH "TESTPARM" "1" "12/14/2012" "Samba 3\&.5" "User Commands"
11.\" -----------------------------------------------------------------
12.\" * set default formatting
13.\" -----------------------------------------------------------------
14.\" disable hyphenation
15.nh
16.\" disable justification (adjust text to left margin only)
17.ad l
18.\" -----------------------------------------------------------------
19.\" * MAIN CONTENT STARTS HERE *
20.\" -----------------------------------------------------------------
21.SH "NAME"
22testparm \- check an smb\&.conf configuration file for internal correctness
23.SH "SYNOPSIS"
24.HP \w'\ 'u
25testparm [\-s] [\-h] [\-v] [\-L\ <servername>] [\-t\ <encoding>] {config\ filename} [hostname\ hostIP]
26.SH "DESCRIPTION"
27.PP
28This tool is part of the
29\fBsamba\fR(7)
30suite\&.
31.PP
32testparm
33is a very simple test program to check an
34\fBsmbd\fR(8)
35configuration file for internal correctness\&. If this program reports no problems, you can use the configuration file with confidence that
36smbd
37will successfully load the configuration file\&.
38.PP
39Note that this is
40\fINOT\fR
41a guarantee that the services specified in the configuration file will be available or will operate as expected\&.
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.PP
45If
46testparm
47finds an error in the
48smb\&.conf
49file 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
50testparm\&.
51.SH "OPTIONS"
52.PP
53\-s
54.RS 4
55Without this option,
56testparm
57will prompt for a carriage return after printing the service names and before dumping the service definitions\&.
58.RE
59.PP
60\-h|\-\-help
61.RS 4
62Print a summary of command line options\&.
63.RE
64.PP
65\-V|\-\-version
66.RS 4
67Prints the program version number\&.
68.RE
69.PP
70\-L servername
71.RS 4
72Sets the value of the %L macro to
73\fIservername\fR\&. This is useful for testing include files specified with the %L macro\&.
74.RE
75.PP
76\-v
77.RS 4
78If this option is specified, testparm will also output all options that were not used in
79\fBsmb.conf\fR(5)
80and are thus set to their defaults\&.
81.RE
82.PP
83\-t encoding
84.RS 4
85Output data in specified encoding\&.
86.RE
87.PP
88\-\-parameter\-name parametername
89.RS 4
90Dumps 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\&.
91.RE
92.PP
93\-\-section\-name sectionname
94.RS 4
95Dumps the named section\&.
96.RE
97.PP
98configfilename
99.RS 4
100This is the name of the configuration file to check\&. If this parameter is not present then the default
101\fBsmb.conf\fR(5)
102file will be checked\&.
103.RE
104.PP
105hostname
106.RS 4
107If this parameter and the following are specified, then
108testparm
109will examine the
110\fIhosts allow\fR
111and
112\fIhosts deny\fR
113parameters in the
114\fBsmb.conf\fR(5)
115file to determine if the hostname with this IP address would be allowed access to the
116smbd
117server\&. If this parameter is supplied, the hostIP parameter must also be supplied\&.
118.RE
119.PP
120hostIP
121.RS 4
122This is the IP address of the host specified in the previous parameter\&. This address must be supplied if the hostname parameter is supplied\&.
123.RE
124.SH "FILES"
125.PP
126\fBsmb.conf\fR(5)
127.RS 4
128This is usually the name of the configuration file used by
129\fBsmbd\fR(8)\&.
130.RE
131.SH "DIAGNOSTICS"
132.PP
133The 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\&.
134.SH "VERSION"
135.PP
136This man page is correct for version 3 of the Samba suite\&.
137.SH "SEE ALSO"
138.PP
139\fBsmb.conf\fR(5),
140\fBsmbd\fR(8)
141.SH "AUTHOR"
142.PP
143The 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\&.
144.PP
145The 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
146ftp://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\&.
Note: See TracBrowser for help on using the repository browser.