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

Last change on this file was 860, checked in by Silvan Scherrer, 11 years ago

Samba 3.6: updated vendor to latest version

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