source: vendor/3.6.0/docs/manpages/testparm.1

Last change on this file was 740, checked in by Silvan Scherrer, 13 years ago

Samba Server: update vendor to 3.6.0

File size: 4.7 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: 08/08/2011
6.\" Manual: User Commands
7.\" Source: Samba 3.6
8.\" Language: English
9.\"
10.TH "TESTPARM" "1" "08/08/2011" "Samba 3\&.6" "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] [\-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\-v
71.RS 4
72If this option is specified, testparm will also output all options that were not used in
73\fBsmb.conf\fR(5)
74and are thus set to their defaults\&.
75.RE
76.PP
77\-t encoding
78.RS 4
79Output data in specified encoding\&.
80.RE
81.PP
82\-\-parameter\-name parametername
83.RS 4
84Dumps 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\&.
85.RE
86.PP
87\-\-section\-name sectionname
88.RS 4
89Dumps the named section\&.
90.RE
91.PP
92configfilename
93.RS 4
94This is the name of the configuration file to check\&. If this parameter is not present then the default
95\fBsmb.conf\fR(5)
96file will be checked\&.
97.RE
98.PP
99hostname
100.RS 4
101If this parameter and the following are specified, then
102testparm
103will examine the
104\fIhosts allow\fR
105and
106\fIhosts deny\fR
107parameters in the
108\fBsmb.conf\fR(5)
109file to determine if the hostname with this IP address would be allowed access to the
110smbd
111server\&. If this parameter is supplied, the hostIP parameter must also be supplied\&.
112.RE
113.PP
114hostIP
115.RS 4
116This is the IP address of the host specified in the previous parameter\&. This address must be supplied if the hostname parameter is supplied\&.
117.RE
118.SH "FILES"
119.PP
120\fBsmb.conf\fR(5)
121.RS 4
122This is usually the name of the configuration file used by
123\fBsmbd\fR(8)\&.
124.RE
125.SH "DIAGNOSTICS"
126.PP
127The 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\&.
128.SH "VERSION"
129.PP
130This man page is correct for version 3 of the Samba suite\&.
131.SH "SEE ALSO"
132.PP
133\fBsmb.conf\fR(5),
134\fBsmbd\fR(8)
135.SH "AUTHOR"
136.PP
137The 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\&.
138.PP
139The 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
140ftp://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.